]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: allow pg_num to adjusted up or down via pg[p]_num_target
authorSage Weil <sage@redhat.com>
Fri, 16 Feb 2018 03:25:32 +0000 (21:25 -0600)
committerSage Weil <sage@redhat.com>
Fri, 7 Sep 2018 17:08:39 +0000 (12:08 -0500)
commit7f3d156ebff84cb539704507f1d24f0db3161460
tree3b6e8038e2bc0aa7fce07ee55d108185b7bd3c84
parent17b270a04fbf023f84b02334927fa1b3ae04b74c
mon/OSDMonitor: allow pg_num to adjusted up or down via pg[p]_num_target

The CLI now sets the *_target values, imposing only the subset of constraints that
the user needs to be concerned with.

new "pg_num_actual" and "pgp_num_actual" properties/commands are added that allow
the underlying raw values to be adjusted.  For the merge case, this sets
pg_num_pending instead of pg_num so that the OSDs can go through the
merge prep process.

A controller (in a future commit) will make pg[p]_num converge to pg[p]_num_target.

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