等待群集加入...永远不会结束redis-trib.rb Redis 3.2.9

问题描述 投票:-1回答:1

尝试在通过LAN连接的3个不同服务器上的3个节点之间创建Redis群集。

试过两个

- src/redis-trib.rb create 192.168.148.20:6379 192.168.131.213:6379 192.168.142.199:6379

- src/redis-trib.rb create 192.168.148.20:7000 192.168.131.213:7000 192.168.142.199:7000
Each server has its config file

/etc/redis/redis.conf
nodes.conf

PORT 6379和16379是开放式听力。

结果是一样的:

root@localhost:~/build/redis-3.2.9# sudo src/redis-trib.rb create 192.168.148.20:6379 192.168.131.213:6379 192.168.142.199:6379

Creating cluster

Performing hash slots allocation on 3 nodes...

Using 3 masters:<br>
192.168.148.20:6379<br>
192.168.131.213:6379<br>
192.168.142.199:6379<br>
M: 2ef7f215c073d0e088ccf19a7b9038e26ba8e235 192.168.148.20:6379
slots:0-5460 (5461 slots) master<br>
M: 15016bba6c48f2e3957be95fb28b2e9c4f08d5b3 192.168.131.213:6379
slots:5461-10922 (5462 slots) master<br>
M: 069db7c66ef3bc38955786422c6697c3b30163e2 192.168.142.199:6379
slots:10923-16383 (5461 slots) master<br>
Can I set the above configuration? (type 'yes' to accept): yes<br>
Nodes configuration updated<br>
Assign a different config epoch to each node<br>
Sending CLUSTER MEET messages to join the cluster<br>
Waiting for the cluster to join..................................................................................... .................................................................................................................... .................................................................................................................... .................................................................................................................... .................................................................................................................... .................................................................................................................... .................................................................................................................... .................................................................................................................... .................................................................................................................... .................................................................................................................... .................................................................................................................... .................................................................................................................... .................................................................................................................... .................................................................................................................... ..................................................................^C<br>
src/redis-trib.rb:653:in sleep': Interrupt from src/redis-trib.rb:653:inwait_cluster_join'<br>
from src/redis-trib.rb:1306:in create_cluster_cmd' from src/redis-trib.rb:1701:in<br>
ubuntu redis redis-cluster redis-cli
1个回答
0
投票

确保其他节点可以访问每个节点通信端口(10000 +客户端端口)。

$ sudo ufw允许从[其他节点ip]到任何端口[node communion port]

© www.soinside.com 2019 - 2024. All rights reserved.