Moving slot 12287 from 119.29.17.67:7002 to 182.61.40.160:7007:
root@VM-0-16-centos:/data# redis-cli -c -p 7001
127.0.0.1:7001> exit
root@VM-0-16-centos:/data# redis-cli –cluster check 119.29.17.67:7001
119.29.17.67:7001 (e8b84390…) -> 1 keys | 4096 slots | 1 slaves.
182.61.40.160:7007 (975d27d7…) -> 1 keys | 4096 slots | 0 slaves.
182.61.40.160:7004 (b13f417e…) -> 1 keys | 4096 slots | 1 slaves.
182.61.40.160:7008 (4d263856…) -> 0 keys | 0 slots | 0 slaves.
119.29.17.67:7002 (f82fdcff…) -> 1 keys | 4096 slots | 1 slaves.
[OK] 4 keys in 5 masters.
0.00 keys per slot on average.
Performing Cluster Check (using node 119.29.17.67:7001)
M: e8b84390a14df617e7bf732f5ea13cdb621719a5 119.29.17.67:7001
slots:[1365-5460] (4096 slots) master
1 additional replica(s)
M: 975d27d7de10b67b41249b877b9a5fec6f18bf6a 182.61.40.160:7007
slots:[0-1364],[5461-6826],[10923-12287] (4096 slots) master
S: d00826dab49649331fcec2aec471cc554b7baac8 182.61.40.160:7006
slots: (0 slots) slave
replicates e8b84390a14df617e7bf732f5ea13cdb621719a5
S: 25edd779e16f7d94e2fce77a1d6eb91347066902 119.29.17.67:7003
slots: (0 slots) slave
replicates b13f417e5c6785af87488d52c1fb742703960366
M: b13f417e5c6785af87488d52c1fb742703960366 182.61.40.160:7004
slots:[6827-10922] (4096 slots) master
1 additional replica(s)
S: a13ce20e71d8813c078cf7fe5a87d799e58d583e 182.61.40.160:7005
slots: (0 slots) slave
replicates f82fdcff3fe2ca9c47758ef8f4d322de5cf22656
M: 4d26385686675ba7aff9aa53e20d240ddb801e07 182.61.40.160:7008
slots: (0 slots) master
M: f82fdcff3fe2ca9c47758ef8f4d322de5cf22656 119.29.17.67:7002
slots:[12288-16383] (4096 slots) master
1 additional replica(s)
[OK] All nodes agree about slots configuration.
Check for open slots…
Check slots coverage…
[OK] All 16384 slots covered.
root@VM-0-16-centos:/data# redis-cli –cluster del-node 119.29.17.67:7008 4d26385686675ba7aff9aa53e20d240ddb801e07
Removing node 4d26385686675ba7aff9aa53e20d240ddb801e07 from cluster 119.29.17.67:7008
Could not connect to Redis at 119.29.17.67:7008: Connection refused
root@VM-0-16-centos:/data# redis-cli –cluster del-node 119.29.17.67:7001 4d26385686675ba7aff9aa53e20d240ddb801e07
Removing node 4d26385686675ba7aff9aa53e20d240ddb801e07 from cluster 119.29.17.67:7001
Sending CLUSTER FORGET messages to the cluster…
Sending CLUSTER RESET SOFT to the deleted node.
root@VM-0-16-centos:/data# redis-cli –cluster check 119.29.17.67:7001
119.29.17.67:7001 (e8b84390…) -> 1 keys | 4096 slots | 1 slaves.
182.61.40.160:7007 (975d27d7…) -> 1 keys | 4096 slots | 0 slaves.
182.61.40.160:7004 (b13f417e…) -> 1 keys | 4096 slots | 1 slaves.
119.29.17.67:7002 (f82fdcff…) -> 1 keys | 4096 slots | 1 slaves.
[OK] 4 keys in 4 masters.
0.00 keys per slot on average.
Performing Cluster Check (using node 119.29.17.67:7001)
M: e8b84390a14df617e7bf732f5ea13cdb621719a5 119.29.17.67:7001
slots:[1365-5460] (4096 slots) master
1 additional replica(s)
M: 975d27d7de10b67b41249b877b9a5fec6f18bf6a 182.61.40.160:7007
slots:[0-1364],[5461-6826],[10923-12287] (4096 slots) master
S: d00826dab49649331fcec2aec471cc554b7baac8 182.61.40.160:7006
slots: (0 slots) slave
replicates e8b84390a14df617e7bf732f5ea13cdb621719a5
S: 25edd779e16f7d94e2fce77a1d6eb91347066902 119.29.17.67:7003
slots: (0 slots) slave
replicates b13f417e5c6785af87488d52c1fb742703960366
M: b13f417e5c6785af87488d52c1fb742703960366 182.61.40.160:7004
slots:[6827-10922] (4096 slots) master
1 additional replica(s)
S: a13ce20e71d8813c078cf7fe5a87d799e58d583e 182.61.40.160:7005
slots: (0 slots) slave
replicates f82fdcff3fe2ca9c47758ef8f4d322de5cf22656
M: f82fdcff3fe2ca9c47758ef8f4d322de5cf22656 119.29.17.67:7002
slots:[12288-16383] (4096 slots) master
1 additional replica(s)
[OK] All nodes agree about slots configuration.
Check for open slots…
Check slots coverage…
[OK] All 16384 slots covered.
root@VM-0-16-centos:/data# redis-cli –cluster add-node 182.61.40.160:7008 119.29.17.67:7001 –cluster-slave –cluster-master-id 975d27d7de10b67b41249b877b9a5fec6f18bf6a
Adding node 182.61.40.160:7008 to cluster 119.29.17.67:7001
Performing Cluster Check (using node 119.29.17.67:7001)
M: e8b84390a14df617e7bf732f5ea13cdb621719a5 119.29.17.67:7001
slots:[1365-5460] (4096 slots) master
1 additional replica(s)
M: 975d27d7de10b67b41249b877b9a5fec6f18bf6a 182.61.40.160:7007
slots:[0-1364],[5461-6826],[10923-12287] (4096 slots) master
S: d00826dab49649331fcec2aec471cc554b7baac8 182.61.40.160:7006
slots: (0 slots) slave
replicates e8b84390a14df617e7bf732f5ea13cdb621719a5
S: 25edd779e16f7d94e2fce77a1d6eb91347066902 119.29.17.67:7003
slots: (0 slots) slave
replicates b13f417e5c6785af87488d52c1fb742703960366
M: b13f417e5c6785af87488d52c1fb742703960366 182.61.40.160:7004
slots:[6827-10922] (4096 slots) master
1 additional replica(s)
S: a13ce20e71d8813c078cf7fe5a87d799e58d583e 182.61.40.160:7005
slots: (0 slots) slave
replicates f82fdcff3fe2ca9c47758ef8f4d322de5cf22656
M: f82fdcff3fe2ca9c47758ef8f4d322de5cf22656 119.29.17.67:7002
slots:[12288-16383] (4096 slots) master
1 additional replica(s)
[OK] All nodes agree about slots configuration.
Check for open slots…
Check slots coverage…
[OK] All 16384 slots covered.
Send CLUSTER MEET to node 182.61.40.160:7008 to make it join the cluster.
Waiting for the cluster to joinConfigure node as replica of 182.61.40.160:7007.
[OK] New node added correctly.
root@VM-0-16-centos:/data# redis-cli –cluster check 119.29.17.67:7001
119.29.17.67:7001 (e8b84390…) -> 1 keys | 4096 slots | 1 slaves.
182.61.40.160:7007 (975d27d7…) -> 1 keys | 4096 slots | 1 slaves.
182.61.40.160:7004 (b13f417e…) -> 1 keys | 4096 slots | 1 slaves.
119.29.17.67:7002 (f82fdcff…) -> 1 keys | 4096 slots | 1 slaves.
[OK] 4 keys in 4 masters.
0.00 keys per slot on average.
Performing Cluster Check (using node 119.29.17.67:7001)
M: e8b84390a14df617e7bf732f5ea13cdb621719a5 119.29.17.67:7001
slots:[1365-5460] (4096 slots) master
1 additional replica(s)
M: 975d27d7de10b67b41249b877b9a5fec6f18bf6a 182.61.40.160:7007
slots:[0-1364],[5461-6826],[10923-12287] (4096 slots) master
1 additional replica(s)
S: d00826dab49649331fcec2aec471cc554b7baac8 182.61.40.160:7006
slots: (0 slots) slave
replicates e8b84390a14df617e7bf732f5ea13cdb621719a5
S: 25edd779e16f7d94e2fce77a1d6eb91347066902 119.29.17.67:7003
slots: (0 slots) slave
replicates b13f417e5c6785af87488d52c1fb742703960366
M: b13f417e5c6785af87488d52c1fb742703960366 182.61.40.160:7004
slots:[6827-10922] (4096 slots) master
1 additional replica(s)
S: a13ce20e71d8813c078cf7fe5a87d799e58d583e 182.61.40.160:7005
slots: (0 slots) slave
replicates f82fdcff3fe2ca9c47758ef8f4d322de5cf22656
S: 4d26385686675ba7aff9aa53e20d240ddb801e07 182.61.40.160:7008
slots: (0 slots) slave
replicates 975d27d7de10b67b41249b877b9a5fec6f18bf6a
M: f82fdcff3fe2ca9c47758ef8f4d322de5cf22656 119.29.17.67:7002
slots:[12288-16383] (4096 slots) master
1 additional replica(s)
[OK] All nodes agree about slots configuration.
Check for open slots…
Check slots coverage…
[OK] All 16384 slots covered.