Skip to content

Dead cluster member #200

Answered by drmingdrmer
sp1ff asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, not sure if I'm in the right place.

Yes, it's the right place:)

My question is, how do I re-add the first node, once I start it again?

Just restart the node with the same store.
Raft requires its store to be persistent. Although in this example for simplicity, it just uses an in-memory store for testing.
There is a sample that restarts node: https://github.com/datafuselabs/openraft/blob/762c5a32746895463e68529adf8830ecbe058e92/openraft/tests/append_entries/t30_append_inconsistent_log.rs#L90-L94

Pulling metrics from the remaining nodes shows that they still think the dead node is part of the cluster, which confuses me.
I mean, they knew that node died and responded by electing a n…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by drmingdrmer
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