Skip to content

Why should minTTL be equals to ( 3 * ElectionTicks) / 2 * heartbeat #15858

Closed Answered by ahrtr
Phoenix500526 asked this question in Q&A
Discussion options

You must be logged in to vote

The main purpose is to ensure lease will not expire on leader failover. FYI. #6025 (comment).

The randomElectionTimeout is in [electionTimeout, 2*ElectionTimeout), so I guess it's the reason why the minTTL was set to a value in the middle (1.5*ElectionTimeout) in #6085.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@ahrtr
Comment options

@mitake
Comment options

@ahrtr
Comment options

@Phoenix500526
Comment options

Answer selected by ahrtr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants