Last active
June 11, 2020 22:38
-
-
Save yuuki/2cea8e8480878a636498a0e921757ff0 to your computer and use it in GitHub Desktop.
Redis Cluster configures a cluster of 3 leaders, but now the cluster have 1 leader 2 followers.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ubuntu@xtsdb-01:~$ redis-cli --cluster create 10.0.0.21{0,1,2}:6379 | |
>>> Performing hash slots allocation on 3 nodes... | |
Master[0] -> Slots 0 - 5460 | |
Master[1] -> Slots 5461 - 10922 | |
Master[2] -> Slots 10923 - 16383 | |
M: 01808c924272decdda8efdcc025c2ab34b17c049 10.0.0.210:6379 | |
slots:[0-16383] (5461 slots) master | |
M: aa7c1f537643f99c68f0cd4e4fe9d8cfff8f14d6 10.0.0.211:6379 | |
slots:[5461-10922] (5462 slots) master | |
M: 44d48a123e5cecb5f62027cc74eaa6c356d352d5 10.0.0.212:6379 | |
slots:[10923-16383] (5461 slots) master | |
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 10.0.0.210:6379) | |
M: 01808c924272decdda8efdcc025c2ab34b17c049 10.0.0.210:6379 | |
slots:[0-16383] (16384 slots) master | |
2 additional replica(s) | |
S: aa7c1f537643f99c68f0cd4e4fe9d8cfff8f14d6 10.0.0.211:6379 | |
slots: (0 slots) slave | |
replicates 01808c924272decdda8efdcc025c2ab34b17c049 | |
S: 44d48a123e5cecb5f62027cc74eaa6c356d352d5 10.0.0.212:6379 | |
slots: (0 slots) slave | |
replicates 01808c924272decdda8efdcc025c2ab34b17c049 | |
[OK] All nodes agree about slots configuration. | |
>>> Check for open slots... | |
>>> Check slots coverage... | |
[OK] All 16384 slots covered. | |
ubuntu@xtsdb-01:~$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment