redis--删除多余的slave节点
redis--删除多余的slave节点
1.#删除多余的slave从节点 [root@redis-node1 ~]#redis-cli -a 123456 --cluster del-node 10.0.0.18:6379 f9adcfb8f5a037b257af35fa548a26ffbadc852d Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe. >>> Removing node f9adcfb8f5a037b257af35fa548a26ffbadc852d from cluster 10.0.0.18:6379 >>> Sending CLUSTER FORGET messages to the cluster... >>> SHUTDOWN the node
2.#删除集群文件
[root@redis-node4 ~]#rm -f /var/lib/redis/nodes-6379.conf
3.验证删除信息
[root@redis-node1 ~]#redis-cli -a 123456 --cluster check 10.0.0.8:6379
[root@redis-node1 ~]#redis-cli -a 123456 --cluster info 10.0.0.8:6379