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 <dillaman@redhat.com>
This commit is contained in:
Jason Dillaman 2017-10-19 22:13:36 -04:00
parent 34951266fe
commit a3a40413f7

View File

@ -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;
}