]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: fix premature stop of MDBalancer::try_rebalance() 23884/head
authorYan, Zheng <zyan@redhat.com>
Fri, 3 Aug 2018 10:43:41 +0000 (18:43 +0800)
committerYan, Zheng <zyan@redhat.com>
Wed, 19 Sep 2018 01:33:09 +0000 (09:33 +0800)
commita84a2d91243ad951c2b5beaa0c7b4955206650f8
treef801b366635245ad88ab0b94b82fdb51c219660b
parent461dcf6b28bee4c60edffb52203c75b4bc84b620
mds: fix premature stop of MDBalancer::try_rebalance()

When mds wants to export loads to multiple targets. The amount of single
export can easily be less than (0.2 * target_loads). For example:

6 active mds, mds.0's load is 11, other ranks' loads are 5. target_load
is 6. Export amount for each target is 1.

Fixes: http://tracker.ceph.com/issues/26973
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
(cherry picked from commit e68cbec6a647f0252d848620ce6e51b4f3eea1e3)
src/mds/MDBalancer.cc