From: xie xingguo Date: Sun, 9 Oct 2016 02:52:09 +0000 (+0800) Subject: mgr/MgrMonitor: make period of sending digests configurable X-Git-Tag: v11.1.0~588^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=48d6515a13380e9d996312370bcaee0cd31c4a24;p=ceph.git mgr/MgrMonitor: make period of sending digests configurable Signed-off-by: xie xingguo --- diff --git a/src/common/config_opts.h b/src/common/config_opts.h index 7043b6321a8d..75aa3b0b64ae 100644 --- a/src/common/config_opts.h +++ b/src/common/config_opts.h @@ -1514,6 +1514,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(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 OPTION(rgw_list_bucket_min_readahead, OPT_INT, 1000) // minimum number of entries to read from rados for bucket listing diff --git a/src/mon/MgrMonitor.cc b/src/mon/MgrMonitor.cc index d6a3a9acac94..8864f327a3c7 100644 --- a/src/mon/MgrMonitor.cc +++ b/src/mon/MgrMonitor.cc @@ -271,7 +271,7 @@ void MgrMonitor::send_digests() digest_callback = new C_StdFunction([this](){ send_digests(); }); - mon->timer.add_event_after(5, digest_callback); + mon->timer.add_event_after(g_conf->mon_mgr_digest_period, digest_callback); } void MgrMonitor::tick()