From 0d1bbd34e96e2da2027861229b376805d5ea8aa6 Mon Sep 17 00:00:00 2001 From: David Zafman Date: Thu, 11 Jul 2019 21:24:12 +0000 Subject: [PATCH] osd mgr mon: Add mon_warn_on_slow_ping_ratio config as 5% of osd_heartbeat_grace Compute network ping threshold based on ratio (5% of 20 seconds is 1 second) Make the threshold value used part of dump_osd_network for osd and mgr Keep mon_warn_on_slow_ping_time (default 0) to optionally override the ratio Signed-off-by: David Zafman --- src/common/options.cc | 12 ++++++++++-- src/mgr/ClusterState.cc | 10 +++++++++- src/mon/PGMap.cc | 5 +++++ src/osd/OSD.cc | 10 +++++++++- 4 files changed, 33 insertions(+), 4 deletions(-) diff --git a/src/common/options.cc b/src/common/options.cc index b655117f676..15d88ced4a4 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -1713,9 +1713,17 @@ std::vector