Clock synchronization requirements for stretched etcd cluster using leases across multiple sites #21245
-
|
Hi Team, We are running an etcd cluster stretched across multiple sites (1 member per site). As per my understanding, it seems leases and raft rely on elapsed/monotonic time, not wall-clock comparison. Question:
So is clock sync mandatory, recommended or unnecessary for correctness? Looking for official guidance for stretched/WAN clusters. Thanks!! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
etcd does not strictly require the clocks of its members to be synchronized, but it is generally considered best practice to keep them in sync. The leader uses its local clock to determine whether leases have expired. Note that Raft leader election is not affected by wall-clock being unsynchronized or by clock drift. Related docs: |
Beta Was this translation helpful? Give feedback.
etcd does not strictly require the clocks of its members to be synchronized, but it is generally considered best practice to keep them in sync. The leader uses its local clock to determine whether leases have expired.
Note that Raft leader election is not affected by wall-clock being unsynchronized or by clock drift.
Related docs: