Galera DB wsrep无法连接

时间:2016-11-29 21:04:48

标签: mysql database connection cluster-computing galera

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

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

*这些服务器位于不同的区域

1 个答案:

答案 0 :(得分:0)

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

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