redis 分布式集群cluster無法建立

來源:本站原創 Linux 超過827 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.qdxgqk.live/ 版權所有。本站文章除注明出處外,皆為作者原創文章,可自由引用,但請注明來源。 禁止全文轉載。
本文鏈接:http://www.qdxgqk.live/?p=3790轉載請注明轉自CCIE那點事
如果喜歡:點此訂閱本站
?
?
萌宠夺宝游戏 称赞人会赚钱的话 南京福彩中奖一览表 20选5历史开奖号码 快乐扑克3开奖l全部查询 江苏e球彩固定奖金 广西快三万能码走势图 14场胜负开奖结果 大乐透开奖直播 山东11选5任选走势图 彩票刷流水的佣金骗局 永利棋牌官方最新安卓版 什么app转发有赚钱软件是什么软件 山东群英会开奖结果查询 半全场胜率高技巧 彩票中奖 重庆时时开彩龙虎和开奖