jason0401 发表于 2017-12-21 17:40:39

Redis【第二篇】集群搭建

>>> Creating cluster  
Connecting to node
192.168.6.128:6379: OK  
Connecting to node
192.168.6.128:9379: OK  
Connecting to node
192.168.6.129:6379: OK  
Connecting to node
192.168.6.129:9379: OK  
Connecting to node
192.168.6.130:6379: OK  
Connecting to node
192.168.6.130:9379: OK  

>>> Performing hash slots allocation on 6 nodes...  
Using
3 masters:  

192.168.6.128:6379  
192.168.6.129:6379
  
192.168.6.130:6379
  
Adding replica 192.168.6.129:9379 to 192.168.6.128:6379
  
Adding replica 192.168.6.128:9379 to 192.168.6.129:6379
  
Adding replica 192.168.6.130:9379 to 192.168.6.130:6379
  
M: 31f6b90cfe190d94f39bef42449bdb7efe1b85b0 192.168.6.128:6379
  slots:0-5460 (5461 slots) master
  
S: 02c6f0321ebbaf52fe42dd372e5daf179ca77853 192.168.6.128:9379
  replicates 90fec8236d68d9e89262a1ae101056fa1da6df25
  
M: 90fec8236d68d9e89262a1ae101056fa1da6df25 192.168.6.129:6379
  slots:5461-10922 (5462 slots) master
  
S: 5cf4bd75f93514e1895f8bb5bb7042ae23f277e7 192.168.6.129:9379
  replicates 31f6b90cfe190d94f39bef42449bdb7efe1b85b0
  
M: 82889edd96156daa109e84868ceda24a0272ee82 192.168.6.130:6379
  slots:10923-16383 (5461 slots) master
  
S: 9e238a85863ea02fc534fc870db4f47fd79b9ef6 192.168.6.130:9379
  replicates 82889edd96156daa109e84868ceda24a0272ee82
  
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.6.128:6379)
  
M: 31f6b90cfe190d94f39bef42449bdb7efe1b85b0 192.168.6.128:6379
  slots:0-5460 (5461 slots) master
  1 additional replica(s)
  
M: 90fec8236d68d9e89262a1ae101056fa1da6df25 192.168.6.129:6379
  slots:5461-10922 (5462 slots) master
  1 additional replica(s)
  
S: 5cf4bd75f93514e1895f8bb5bb7042ae23f277e7 192.168.6.129:9379
  slots: (0 slots) slave
  replicates 31f6b90cfe190d94f39bef42449bdb7efe1b85b0
  
S: 9e238a85863ea02fc534fc870db4f47fd79b9ef6 192.168.6.130:9379
  slots: (0 slots) slave
  replicates 82889edd96156daa109e84868ceda24a0272ee82
  
M: 82889edd96156daa109e84868ceda24a0272ee82 192.168.6.130:6379
  slots:10923-16383 (5461 slots) master
  1 additional replica(s)
  
S: 02c6f0321ebbaf52fe42dd372e5daf179ca77853 192.168.6.128:9379
  slots: (0 slots) slave
  replicates 90fec8236d68d9e89262a1ae101056fa1da6df25
  
All nodes agree about slots configuration.
  
>>> Check for open slots...
  
>>> Check slots coverage...
  
All 16384 slots covered.
页: [1]
查看完整版本: Redis【第二篇】集群搭建