From: liuchang0812 Date: Mon, 2 Jan 2017 07:53:03 +0000 (+0800) Subject: mgr: Make stats period configurable X-Git-Tag: v12.0.0~301^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=66fd36d51fb456140d25cfe7a73b50ff899db6d6;p=ceph.git mgr: Make stats period configurable Fixes: http://tracker.ceph.com/issues/17449 Signed-off-by: liuchang0812 --- diff --git a/src/common/config_opts.h b/src/common/config_opts.h index cbaa937d5630..8f6e62c21a20 100644 --- a/src/common/config_opts.h +++ b/src/common/config_opts.h @@ -1592,6 +1592,7 @@ OPTION(mgr_module_path, OPT_STR, CEPH_PKGLIBDIR "/mgr") // where to load python OPTION(mgr_modules, OPT_STR, "rest") // Which modules to load OPTION(mgr_data, OPT_STR, "/var/lib/ceph/mgr/$cluster-$id") // where to find keyring etc OPTION(mgr_beacon_period, OPT_INT, 5) // How frequently to send beacon +OPTION(mgr_stats_period, OPT_INT, 5) // How frequently to send stats OPTION(mon_mgr_digest_period, OPT_INT, 5) // How frequently to send digests OPTION(mon_mgr_beacon_grace, OPT_INT, 30) // How long to wait to failover diff --git a/src/mgr/DaemonServer.cc b/src/mgr/DaemonServer.cc index 3b8def2f6e4f..57d115269cc4 100644 --- a/src/mgr/DaemonServer.cc +++ b/src/mgr/DaemonServer.cc @@ -165,7 +165,7 @@ bool DaemonServer::handle_open(MMgrOpen *m) << m->daemon_name << dendl; auto configure = new MMgrConfigure(); - configure->stats_period = 5; + configure->stats_period = g_conf->mgr_stats_period; m->get_connection()->send_message(configure); if (daemon_state.exists(key)) {