Leader Election Only Cluster with Random Startup Order #207
Unanswered
martinzwirner
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Yes, you can use
No, bootstrapping requires a single node with
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm using DotNext.AspNetCore.Cluster to implement leader election in a cluster of three nodes with one standby node and TCP transport. I have two questions about the proper set up:
I understand that in this case the default ConsensusOnlyState implementation can be used and that it does not store state on disk. IMHO this is no problem as the nodes are auto-discovered and added to the cluster on startup. Should a persistent storage be configured anyway and if yes, how?
I understand that ColdStart = true should be set only on the node that's started first. In my case users should not have to do this manually though. My current solution is to set ColdStart = true on both non-standby nodes. However this seems to create errors sometimes when both nodes are started at the same time. Is my approach correct or is there a better way?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions