看,7003的缺失少了3个节点。我们在看下cluster info
127.0.0.1:7003> cluster infocluster_state:failcluster_slots_assigned:16381cluster_slots_ok:16381
只有16381个,确实少了4个。但是,注意:cluster_state:fail,集群失败了!!!
为什么呢?为什么删除了3个槽点就失败了呢。因为集群就是要满足所有的16364个槽点全部分配才会成功。所以。就失败了。
数据读取自然也会失败:
127.0.0.1:7003> get name(error) CLUSTERDOWN The cluster is down
我们用redis-trib检查一下,就知道了:
[url=][/url]
[root@web3 7009]# redis-trib.rb check 192.168.33.13:7000......[ERR] Nodes don't agree about configuration!>>> Check for open slots...>>> Check slots coverage...[ERR] Not all 16384 slots are covered by nodes.[url=][/url]