我有3台带有mariadb集群的dbs服务器。
我需要很少的my.cnf更改,但是每次我尝试使用mysql命令重新启动时,复制都会受到影响。
因此,谁能让我知道正确的方式重新启动mysql而不停机。
[mysqld]
binlog_format=ROW
default-storage-engine=innodb
innodb_autoinc_lock_mode=2
bind-address=0.0.0.0
# Galera Provider Configuration
wsrep_on=ON
wsrep_provider=/usr/lib64/galera-4/libgalera_smm.so
# Galera Cluster Configuration
wsrep_cluster_name="web_cluster"
wsrep_cluster_address="gcomm://172.16.1.173,172.17.1.173,172.18.1.173"
# Galera Synchronization Configuration
wsrep_sst_method=rsync
#wsrep_sst_auth=cluster-user:clusterpass
#wsrep_sst_method=mariabackup
# Galera Node Configuration
wsrep_node_address="172.16.1.173"
wsrep_node_name="web-db-01"发布于 2020-02-13 11:41:56
rsync通常不是一个很好的SST方法,因为它可以在执行SST时阻止对施主节点的写入。而是使用mariabackup来避免这种情况。wsrep_provider_options="gcache.recover=yes; gcache.size = xM;",并且在重新启动后避免使用SST,请使用,其中x足够容纳所有预期停机时间的写入集。例如,在单个节点上升级MariaDB所需的停机时间。128是我所使用的,但这显然取决于集群上通常发生的写入量。当节点启动时,需要gcache.recover=yes;来尝试使用基于gcache的IST,而不是SST。有关详细信息,请参阅MariaDB KB关于世界卫生组织_提供程序_选项的文章。https://dba.stackexchange.com/questions/259587
复制相似问题