-
Hi, I was wondering how a leader in an IRaftHttpCluster could shut down gracefully. My requirement is, that if an instance is asked to shut down and its currently the cluster leader, that others will take over for him and he will be known to have left the cluster. I tested calling Is there an intended way for how to handle this? Is it even possible to leave the cluster on a CTRL+C / close process scenario? Thank you :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Graceful shutdown is an operation that must be initiated externally by cluster admin. It consists of the following steps:
The last operation is a regular Raft operation that must be accepted by the leader and committed by the majority of nodes. |
Beta Was this translation helpful? Give feedback.
Graceful shutdown is an operation that must be initiated externally by cluster admin. It consists of the following steps:
The last operation is a regular Raft operation that must be accepted by the leader and committed by the majority of nodes.
RemoveMemberAsync
should be called on leader node only.