]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: calculate load by checking self CPU usage 23341/head
authorYan, Zheng <zyan@redhat.com>
Tue, 31 Jul 2018 03:32:02 +0000 (11:32 +0800)
committerYan, Zheng <zyan@redhat.com>
Fri, 3 Aug 2018 08:07:22 +0000 (16:07 +0800)
commit1ff36edd2a1827102e6196a9cba150fe866b7d43
tree15edded0e359a3a6864f781b7783cc3f885a3bff
parent55e60ab17d17bcb2fc7b81774b3097dc17e58738
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>
src/mds/MDBalancer.cc
src/mds/MDBalancer.h