Raft: Dynamic Node State Based on Backend Service Health #224
Unanswered
swisstiming-test
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to change the state of the local node depending on the health of a backend service. The goal is for the node to relinquish leadership if the service is unhealthy and to be eligible for leadership once the service is healthy again.
I've tried several approaches:
EnableStandbyModeAsync
/RevertToNormalModeAsync
). Problem: Enabling standby mode fails when the node is currently the leader.RemoveMemberAsync(_cluster.LocalMemberAddress)
/AddMemberAsync(_cluster.LocalMemberAddress)
). Problem: Removing the member fails when the node is not currently the leader.StopAsync
/StartAsync
). Problem: I get an error when I try to start the node again.Ideally, the node would remain in standby to maintain quorum.
Could you provide guidance on the correct approach or suggest alternative solutions? Thank you for your assistance.
Beta Was this translation helpful? Give feedback.
All reactions