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

Multi-Master - Removing a down node #192

Closed
jameswestover opened this issue Jun 9, 2020 · 3 comments
Closed

Multi-Master - Removing a down node #192

jameswestover opened this issue Jun 9, 2020 · 3 comments

Comments

@jameswestover
Copy link

When running KeyDB in a multi-master setup, if a master fails and is unable to reacquire the same address upon startup, the node moves into a master_link_status:down state. It would be nice to be able to remove the bad replica without having to restart the KeyDb process.

REPLICAOF NO ONE removes all nodes, in which case the healthy nodes would have to be added back in, causing a lapse in replication / availability.

It would be nice to have a command something like REPLICAOF REMOVE IP PORT which would remove a master from the replication group.

I haven't found an alternative that allows removing nodes in a zero down time way, while still retaining the other health replication members.

@JohnSully
Copy link
Collaborator

Yes I agree that's a major missing feature.

I've implemented it exactly as you described in change: 70b80aa

@jameswestover
Copy link
Author

Amazing! Thank you!

@darinspivey
Copy link

Wow, I'm super glad I found this issue as I was getting ready to implement replicaof no one to remove dead replicas. Thank you for this fix, but the documentation desperately needs to be updated to reflect this feature.

I opened Snapchat/KeyDB-docs#49 for this, and THANK YOU for this fix which I can immediately use!

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

No branches or pull requests

3 participants