]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr: add simple controller to adjust pg[p]_num_actual
authorSage Weil <sage@redhat.com>
Fri, 6 Apr 2018 15:26:10 +0000 (10:26 -0500)
committerSage Weil <sage@redhat.com>
Fri, 7 Sep 2018 17:08:40 +0000 (12:08 -0500)
commita5274c75e263dd61d9569cfb9dd730cf7921d1e6
treee0cffa70dc90ace37d59f619fe86a5dcc875810e
parentd48d7c9ce56cd201ffbee183296fc899827d622a
mgr: add simple controller to adjust pg[p]_num_actual

This is a pretty trivial controller.  It adds some constraints that were
obviously not there before when the user could set these values to anything
they wanted, but does not implement all of the "nice" stepping that we'll
eventually want.  That can come later.

Splits:
- throttle pg_num increases, currently using the same config option
(mon_osd_max_creating_pgs) that we used to throttle pg creation
- do not increase pg_num until the initial pg creation has completed.

Merges:
- wait until the source and target pgs for merge are active and clean
before doing a merge.

Adjust pgp_num all at once for now.

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