redis 分布式集群cluster无法建立

来源:本站原创 Linux 超过355 views围观 0条评论

1505:S 22 Jun 13:22:31.412 # Currently unable to failover: Waiting for votes, but majority still not reached.
1509:S 22 Jun 13:22:31.420 # Currently unable to failover: Waiting the delay before I can start a new failover.
1509:S 22 Jun 13:22:32.022 # Starting a failover election for epoch 38.
1497:M 22 Jun 13:22:32.023 # Failover auth denied to e04669fa422da978c33c7c9064632ddbd59aa6b8: can’t vote about this master before 9389 milliseconds
1501:M 22 Jun 13:22:32.023 # Failover auth denied to e04669fa422da978c33c7c9064632ddbd59aa6b8: can’t vote about this master before 9389 milliseconds
1509:S 22 Jun 13:22:32.122 # Currently unable to failover: Waiting for votes, but majority still not reached.
1505:S 22 Jun 13:22:41.429 # Currently unable to failover: Failover attempt expired.
1509:S 22 Jun 13:22:41.938 # Currently unable to failover: Failover attempt expired.
1505:S 22 Jun 13:22:51.449 # Start of election delayed for 600 milliseconds (rank #0, offset 491).
1505:S 22 Jun 13:22:51.549 # Currently unable to failover: Waiting the delay before I can start a new failover.
1509:S 22 Jun 13:22:51.950 # Start of election delayed for 670 milliseconds (rank #0, offset 491).
1509:S 22 Jun 13:22:52.050 # Currently unable to failover: Waiting the delay before I can start a new failover.
1505:S 22 Jun 13:22:52.050 # Starting a failover election for epoch 39.
1501:M 22 Jun 13:22:52.053 # Failover auth granted to b17317b6c37ed3f6a0b08b138108efd4f402d0f3 for epoch 39
1497:M 22 Jun 13:22:52.053 # Failover auth granted to b17317b6c37ed3f6a0b08b138108efd4f402d0f3 for epoch 39
1505:S 22 Jun 13:22:52.053 # Currently unable to failover: Waiting for votes, but majority still not reached.
1509:S 22 Jun 13:22:52.650 # Starting a failover election for epoch 40.
1497:M 22 Jun 13:22:52.651 # Failover auth denied to e04669fa422da978c33c7c9064632ddbd59aa6b8: can’t vote about this master before 9402 milliseconds
1501:M 22 Jun 13:22:52.651 # Failover auth denied to e04669fa422da978c33c7c9064632ddbd59aa6b8: can’t vote about this master before 9402 milliseconds
1509:S 22 Jun 13:22:52.750 # Currently unable to failover: Waiting for votes, but majority still not reached.
1505:S 22 Jun 13:23:02.067 # Currently unable to failover: Failover attempt expired.
1509:S 22 Jun 13:23:02.668 # Currently unable to failover: Failover attempt expired.

防火墙搞的鬼
1.先停用iptables测试如果成功,修改相应端口号

#开启iptables 日志分析 SPT原端口 DPT目标端口
iptables -I INPUT -j LOG –log-prefix "curious_log " –log-level 6
#发现DTP有18000,所以全加上
iptables -I INPUT -p tcp –dport=8000:8005 -j ACCEPT

iptables -I INPUT -p tcp –dport=18000:18005 -j ACCEPT
#另一台服务器
iptables -I INPUT -p tcp –dport=17000:17005 -j ACCEPT
#记得每台服务器保存
service iptables save

加好后发现已经正常
2852:S 22 Jun 13:37:35.130 # Cluster state changed: fail
2840:S 22 Jun 13:41:02.667 # Cluster state changed: ok
2852:S 22 Jun 13:41:02.669 # Cluster state changed: ok
2844:S 22 Jun 13:41:02.670 # Cluster state changed: ok
2848:S 22 Jun 13:41:02.767 # Cluster state changed: ok
2832:M 22 Jun 13:41:07.674 # Cluster state changed: ok
2836:M 22 Jun 13:41:07.680 # Cluster state changed: ok

文章出自:CCIE那点事 http://www.jdccie.com/ 版权所有。本站文章除注明出处外,皆为作者原创文章,可自由引用,但请注明来源。 禁止全文转载。
本文链接:http://www.jdccie.com/?p=3790转载请注明转自CCIE那点事
如果喜欢:点此订阅本站
  • 相关文章
  • 为您推荐
  • 各种观点

暂时还木有人评论,坐等沙发!
发表评论

快捷键:Ctrl+Enter