From 297e2d65abcebe45c6be69a768cf3ea98e1b354d Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 5 Oct 2017 17:31:06 -0500 Subject: [PATCH] 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 --- src/pybind/mgr/balancer/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3