今天进入redis执行cluster info发现 cluster_state:fail 并且 cluster_known_nodes:5 少了一个7006的node
然后我重启了7006的redis 并且执行 ./redis-trib.rb create --replicas 1 192.168.0.168:7001 192.168.0.168:7002 192.168.0.169:7003 192.168.0.169:7004 192.168.0.170:7005 192.168.0.170:7006
发现还是不行 cluster_state:fail 并且 cluster_known_nodes:5
后来重启了7005的redis 发现 cluster_state:ok了但是 7006依然没有加入集群 cluster_known_nodes:5
然后我执行
./redis-trib.rb add-node 15.31.213.183:7006 15.31.213.183:7005
终于可以把7006加入到redis cluster了恢复正常了