From: JoshuaGabriel Date: Wed, 1 May 2024 21:20:53 +0000 (-0700) Subject: mgr/balancer: set upmap_max_deviation to 1 X-Git-Tag: testing/wip-yuriw-testing-20240503.181540-main~4^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c4b58ccd3eb9c1b2382e12bbdd3ca3d47f7f04e1;p=ceph-ci.git mgr/balancer: set upmap_max_deviation to 1 Field experience shows that previous value 5 leads to skewed OSD utilization. Set it to 1 and update the relevant test. Fixes: https://tracker.ceph.com/issues/65748 Signed-off-by: Joshua Blanch --- diff --git a/qa/standalone/mgr/balancer.sh b/qa/standalone/mgr/balancer.sh index 2d7b2f35dc1..f194deeda20 100755 --- a/qa/standalone/mgr/balancer.sh +++ b/qa/standalone/mgr/balancer.sh @@ -141,7 +141,6 @@ function TEST_balancer2() { done ceph osd set-require-min-compat-client luminous - ceph config set mgr mgr/balancer/upmap_max_deviation 1 ceph balancer mode upmap || return 1 ceph balancer on || return 1 ceph config set mgr mgr/balancer/sleep_interval 5 diff --git a/src/pybind/mgr/balancer/module.py b/src/pybind/mgr/balancer/module.py index c98ce9aec41..db421ef359b 100644 --- a/src/pybind/mgr/balancer/module.py +++ b/src/pybind/mgr/balancer/module.py @@ -316,7 +316,7 @@ class Module(MgrModule): runtime=True), Option(name='upmap_max_deviation', type='int', - default=5, + default=1, min=1, desc='deviation below which no optimization is attempted', long_desc='If the number of PGs are within this count then no optimization is attempted',