]> git.apps.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>
Thu, 10 Mar 2016 13:16:41 +0000 (08:16 -0500)
commitd8372cea0c51db89cc48e5592236d53f7b01b6b3
tree366e6cb0cf7f73da1e8b0042cea2d05cc8741e14
parent6a422b2626d48098c5a2c13de677814429263cba
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>
(cherry picked from commit 3aa0ccefddc1790df5b808bfccd5da4857951220)
src/common/config_opts.h
src/mon/OSDMonitor.cc