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

Allow more than one peer slave #2

Open
pron opened this issue Jun 28, 2012 · 1 comment
Open

Allow more than one peer slave #2

pron opened this issue Jun 28, 2012 · 1 comment
Assignees

Comments

@pron
Copy link
Contributor

pron commented Jun 28, 2012

This will require some consensus algorithm for the slaves, so it might be quite complicated. The problem is that when the master dies, the slaves may not all be in the same state, and once a new master is elected, its slaves may7 not be in sync with it.

Perhaps a better idea (and who would want 3x hardware anyways?) is to have a new type of node. Nodes that aren't assigned a node id, and simply monitor the cluster for failures. Once a master dies and a slave takes over, one (how is it chosen?) of these passive nodes will become a new slave (it will have to replicate all the old data - how much burden would that put on the new master?)

@ghost ghost assigned pron Jul 4, 2012
@pron
Copy link
Contributor Author

pron commented Jul 9, 2012

What we should do is leader election among slaves after the master dies. The leader is the node with the most recent backup update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant