From 529ea1c0a9dbef762d94d0de6d9bf80e7717848b Mon Sep 17 00:00:00 2001 From: Venky Shankar Date: Mon, 4 Feb 2019 18:49:58 +0530 Subject: [PATCH] mds: track per session client metrics Every MDS maintains a view of metrics that are forwarded to it by clients. This is updated when clients forward metrics via MClientMetrics message type. Periodically, each MDS forwards its collected metrics to MDS rank 0 (which maintains an aggregated view of metrics of all clients on all ranks). Signed-off-by: Venky Shankar --- src/common/options.cc | 8 +- src/mds/CMakeLists.txt | 1 + src/mds/MDSRank.cc | 13 +- src/mds/MDSRank.h | 2 + src/mds/MetricsHandler.cc | 272 ++++++++++++++++++++++++++++++++++++++ src/mds/MetricsHandler.h | 107 +++++++++++++++ src/mds/Server.cc | 17 ++- src/mds/Server.h | 5 +- 8 files changed, 417 insertions(+), 8 deletions(-) create mode 100644 src/mds/MetricsHandler.cc create mode 100644 src/mds/MetricsHandler.h diff --git a/src/common/options.cc b/src/common/options.cc index 0ca77ed2542..f57ce579251 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -8323,7 +8323,13 @@ std::vector