]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: Monitor: adaptative clock skew detection interval
authorJoao Eduardo Luis <joao@suse.de>
Thu, 7 Jan 2016 11:05:44 +0000 (11:05 +0000)
committerXiaoxi Chen <xiaoxchen@ebay.com>
Mon, 14 Mar 2016 00:48:05 +0000 (17:48 -0700)
commitf90b8bc1a2b3ffa5ba52c0992c1c5ff52e5ea104
treeb0f157d2ff0d58b820b3f1c87a9b41fa98ee0ec0
parent35eae5fbddd2b271a10db9a69d4c4e34029bca06
mon: Monitor: adaptative clock skew detection interval

When in the presence of a clock skew, adjust the checking interval
according to how many rounds have gone by since the last clean check.

If a skew is detected, instead of waiting an additional 300 seconds we
will perform the check more frequently, gradually backing off the
frequency if the skew is still in place (up to a maximum of
'mon_timecheck_interval', default: 300s). This will help with transient
skews.

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
(cherry pick from commit 45e16d0d7407cf4e886dde9321bb91c1a087776d)

Conflicts:
src/common/config_opts.h
            Merge the change line.
src/mon/Monitor.h
            handle_timecheck_leader(MonOpRequestRef op) was replaced with handle_timecheck_leader(MTimeCheck *m)
            also for handle_timecheck_peon and handle_timecheck.
src/common/config_opts.h
src/mon/Monitor.cc
src/mon/Monitor.h