Description :
This can be considered a thinking about it, you can create a cluster by redis redis-trib.rb, then --replicas followed by the number indicating a primary node corresponding to several slave nodes, then I made the following test, you want to achieve results is to have six nodes, then two master nodes, each node corresponds to two slave master node, not to just six nodes yet, but an error in the implementation of:
[aiprd@hadoop2 src]$ ./redis-trib.rb create --replicas 2 192.168.30.10:7000 192.168.30.11:7003 192.168.30.10:7002 192.168.30.10:7001 192.168.30.11:7004 192.168.30.11:7005 >>> Creating cluster *** ERROR: Invalid configuration for cluster creation. *** Redis Cluster requires at least 3 master nodes. *** This is not possible with 6 Nodes and 2 Replicas per the Node. # Explain, for six nodes can not be three master, there are two copies of each node. Because, such a structure requires nine nodes. At Least *** 9 Nodes are required. # Need at least nine nodes.
Meaning the above information is: Redis cluster requires at least three master node, so now a total of six nodes, it can only be 1master correspond 1slave this way.
and so:
1master-1slave, redis cluster node requires 6
1master-2slave, redis clusters need nine nodes, and so on.
Documentation Created : August 2, 2019 12:40:04