2016-05-12 141 views
0

redis.7001.confRedis的羣集錯誤

port 7001 
cluster-enabled yes 
cluster-config-file nodes.conf 
cluster-node-timeout 5000 

redis.7002.conf

port 7002 
cluster-enabled yes 
cluster-config-file nodes.conf 
cluster-node-timeout 5000 

redis.7003.conf

port 7003 
cluster-enabled yes 
cluster-config-file nodes.conf 
cluster-node-timeout 5000 

redis.7004.conf

port 7004 
cluster-enabled yes 
cluster-config-file nodes.conf 
cluster-node-timeout 5000 

redis.7005.conf

port 7005 
cluster-enabled yes 
cluster-config-file nodes.conf 
cluster-node-timeout 5000 

H:\Tools\cluster>ruby H:\Tools\cluster\redis.trib.rb create --replicas 0 127.0.0.1:7001 127.0.0.1:7002 127.0.0.1:7003 127.0.0.1:7004 127.0.0.1:7005 
>>> Creating cluster 
Connecting to node 127.0.0.1:7001: OK 
Connecting to node 127.0.0.1:7002: OK 
Connecting to node 127.0.0.1:7003: OK 
Connecting to node 127.0.0.1:7004: OK 
Connecting to node 127.0.0.1:7005: OK 
>>> Performing hash slots allocation on 5 nodes... 
Using 5 masters: 
127.0.0.1:7001 
127.0.0.1:7002 
127.0.0.1:7003 
127.0.0.1:7004 
127.0.0.1:7005 
M: 6c5c8b20e7f051e19a41e96a1d0b37cc79abf647 127.0.0.1:7001 
    slots:0-3276 (3277 slots) master 
M: 6c5c8b20e7f051e19a41e96a1d0b37cc79abf647 127.0.0.1:7002 
    slots:3277-6553 (3277 slots) master 
M: 6c5c8b20e7f051e19a41e96a1d0b37cc79abf647 127.0.0.1:7003 
    slots:6554-9829 (3276 slots) master 
M: 6c5c8b20e7f051e19a41e96a1d0b37cc79abf647 127.0.0.1:7004 
    slots:9830-13106 (3277 slots) master 
M: 6c5c8b20e7f051e19a41e96a1d0b37cc79abf647 127.0.0.1:7005 
    slots:13107-16383 (3277 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.......................................................................................................................................................... 

我使用Redis-x64-2.8.2400.zip從https://github.com/MSOpenTech/redis/releases

我多次測試。

爲什麼我們阻止【等待集羣加盟】?

請幫我...

回答

1

我有完全相同的問題。就像你我把所有的重複。(港口)conf文件集羣具備的,配置文件是相同的,nodes.conf。之後,我改變了EM對具有不同的隊列,節點 - (港口)的.conf,問題消失。