From: Jason Dillaman Date: Fri, 20 Oct 2017 02:13:36 +0000 (-0400) Subject: common/common_init: disable ms subsystem log gathering for clients X-Git-Tag: v13.0.1~475^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F18418%2Fhead;p=ceph.git 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 --- diff --git a/src/common/common_init.cc b/src/common/common_init.cc index 9cb1b1207fdb9..7889f42a0c2da 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; }