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

How to add the Node back to the cluster when deleted manually? #11309

Open
alok183 opened this issue Sep 22, 2022 · 1 comment
Open

How to add the Node back to the cluster when deleted manually? #11309

alok183 opened this issue Sep 22, 2022 · 1 comment
Labels
state:to-be-closed requesting the core team to close the issue

Comments

@alok183
Copy link

alok183 commented Sep 22, 2022

How to add the Node back to the cluster when deleted manually without deleting the data?

  1. Having cluster of 6 nodes (3 master, 3 slaves)
  2. Delete the one of the slave from cluster
    kubectl exec -it redis-cluster-redis-cluster-statefulset-0 -- redis-cli --cluster del-node 10.233.101.9:6379 165004f7c37e5efe94522ae1d4c8194ebe5d86c5
  3. Try to add the node back to cluster
    kubectl exec -it redis-cluster-redis-cluster-statefulset-0 -- redis-cli --cluster add-node 10.233.101.9:6379 10.233.100.9:6379 --cluster-slave --cluster-master-id 21afd0d372e3b404d103cf56789ea3a3f72a8c8a

Error

image

Even trying to add after clean up but not able to perform the operation
image

@madolson
Copy link
Contributor

The best way is probably to use CLUSTER RESET HARD. Which will make the node forget it's status, and will flush data.

@madolson madolson added the state:to-be-closed requesting the core team to close the issue label Nov 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state:to-be-closed requesting the core team to close the issue
Projects
None yet
Development

No branches or pull requests

2 participants