Skip to content

Trigger leader election but exclude *this* node #1265

Answered by schreter
sebadob asked this question in Q&A
Discussion options

You must be logged in to vote

There is a new feature for transferring leader to another node in master.

However, for your use case, I think a much cleaner solution would be to add a 4th Pod and change the membership to include the new Pod and exclude the one you are shutting down. After the membership is changed, shut it down, then do the same on the other two Pods. This is also less risky for your in-memory data, since you always have 3 replicas running.

Replies: 1 comment 3 replies

Comment options

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

@drmingdrmer
Comment options

@sebadob
Comment options

Answer selected by sebadob
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