本方法不考虑任何修复Cluster
1.在各节点启动的情况下
分别进入各节点执行命令:
redis-cli -c -h localhost -p 6379
>flushdb (清除数据)
>cluster reset (重置集群)
2.停止并删除每个redis节点的备份文件,数据库文件和集群配置文件
比如说我有7001~7006 6个节点,那么每个节点中的appendonly.aof、dump.rdb、node_xxx.conf文件都要被删除
3.启动服务,重新构建集群并检查集群状态
redis-trib.rb create --replicas 1 10.164.25.124:8017 10.164.25.125:8017 10.164.25.124:8018 10.164.25.125:8018 10.164.24.124:8019 10.164.25.125:8019
redis-trib.rb check 10.164.25.125:8019