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

Non Promotable Clone #1751

Closed
wants to merge 1 commit into from
Closed

Non Promotable Clone #1751

wants to merge 1 commit into from

Conversation

riccardone
Copy link
Contributor

@riccardone riccardone commented Nov 4, 2018

There is a new IsPromotable config setting (default true)
When it is set to false, the node does not partecipate in the election process as a candidate and it does not allow the cluster to stay up if there are not enough (other) nodes to form a quorum
Added a new test for the ElectionService changes (more tests can be added... as usual)

To test this PR, run a cluster of 3 nodes. This cluster could be the current stable version.
Once that the cluster is up and running, run a node using this PR code and IsPromotable set to false.
Remember to keep the clustersize 3 and use the same gossip port of the other nodes in order to join the existing cluster.
You can verify that the node is recognize as NonPromotableClone and it does not partecipate as a candidate in the Election Process when you shut down the other nodes for testing.

Closes #263
Closes EventStore/EventStore.CommercialHA#36

@riccardone riccardone mentioned this pull request Nov 4, 2018
@shaan1337
Copy link
Member

hello @riccardone can you please rebase again? (there was an issue with fork PRs on CI)

@riccardone riccardone changed the title Non Promotable Clone (new-project-format) Non Promotable Clone Nov 8, 2018
@shaan1337 shaan1337 added the area/documentation Issues relating to project documentation label Nov 12, 2018
@ChrisChinchilla ChrisChinchilla self-assigned this Nov 21, 2018
@ChrisChinchilla
Copy link
Contributor

This is now in progress

@shaan1337
Copy link
Member

shaan1337 commented Dec 31, 2018

@riccardone there are some conflicts to resolve here too (I guess related to argument passing). Can you please rebase to master?

@jcelgin
Copy link

jcelgin commented Feb 16, 2019

Will this make the cut for 5.0? It is worth noting that the docs suggest this is already a thing...

@jen20
Copy link
Contributor

jen20 commented Feb 16, 2019

Hi @jcelgin - 5.0.0 is already out, so no - but it should make 5.1.0 shortly, once it’s had some more thorough testing.

…se, the node does not partecipate in the election process as a candidate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation Issues relating to project documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NonPromotable Clone
6 participants