You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lease window = 1 s − leaseSafetyMargin (300 ms) = 700 ms (margin 30%)
TiKV reference: election timeout 10 s, max lease 9 s (margin 10%). The larger window absorbs GC pauses and apply-queue depth without consuming the safety margin.
Background
Current Raft tick configuration:
defaultTickInterval = 10 msdefaultElectionTick = 100→ election timeout 1 sleaseSafetyMargin(300 ms) = 700 ms (margin 30%)TiKV reference: election timeout 10 s, max lease 9 s (margin 10%). The larger window absorbs GC pauses and apply-queue depth without consuming the safety margin.
Trade-off
heartbeatTick1→10 andelectionTick10→100 for stability.Proposed action
electionTickto 300-500 (3-5 s window), giving the 10% margin TiKV uses.References: PR #549, PR #529.