]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: calculate load by checking self CPU usage 23505/head
authorYan, Zheng <zyan@redhat.com>
Tue, 31 Jul 2018 03:32:02 +0000 (11:32 +0800)
committerYan, Zheng <zyan@redhat.com>
Thu, 9 Aug 2018 08:24:50 +0000 (16:24 +0800)
commit90fb1c2f53cb2b7a02899afb359bf77b83333fd8
tree53c5cd59467fb512bbbe38411593e8d480ca0794
parent038739ce44531168e90ae95857d8f2ef657665b3
mds: calculate load by checking self CPU usage

when mds_bal_mode is 2, system CPU load is treated as mds load.
This is not good when the machine runs multiple tasks.

Fixes: http://tracker.ceph.com/issues/26834
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
(cherry picked from commit 1ff36edd2a1827102e6196a9cba150fe866b7d43)

 Conflicts:
src/mds/MDBalancer.cc
src/mds/MDBalancer.cc
src/mds/MDBalancer.h