redis集群报错
报错1 CLUSTERDOWN The cluster is down
1,redis-cli --cluster check 123.57.186.160:6379 //检查集群 查看报错
2,redis-cli -c -p 7005 进入对应节点
3,cluster setslot 4807 stable //迁移对应的槽
[root@iucy7Z src]# redis-cli --cluster check 123.57.186.160:6379
123.57.156.160:6379 (f21e7c3f...) -> 2 keys | 5461 slots | 1 slaves.
127.0.0.1:7005 (06eacf24...) -> 7 keys | 5462 slots | 1 slaves.
127.0.0.1:7006 (5b621b30...) -> 7 keys | 5461 slots | 1 slaves.
[OK] 16 keys in 3 masters.
0.00 keys per slot on average.
>>> Performing Cluster Check (using node 123.57.186.160:6379)
M: f21e7c3fe3499b9f33c7a803c150d0ff3b3f800d 123.57.186.160:6379
slots:[0-5460] (5461 slots) master
1 additional replica(s)
M: 06eacf249d25cd1a553022e9d1d9c1e88f9257c2 127.0.0.1:7005
slots:[5461-10922] (5462 slots) master
1 additional replica(s)
S: 7eb876c1843459d2f10e79274f22008c9b9a104d 127.0.0.1:7003
slots: (0 slots) slave
replicates 5b621b308cfc97d2a4a98ce90a7f20b9343f1dad
M: 5b621b308cfc97d2a4a98ce90a7f20b9343f1dad 127.0.0.1:7006
slots:[10923-16383] (5461 slots) master
1 additional replica(s)
S: c3350e18a61bdf6a839aa3c84c2e02b78f0df87e 127.0.0.1:7004
slots: (0 slots) slave
replicates f21e7c3fe3499b9f33c7a803c150d0ff3b3f800d
S: c2395836bfbd8fd42bcf1b05a5642276d7d09d29 127.0.0.1:6080
slots: (0 slots) slave
replicates 06eacf249d25cd1a553022e9d1d9c1e88f9257c2
[ERR] Nodes don't agree about configuration!
>>> Check for open slots...
>///错误信息
[WARNING] Node 127.0.0.1:7005 has slots in importing state 4807,12291,13026,14041,15141,15393,16025.
[WARNING] Node 127.0.0.1:7006 has slots in importing state 4807.
[WARNING] The following slots are open: 15141,12291,14041,13026,4807,16025,15393.
>>> Check slots coverage...
[OK] All 16384 slots covered.
[root@iZ2zeh3bjq6rgnw0phucy7Z src]# redis-cli -c -p 7005
127.0.0.1:7005>
[root@iZ2zphucy7 src]# redis-cli -c -p 7006
127.0.0.1:7006> cluster setslot 4807 stable
OK
127.0.0.1:7006> set nmmf ff
-> Redirected to slot [5028] located at 127.0.0.1:6379
OK