报错 *** This is not possible with 2 nodes and 192 replicas per node. 出现192说明是格式写错
[root@localhost src]# ./redis-trib.rb create --replicas 192.168.100.130:7000 192.168.100.130:7001 192.168.100.130:7002 >>> Creating cluster *** ERROR: Invalid configuration for cluster creation. *** Redis Cluster requires at least 3 master nodes. *** This is not possible with 2 nodes and 192 replicas per node. *** At least 579 nodes are required.
正确写法
./redis-trib.rb create --replicas 1 192.168.100.130:7000 192.168.100.130:7001 192.168.100.130:7002
报错 *** This is not possible with 3 nodes and 1 replicas per node. 出现1说明是搭建集群至少需要3主3从6台服务器或进程,否则你会遇到这错误
[root@localhost src]# ./redis-trib.rb create --replicas 1 192.168.100.130:7000 192.168.100.130:7001 192.168.100.130:7002 >>> Creating cluster *** ERROR: Invalid configuration for cluster creation. *** Redis Cluster requires at least 3 master nodes. *** This is not possible with 3 nodes and 1 replicas per node. *** At least 6 nodes are required.
参考 https://blog.csdn.net/h363659487/article/details/78793284