From a3a40413f7908b08c40dec4020034cca4a0c4798 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Thu, 19 Oct 2017 22:13:36 -0400 Subject: [PATCH] common/common_init: disable ms subsystem log gathering for clients The log gathering causes large performance degradation to clients with high message throughputs. This is hopefully a short-term workaround until per-message logging can be replaced with an efficient data recording system for post-incident analysis use-cases. Fixes: http://tracker.ceph.com/issues/21860 Signed-off-by: Jason Dillaman --- src/common/common_init.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/common_init.cc b/src/common/common_init.cc index 9cb1b1207fd..7889f42a0c2 100644 --- a/src/common/common_init.cc +++ b/src/common/common_init.cc @@ -58,6 +58,10 @@ CephContext *common_preinit(const CephInitParameters &iparams, conf->set_val_or_die("err_to_stderr", "false"); conf->set_val_or_die("log_flush_on_exit", "false"); } + if (code_env != CODE_ENVIRONMENT_DAEMON) { + // NOTE: disable ms subsystem gathering in clients by default + conf->set_val_or_die("debug_ms", "0/0"); + } return cct; }