./redis-trib.rb create --replicas 1
192.168.81.142:7001 192.168.81.142:7002
192.168.81.142:7003 192.168.81.142:7004
192.168.81.142:7005 192.168.81.142:7006
>>> Creating cluster
Connecting to node 192.168.81.142:7001: OK
Connecting to node 192.168.81.142:7002: OK
Connecting to node 192.168.81.142:7003: OK
Connecting to node 192.168.81.142:7004: OK
Connecting to node 192.168.81.142:7005: OK
Connecting to node 192.168.81.142:7006: OK
>>> Performing hash slots allocation on 6 nodes...
Using 3 masters:
192.168.81.142:7001
192.168.81.142:7002
192.168.81.142:7003
Adding replica 192.168.81.142:7004 to 192.168.81.142:7001
Adding replica 192.168.81.142:7005 to 192.168.81.142:7002
Adding replica 192.168.81.142:7006 to 192.168.81.142:7003
M: 7ca25ac01d3da5efb9f25aa7259e24cd9d16910d 192.168.81.142:7001
slots:0-5460 (5461 slots) master
M: 2c39ffee04aed3d1100b6b9d6640b630bcc295e1 192.168.81.142:7002
slots:5461-10922 (5462 slots) master
M: ab054ceb45e6c4e3d1efee645a8fb7d64abd28b5 192.168.81.142:7003
slots:10923-16383 (5461 slots) master
S: ad2e038493605c98f7b516877d393fe21f3fbf85 192.168.81.142:7004
replicates 7ca25ac01d3da5efb9f25aa7259e24cd9d16910d
S: 35859f9240701728bf93b0cd6868816e4efdbd67 192.168.81.142:7005
replicates 2c39ffee04aed3d1100b6b9d6640b630bcc295e1
S: 0b6c9898513c50f74ef4a690e1c07c04140cef7f 192.168.81.142:7006
replicates ab054ceb45e6c4e3d1efee645a8fb7d64abd28b5
Can I set the above configuration? (type ‘yes‘ to accept): yes
>>> Nodes configuration updated
>>> Assign a different config epoch to each node
>>> Sending CLUSTER MEET messages to join the cluster
Waiting for the cluster to join.....
>>> Performing Cluster Check (using node 192.168.81.142:7001)M: 7ca25ac01d3da5efb9f25aa7259e24cd9d16910d 192.168.81.142:7001
slots:0-5460 (5461 slots) master
M: 2c39ffee04aed3d1100b6b9d6640b630bcc295e1 192.168.81.142:7002
slots:5461-10922 (5462 slots) master
M: ab054ceb45e6c4e3d1efee645a8fb7d64abd28b5 192.168.81.142:7003
slots:10923-16383 (5461 slots) master
M: ad2e038493605c98f7b516877d393fe21f3fbf85 192.168.81.142:7004
slots: (0 slots) master
replicates 7ca25ac01d3da5efb9f25aa7259e24cd9d16910d
M: 35859f9240701728bf93b0cd6868816e4efdbd67 192.168.81.142:7005
slots: (0 slots) master
replicates 2c39ffee04aed3d1100b6b9d6640b630bcc295e1
M: 0b6c9898513c50f74ef4a690e1c07c04140cef7f 192.168.81.142:7006
slots: (0 slots) master
replicates ab054ceb45e6c4e3d1efee645a8fb7d64abd28b5
[OK] All nodes agree about slots configuration.
>>> Check for open slots...
>>> Check slots coverage...
[OK] All 16384 slots covered.