]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: add mon_reweight_max_osds to limit reweight-by-* commands
authorDan van der Ster <daniel.vanderster@cern.ch>
Fri, 26 Feb 2016 21:29:46 +0000 (22:29 +0100)
committerSage Weil <sage@redhat.com>
Tue, 1 Mar 2016 16:37:58 +0000 (11:37 -0500)
commit3aa0ccefddc1790df5b808bfccd5da4857951220
tree6611df337e16de0d2cfeace800cb7788ac3461fa
parent6f0a1fb69da84ee18bdb9b151772cef8f32413c5
osd: add mon_reweight_max_osds to limit reweight-by-* commands

Add configurable mon_reweight_max_osds which limits the number
of OSDs modified each time reweight-by-* is called (by default
to 4 OSDs).

Also change the order in which we look at OSDs to go from most
to least utilized.

Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
src/common/config_opts.h
src/mon/OSDMonitor.cc