]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/DaemonServer: throttle pgp_num changes based on misplaced %
authorSage Weil <sage@redhat.com>
Wed, 19 Sep 2018 21:37:59 +0000 (16:37 -0500)
committerSage Weil <sage@redhat.com>
Tue, 16 Oct 2018 12:22:48 +0000 (07:22 -0500)
commit1617473f10f1b523aaa881b9b2b192c7d419fd2b
treefd4fc72603eef912782cea6b1f6f31696abd8185
parentd6022dd87b62ffb04a2a62153220c6af5371fbfe
mgr/DaemonServer: throttle pgp_num changes based on misplaced %

- block pgp_num increase if pg_num hasn't increased yet
- make no changes if there are inactive or unknown pgs
- make no changes if there are degraded pgs either.  this might be a bit
  conservative...
- calculate the magnitude of our adjusted based on the max_misplaced
  target.  this assumes a uniform distribution of objects across pgs,
  so not perfectly accurate, but hopefully close enough.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mgr/DaemonServer.cc