diff options
author | haoyixing <haoyixing@kuaishou.com> | 2022-06-14 10:45:13 +0200 |
---|---|---|
committer | haoyixing <haoyixing@kuaishou.com> | 2022-06-27 11:27:18 +0200 |
commit | a8f138cd3623e42c4f74a18d54ec7dfcc1e89e58 (patch) | |
tree | 612bebc5606304ce3affe59a057a861ea509a4f6 /src/mds/MDSDaemon.cc | |
parent | Merge pull request #44486 from batrick/fs-workload-kclient-switches (diff) | |
download | ceph-a8f138cd3623e42c4f74a18d54ec7dfcc1e89e58.tar.xz ceph-a8f138cd3623e42c4f74a18d54ec7dfcc1e89e58.zip |
mds/MDBalancer: add an arg to limit depth when dump loads for dirfrags
Directory hierarchy may be deep for a large filesystem, dump loads would output
a lot and take a long time. So add an arg to limit depth when dump loads of dirfrags.
Fixes: https://tracker.ceph.com/issues/56058
Signed-off-by: haoyixing <haoyixing@kuaishou.com>
Diffstat (limited to 'src/mds/MDSDaemon.cc')
-rw-r--r-- | src/mds/MDSDaemon.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mds/MDSDaemon.cc b/src/mds/MDSDaemon.cc index c31c86d3763..91440f11e95 100644 --- a/src/mds/MDSDaemon.cc +++ b/src/mds/MDSDaemon.cc @@ -340,7 +340,8 @@ void MDSDaemon::set_up_admin_socket() asok_hook, "dump metadata cache for subtree"); ceph_assert(r == 0); - r = admin_socket->register_command("dump loads", + r = admin_socket->register_command("dump loads " + "name=depth,type=CephInt,range=0,req=false", asok_hook, "dump metadata loads"); ceph_assert(r == 0); |