]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/PrimaryLogPG: limit the number of concurrently trimming pgs
authorSamuel Just <sjust@redhat.com>
Wed, 1 Feb 2017 20:07:09 +0000 (12:07 -0800)
committerSamuel Just <sjust@redhat.com>
Mon, 13 Feb 2017 17:47:01 +0000 (09:47 -0800)
commit21cc515adfb225ba70f1d80b1b76f0345c214c22
tree74f4c4743df4f57fa2af594e33b48dd5b0d5bb4d
parentdf2e1fd84ec1bfce298b0ba9a87ba7230837b0ec
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>
src/common/config_opts.h
src/osd/OSD.cc
src/osd/OSD.h
src/osd/PrimaryLogPG.cc
src/osd/PrimaryLogPG.h