gpt4 book ai didi

mysql - mariadb 10.1.13 加莱拉集群 : error

转载 作者:行者123 更新时间:2023-11-29 02:50:39 27 4
gpt4 key购买 nike

mariadb 10.1.x galera 集群设置。

第一个节点192.168.159.132

/etc/mysql/my.cnf

[galera]
# Mandatory settings
wsrep_on=ON
wsrep_provider=/usr/lib/galera/libgalera_smm.so
wsrep_cluster_address=gcomm://192.168.159.132,192.168.159.135,192.168.159.136
binlog_format=row
default_storage_engine=InnoDB
innodb_autoinc_lock_mode=2

第一个节点192.168.159.132

$ sudo 服务 mysql Bootstrap

* Bootstrapping the cluster mysqld
Starting mysql (via systemctl): mysql.service
Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details.

$ systemctl 状态 mariadb.service

[ERROR] WSREP: gcs/src/gcs_core.cpp:gcs_core_open():208: Failed to open backend connection: -110 (Connection timed out)
[ERROR] WSREP: gcs/src/gcs.cpp:gcs_open():1379: Failed to open channel 'my_wsrep_cluster' at 'gcomm://192.168.32.251,192.168.32.252,192.168.32...ection timed out)
[ERROR] WSREP: gcs connect failed: Connection timed out
[ERROR] WSREP: wsrep::connect(gcomm://192.168.32.251,192.168.32.252,192.168.32.253) failed: 7
[ERROR] Aborting
systemd[1]: mariadb.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: Failed to start MariaDB database server.
systemd[1]: mariadb.service: Unit entered failed state.
systemd[1]: mariadb.service: Failed with result 'exit-code'.

为什么“Galera Cluster”没有启动?

如何检查“连接超时”?

最佳答案

您的配置有错误。在 gcom 之后你只使用一个 : 比如:

wsrep_cluster_address=gcomm://192.168.159.132,192.168.159.135,192.168.159.136

关于mysql - mariadb 10.1.13 加莱拉集群 : error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36385596/

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