]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/PrimaryLogPG: limit the number of concurrently trimming pgs
authorGreg Farnum <gfarnum@redhat.com>
Fri, 7 Apr 2017 22:41:18 +0000 (15:41 -0700)
committerGreg Farnum <gfarnum@redhat.com>
Wed, 26 Apr 2017 18:25:42 +0000 (11:25 -0700)
commit995ef4a6b01635ef09532487f7a4ea5fc90e721d
tree382762745a7e2ba2d78825b25b60b947095616ab
parent49f99c3b4d9051bccb34117075348e3ea58804db
osd/PrimaryLogPG: limit the number of concurrently trimming pgs

This patch introduces an AsyncReserver for snap trimming to limit the
number of pgs on any single OSD which can be trimming, as with backfill.
Unlike backfill, we don't take remote reservations on the assumption
that the set of pgs with trimming work to do is already well
distributed, so it doesn't seem worth the implementation overhead to get
reservations from the peers as well.

Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit 21cc515adfb225ba70f1d80b1b76f0345c214c22)

Conflicts:
src/osd/PrimaryLogPG.cc
src/osd/PrimaryLogPG.h

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
src/common/config_opts.h
src/osd/OSD.cc
src/osd/OSD.h
src/osd/PrimaryLogPG.cc
src/osd/PrimaryLogPG.h