報錯 *** 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