gpt4 book ai didi

mysql - Galera DB wsrep 连接失败

转载 作者:行者123 更新时间:2023-11-29 19:49:06 29 4
gpt4 key购买 nike

所以基本上我正在尝试初始化第一个节点,但它失败并给了我这个错误:

2016-11-29 21:46:44 15882 [ERROR] WSREP: failed to open gcomm backend connection: 110: failed to reach primary view: 110 (Connection timed out)
at gcomm/src/pc.cpp:connect():158
2016-11-29 21:46:44 15882 [ERROR] WSREP: gcs/src/gcs_core.cpp:gcs_core_open():208: Failed to open backend connection: -110 (Connection timed out)
2016-11-29 21:46:44 15882 [ERROR] WSREP: gcs/src/gcs.cpp:gcs_open():1380: Failed to open channel 'MySQL' at 'gcomm://XXX.32.17.249,XXX.69.63.203': -110 (Connection timed out)
2016-11-29 21:46:44 15882 [ERROR] WSREP: gcs connect failed: Connection timed out
2016-11-29 21:46:44 15882 [ERROR] WSREP: wsrep::connect(gcomm://XXX.32.17.249,XXX.69.63.203) failed: 7
2016-11-29 21:46:44 15882 [ERROR] Aborting

命令:service mysql start --wsrep-new-cluster

完整配置:

# Galera
wsrep_on=ON
wsrep_provider=/usr/lib/galera/libgalera_smm.so
wsrep_cluster_name=MySQL
wsrep_cluster_address="gcomm://XXX.32.17.249,XXX.69.63.203"
wsrep_node_name=MySQL_EU
wsrep_node_address="XXX.32.17.249"
wsrep_sst_method=rsync

*这些服务器位于不同地区

最佳答案

第一个节点必须以空的 gconn://启动,可以在文档中找到。

另一个问题可能是:“如果这种情况发生在引导节点以外的地方。问题出在我的防火墙上。我尝试通过编辑“/etc/selinux/conf”文件来关闭 SELinux,然后重新启动服务器,但没有帮助。我不得不将通过“systemctl stopfirewalld”(CentOS)关闭。主节点没有问题,因为它是在引导模式下启动的。我确实使用“telnet xx.xx.xx.xx 3306”检查了其他节点的端口– 有点像

关于mysql - Galera DB wsrep 连接失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40875730/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com