首页 新闻 会员 周边 捐助

redis集群环境卡在Waiting for the cluster to join..

0
[已解决问题] 解决于 2018-10-23 19:02

一直卡住在这

[root@localhost conf-cluster]# /usr/local/redis-4.0.10/src/redis-trib.rb create --replicas 1 192.168.1.100:9000 192.168.1.100:9001 192.168.1.100:9002 192.168.1.101:9000 192.168.1.101:9001 192.168.1.101:9002
>>> Creating cluster
>>> Performing hash slots allocation on 6 nodes...
Using 3 masters:
192.168.1.100:9000
192.168.1.101:9000
192.168.1.100:9001
Adding replica 192.168.1.101:9002 to 192.168.1.100:9000
Adding replica 192.168.1.100:9002 to 192.168.1.101:9000
Adding replica 192.168.1.101:9001 to 192.168.1.100:9001
M: 349ff1a0831391b51318fbbd5d9ad7f354d343cb 192.168.1.100:9000
   slots:0-5460 (5461 slots) master
M: 189f7906f6d4f3f465bcc719bc29d44abb65f996 192.168.1.100:9001
   slots:10923-16383 (5461 slots) master
S: 452c2009372373aa824c0c2c46071cef635e0935 192.168.1.100:9002
   replicates 5098fb7295850b90f3da01701ac25dc50b3ed453
M: 5098fb7295850b90f3da01701ac25dc50b3ed453 192.168.1.101:9000
   slots:5461-10922 (5462 slots) master
S: 67a48f8ca8138befaa7f8ac9553221688dc245bd 192.168.1.101:9001
   replicates 189f7906f6d4f3f465bcc719bc29d44abb65f996
S: 7e722997e0693fddef7157f91f4d891c06b115e4 192.168.1.101:9002
   replicates 349ff1a0831391b51318fbbd5d9ad7f354d343cb
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.......
那朵云像只狗的主页 那朵云像只狗 | 初学一级 | 园豆:7
提问于:2018-07-13 10:06
< >
分享
最佳答案
0

这个博客里面也出现你这个问题 https://www.cnblogs.com/yuanermen/p/5717885.html 

下面是引用他的

 接下来 提示  Waiting for the cluster to join..........  安装的时候在这里就一直等等等,没反应,傻傻等半天,看这句提示上面一句,Sending Cluster Meet Message to join the Cluster.

    这下明白了,我刚开始在一台Server上去配,也是不需要等的,这里还需要跑到Server2上做一些这样的操作。

    在192.168.1.238, redis-cli -c -p 700*  分别进入redis各节点的客户端命令窗口, 依次输入 cluster meet 192.168.1.238 7000……

    回到Server1,已经创建完毕了。

    查看一下 /usr/local/redis/src/redis-trib.rb check 192.168.1.237:7000

    到这里集群已经初步搭建好了。

奖励园豆:5
_legends | 小虾三级 |园豆:509 | 2018-07-13 11:34
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册