Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raft - Block voting when node shutdown #18

Closed
zarusz opened this issue Aug 7, 2023 · 0 comments · Fixed by #19
Closed

Raft - Block voting when node shutdown #18

zarusz opened this issue Aug 7, 2023 · 0 comments · Fixed by #19
Assignees
Labels
enhancement New feature or request Raft

Comments

@zarusz
Copy link
Owner

zarusz commented Aug 7, 2023

In case of redeployments into Kubernetes the pod gets a signal to shut down, then new pods are created doubling the cluster size.
In this situation, the pods shutting down should block their voting mechanism to allow the cluster to converge quicker.

@zarusz zarusz added enhancement New feature or request Raft labels Aug 7, 2023
@zarusz zarusz self-assigned this Aug 7, 2023
zarusz added a commit that referenced this issue Aug 18, 2023
…ubernetes to perform a graceful shutdown. As a result, the pods shutting down will not vote. Closes Raft - Block voting when node shutdown #18

Better usage of IPMessageEndpoint, so that it does not starve the SWIM messages in case the Raft leader cannot receive a response from its followers.
Sample has an example for a distributed counter with exposed API
Multi-targeting enabled to take some improvements in the .net6 UDP client

Signed-off-by: Tomasz Maruszak <maruszaktomasz@gmail.com>
zarusz added a commit that referenced this issue Aug 20, 2023
…ubernetes to perform a graceful shutdown. As a result, the pods shutting down will not vote. Closes Raft - Block voting when node shutdown #18

Better usage of IPMessageEndpoint, so that it does not starve the SWIM messages in case the Raft leader cannot receive a response from its followers.
Sample has an example for a distributed counter with exposed API
Multi-targeting enabled to take some improvements in the .net6 UDP client

Signed-off-by: Tomasz Maruszak <maruszaktomasz@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Raft
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant