]> git.apps.os.sepia.ceph.com Git - ceph.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>
Thu, 8 Feb 2018 05:42:32 +0000 (13:42 +0800)
commit9dde3c9b73563cfe77cdb872746e1844287405e3
treee868947f5009fce3ef89fb286d9c45bb63d7774f
parent5be722a608cb3cd032ac757ea678651b7464d605
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>
(cherry picked from commit 147625651fc712bcde3303ed8e9f6326dee1f6e7)
src/pybind/mgr/balancer/module.py