]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
pybind/mgr/balancer: allow customized optimization threshold
authorxie xingguo <xie.xingguo@zte.com.cn>
Fri, 2 Feb 2018 07:12:49 +0000 (15:12 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 7 Feb 2018 13:26:33 +0000 (21:26 +0800)
commit147625651fc712bcde3303ed8e9f6326dee1f6e7
tree3d7360ece546039d66f32578e838cfc30a8abf20
parent3733b94686e93df00096462258d8182b4aaef2f0
pybind/mgr/balancer: allow customized optimization threshold

In practice it is hard to achieve a 100% (perfect) balanced distribution.
This patch introduces a user visiable threshold configuration here, which
allow user to define the minimal deviation to trigger an optimization.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/pybind/mgr/balancer/module.py