diff options
author | Venky Shankar <vshankar@redhat.com> | 2023-08-21 09:50:22 +0200 |
---|---|---|
committer | Venky Shankar <vshankar@redhat.com> | 2023-08-22 06:47:27 +0200 |
commit | 59dd587ddb3bc95a95d0fb8715511d194181ec6f (patch) | |
tree | b3fe315d0f72199bc0db0124179637b302de5d34 /src/mds/SessionMap.cc | |
parent | mds: blocklist clients with "bloated" session metadata (diff) | |
download | ceph-59dd587ddb3bc95a95d0fb8715511d194181ec6f.tar.xz ceph-59dd587ddb3bc95a95d0fb8715511d194181ec6f.zip |
mds: add perf counter to track number of sessions evicted due to metadata threshold being exceeded
Signed-off-by: Venky Shankar <vshankar@redhat.com>
Diffstat (limited to 'src/mds/SessionMap.cc')
-rw-r--r-- | src/mds/SessionMap.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mds/SessionMap.cc b/src/mds/SessionMap.cc index 873dedbe68d..9cc2b013847 100644 --- a/src/mds/SessionMap.cc +++ b/src/mds/SessionMap.cc @@ -71,6 +71,8 @@ void SessionMap::register_perfcounters() plb.add_u64(l_mdssm_avg_load, "average_load", "Average Load"); plb.add_u64(l_mdssm_avg_session_uptime, "avg_session_uptime", "Average session uptime"); + plb.add_u64(l_mdssm_metadata_threshold_sessions_evicted, "mdthresh_evicted", + "Sessions evicted on reaching metadata threshold"); logger = plb.create_perf_counters(); g_ceph_context->get_perfcounters_collection()->add(logger); @@ -479,6 +481,7 @@ void SessionMap::save(MDSContext *onsave, version_t needv) new C_OnFinisher(new C_IO_SM_Save(this, version), mds->finisher)); apply_blocklist(to_blocklist); + logger->inc(l_mdssm_metadata_threshold_sessions_evicted, to_blocklist.size()); } void SessionMap::_save_finish(version_t v) @@ -926,6 +929,7 @@ void SessionMap::save_if_dirty(const std::set<entity_name_t> &tgt_sessions, } apply_blocklist(to_blocklist); + logger->inc(l_mdssm_metadata_threshold_sessions_evicted, to_blocklist.size()); } // ================= |