]> git-server-git.apps.pok.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)
committerJoao Eduardo Luis <joao@wipwd.org>
Thu, 3 Mar 2016 11:06:03 +0000 (11:06 +0000)
commit45e16d0d7407cf4e886dde9321bb91c1a087776d
tree6194e9d490ccd96cf3299a439961482b8fd635fd
parent045ad3d2a5bf85698d9d28e8e47bfe3ec2a136af
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>
src/common/config_opts.h
src/mon/Monitor.cc
src/mon/Monitor.h