(error) ERR unknown command redis-cli
, with args beginning with: --cluster
, check
, 119.29.17.67: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…) -> 0 keys | 5461 slots | 1 slaves.
182.61.40.160:7004 (b13f417e…) -> 0 keys | 5462 slots | 1 slaves.
119.29.17.67:7002 (f82fdcff…) -> 0 keys | 5461 slots | 1 slaves.
[OK] 0 keys in 3 masters.
0.00 keys per slot on average.
root@VM-0-16-centos:/data# redis-cli –cluster add-node 182.61.40.160:7007 182.61.40.160:7008 119.29.17.67:7001Performing Cluster Check (using node 119.29.17.67:7001)
M: e8b84390a14df617e7bf732f5ea13cdb621719a5 119.29.17.67:7001
slots:[0-5460] (5461 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:[5461-10922] (5462 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:[10923-16383] (5461 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.
[ERR] Wrong number of arguments for specified –cluster sub command
root@VM-0-16-centos:/data# redis-cli –cluster add-node 182.61.40.160:7007 119.29.17.67:7001
Adding node 182.61.40.160:7007 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:[0-5460] (5461 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:[5461-10922] (5462 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:[10923-16383] (5461 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:7007 to make it join the cluster.
[OK] New node added correctly.
root@VM-0-16-centos:/data# redis-cli –cluster add-node 182.61.40.160:7008 119.29.17.67:7001
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:[0-5460] (5461 slots) master
1 additional replica(s)
M: 975d27d7de10b67b41249b877b9a5fec6f18bf6a 182.61.40.160:7007
slots: (0 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:[5461-10922] (5462 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:[10923-16383] (5461 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.
[OK] New node added correctly.
redis-cli –cluster reshard ip:7001
redis-cli –cluster check ip:7001
redis-cli –cluster del-node ip:7001 容器id