Skip to content

Instantly share code, notes, and snippets.

@abhirockzz
Created August 31, 2018 11:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhirockzz/3913a69f15d51a2844735448509884dd to your computer and use it in GitHub Desktop.
Save abhirockzz/3913a69f15d51a2844735448509884dd to your computer and use it in GitHub Desktop.
Redis Cluster creation output
redis_cluster_net created
f66517db305c3f270f756f1fbd40611d123fc69c040695147bb43cc153491093
created redis cluster node redis-6379
726672fad3d815e7a07ac892acd7bb412e91193b28527654c483cd5debbfd011
created redis cluster node redis-6380
75d8621153b3cbb7962fcf90a5a35108fe042a05e9a78b920c2655caa5a1f7ec
created redis cluster node redis-6381
d9df8c47ccaf21470bcbc2b89f485e1cd9f68917019fa6ba7ebbac59b792b41b
created redis cluster node redis-6382
21edb22225abc54140e437091ddb19cd452542e3d82e7839470a3bbf6a0ddbf7
created redis cluster node redis-6383
5cdd12537f954aa5df4bd0c173f0670dd126c4c925336c7e9054d147508c12d9
created redis cluster node redis-6384
IP for cluster node redis-6379 is 172.27.0.2
IP for cluster node redis-6380 is 172.27.0.3
IP for cluster node redis-6381 is 172.27.0.4
IP for cluster node redis-6382 is 172.27.0.5
IP for cluster node redis-6383 is 172.27.0.6
IP for cluster node redis-6384 is 172.27.0.7
cluster hosts 172.27.0.2:6379 172.27.0.3:6379 172.27.0.4:6379 172.27.0.5:6379 172.27.0.6:6379 172.27.0.7:6379
creating cluster....
>>> Performing hash slots allocation on 6 nodes...
Master[0] -> Slots 0 - 5460
Master[1] -> Slots 5461 - 10922
Master[2] -> Slots 10923 - 16383
Adding replica 172.27.0.5:6379 to 172.27.0.2:6379
Adding replica 172.27.0.6:6379 to 172.27.0.3:6379
Adding replica 172.27.0.7:6379 to 172.27.0.4:6379
M: 78da8a4a346c3e43d2a013cfc1f8b17201ecaaf9 172.27.0.2:6379
slots:[0-5460] (5461 slots) master
M: 43b4c865269d9d57b840ae6d90ef84d74678eee1 172.27.0.3:6379
slots:[5461-10922] (5462 slots) master
M: 69801d3672c7dbc24fb670601ca088d701ff0902 172.27.0.4:6379
slots:[10923-16383] (5461 slots) master
S: 9934e5d049ceb6088c756d2faa72b76196d8503a 172.27.0.5:6379
replicates 78da8a4a346c3e43d2a013cfc1f8b17201ecaaf9
S: 12cef6f9c1c212a209eaef742c5a7c91aec32c37 172.27.0.6:6379
replicates 43b4c865269d9d57b840ae6d90ef84d74678eee1
S: 73eb4b587145bb2ebeae65679591ea11736cd212 172.27.0.7:6379
replicates 69801d3672c7dbc24fb670601ca088d701ff0902
Can I set the above configuration? (type 'yes' to accept): >>> 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 172.27.0.2:6379)
M: 78da8a4a346c3e43d2a013cfc1f8b17201ecaaf9 172.27.0.2:6379
slots:[0-5460] (5461 slots) master
1 additional replica(s)
M: 69801d3672c7dbc24fb670601ca088d701ff0902 172.27.0.4:6379
slots:[10923-16383] (5461 slots) master
1 additional replica(s)
M: 43b4c865269d9d57b840ae6d90ef84d74678eee1 172.27.0.3:6379
slots:[5461-10922] (5462 slots) master
1 additional replica(s)
S: 73eb4b587145bb2ebeae65679591ea11736cd212 172.27.0.7:6379
slots: (0 slots) slave
replicates 69801d3672c7dbc24fb670601ca088d701ff0902
S: 12cef6f9c1c212a209eaef742c5a7c91aec32c37 172.27.0.6:6379
slots: (0 slots) slave
replicates 43b4c865269d9d57b840ae6d90ef84d74678eee1
S: 9934e5d049ceb6088c756d2faa72b76196d8503a 172.27.0.5:6379
slots: (0 slots) slave
replicates 78da8a4a346c3e43d2a013cfc1f8b17201ecaaf9
[OK] All nodes agree about slots configuration.
>>> Check for open slots...
>>> Check slots coverage...
[OK] All 16384 slots covered.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment