From: Prashant D Date: Fri, 29 Oct 2021 13:09:24 +0000 (-0400) Subject: osd/OSD: Log aggregated slow ops detail to cluster logs X-Git-Tag: v15.2.17~14^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F45154%2Fhead;p=ceph.git osd/OSD: Log aggregated slow ops detail to cluster logs Slow requests can overwhelm a cluster log with every slow op in detail and also fills up the monitor db. Instead, log slow ops details in aggregated format. Fixes: https://tracker.ceph.com/issues/52424 Signed-off-by: Prashant D (cherry picked from commit 9319dc9273b36dc4f4bef1261b3c57690336a8cc) Conflicts: src/common/options/osd.yaml.in - Octopus doesn't have osd.yaml.in; added the option in src/common/options.cc --- diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index 832af68a8ef..b1153638606 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -536,6 +536,9 @@ OPTION(osd_agent_min_evict_effort, OPT_FLOAT) OPTION(osd_agent_quantize_effort, OPT_FLOAT) OPTION(osd_agent_delay_time, OPT_FLOAT) +// Allow OSD daemon to send an aggregated slow ops to the cluster log +OPTION(osd_aggregated_slow_ops_logging, OPT_BOOL) + // osd ignore history.last_epoch_started in find_best_info OPTION(osd_find_best_info_ignore_history_les, OPT_BOOL) diff --git a/src/common/options.cc b/src/common/options.cc index 2397748e791..9467b6fafcb 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -2527,6 +2527,11 @@ std::vector