Mariadb数据库版本:
mariadb-client-10.3/stable,now1:10.3.27-0+deb10u1+0eagle1sw_64 [installed,automatic]
mariadb-client-core-10.3/stable,now1:10.3.27-0+deb10u1+0eagle1sw_64 [installed,automatic]
mariadb-common/stable,now1:10.3.27-0+deb10u1+0eagle1all [installed,automatic]
mariadb-server-10.3/stable,now1:10.3.27-0+deb10u1+0eagle1sw_64 [installed,automatic]
mariadb-server-core-10.3/stable,now1:10.3.27-0+deb10u1+0eagle1sw_64 [installed,automatic]
mariadb-server/stable,now1:10.3.27-0+deb10u1+0eagle1all [installed]
galera-3/stable,now25.3.25-2.10eagle1sw_64 [installed,automatic]
-----------------------------------------------------------------------------------------
三个节点除了wsrep_node_address地址不一样外,其他一致
#cat/etc/mysql/mariadb.conf.d/50-server.cnf
[server]
[mysqld]
language=/usr/share/mysql/english
max_connections=10000
[galera]
wsrep_provider_options="gcache.size=1G"
wsrep_certify_nonPK=ON
query_cache_size=0
wsrep_on=ON
wsrep_provider=/usr/lib/libgalera_smm.so
wsrep_cluster_name=MariaDB-Galera-Cluster-DFS
wsrep_cluster_address=gcomm://193.160.30.26,193.160.30.29,193.160.30.39
wsrep_node_name=mariadb-a085
binlog_format=row
default_storage_engine=InnoDB
innodb_autoinc_lock_mode=2
wsrep_slave_threads=8
innodb_flush_log_at_trx_commit=2
innodb_flush_method=O_DIRECT
innodb_buffer_pool_size=2GB
innodb_doublewrite=0
innodb_thread_concurrency=2
wsrep_sst_method=rsync
bind-address=0.0.0.0
wsrep_node_address=193.160.30.29
collation-server= utf8_unicode_ci
init-connect='SETNAMES utf8'
character-set-server= utf8
[embedded]
[mariadb]
[mariadb-10.1]