From: Sage Weil Date: Thu, 5 Oct 2017 22:31:06 +0000 (-0500) Subject: mgr/module: adjust osd_weight min step to .005 X-Git-Tag: v12.2.2~44^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=91b84cb24466f84ce3e189e08f8cba1e2900a4cc;p=ceph.git mgr/module: adjust osd_weight min step to .005 That should be ~1 PG or less on average; no real sense it taking a step smaller than that! Signed-off-by: Sage Weil (cherry picked from commit 297e2d65abcebe45c6be69a768cf3ea98e1b354d) --- diff --git a/src/pybind/mgr/balancer/module.py b/src/pybind/mgr/balancer/module.py index f7e44a2ffe28..087744a5e192 100644 --- a/src/pybind/mgr/balancer/module.py +++ b/src/pybind/mgr/balancer/module.py @@ -705,7 +705,7 @@ class Module(MgrModule): next_ws[osd] = new_weight if ow < 1.0: new_ow = min(1.0, max(step + (1.0 - step) * ow, - ow + .002)) + ow + .005)) self.log.debug('Reweight osd.%d reweight %f -> %f', osd, ow, new_ow) next_ow[osd] = new_ow