https://blog.csdn.net/qq_40298351/article/details/102669146
https://www.cnblogs.com/renpingsheng/p/9813959.html
https://www.cnblogs.com/renpingsheng/p/9862485.html
1、redis.conf配置
cluster-enabled yes
cluster-config-file nodes-6380.conf
cluster-node-timeout 15000
2、重启redis
3、加入Cluster
src/redis-cli --cluster create 127.0.0.1:6380 127.0.0.1:6381 127.0.0.1:6382 127.0.0.1:6383 127.0.0.1:6384 127.0.0.1:6385  # 每个节点的IP:PORT
4、查看Cluster情况
src/redis-cli --cluster info 127.0.0.1:6380  # 任意一个节点的IP:PORT
5、加入新节点
src/redis-cli --cluster add-node 127.0.0.1:6386 127.0.0.1:6380  # 前面的IP:PORT 为新加入的节点
6、重设卡槽slots
src/redis-cli --cluster reshard 127.0.0.1:6380  # 重设节点slots