Skip to content

What could cause leaders to constantly switch? #94

Answered by sakno
Arkensor asked this question in Q&A
Discussion options

You must be logged in to vote

@Arkensor , request timeout is too high in your setup. On Windows, in case of localhost communication, the leader should wait for this timeout to detect unavailable member. This is the expected behavior of tcp socket on Windows. On Linux, it behaves differently. Anyway, you should set request timeout lower than lowerElectionTimeout.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@Arkensor
Comment options

@sakno
Comment options

@sakno
Comment options

Answer selected by Arkensor
Comment options

You must be logged in to vote
3 replies
@sakno
Comment options

@Arkensor
Comment options

@sakno
Comment options

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