Project

General

Profile

Feature #105

mon: warn on clock drift

Added by Sage Weil over 9 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Monitor
Target version:
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

2s clock drift takes down non-master monitors.. bleh.

History

#1 Updated by Sage Weil over 9 years ago

  • Tracker changed from Bug to Feature

#2 Updated by Sage Weil over 9 years ago

  • Assignee set to Greg Farnum

#3 Updated by Greg Farnum over 9 years ago

  • Status changed from New to Resolved

It warns to dout and the logger:
1) when the slave notices the leader is behind by >(mon_lease - latency), or
2) when the leader is ahead of the follower by >latency, or the follower is ahead of the leader by > double latency.
This is all the detection we can do.

It'd be nice to actually handle clock drift, and we could possibly do so, but to make it reliable with proper Paxos guarantees we'd need to switch to relative lease time extensions and it would be a bit of a mess.

Also available in: Atom PDF