mirror of
https://github.com/HanXHX/ansible-mysql.git
synced 2026-02-24 10:13:30 +07:00
[GALERA] Install and configuration: first and other nodes
This commit is contained in:
@@ -4,16 +4,26 @@
|
||||
|
||||
[mysqld]
|
||||
|
||||
# --------------------
|
||||
# Galera config
|
||||
# --------------------
|
||||
|
||||
# Global
|
||||
wsrep_on=ON
|
||||
# TODO: wsrep_cluster_address=gcomm://cluster01,cluster02,cluster03
|
||||
wsrep_cluster_address=gcomm://127.0.0.1
|
||||
wsrep_provider=/usr/lib/galera/libgalera_smm.so
|
||||
wsrep_cluster_address=gcomm://{{ mariadb_galera_members | join(",") }}
|
||||
# TODO: https://mariadb.com/kb/en/mariadb/galera-cluster-system-variables/#wsrep_sst_method
|
||||
wsrep_sst_method=rsync
|
||||
# TODO: wsrep_cluster_name="my_wsrep_cluster"
|
||||
|
||||
# Node Configuration
|
||||
wsrep_node_address="{{ mysql_wsrep_node_address | default(ansible_eth0.ipv4.address) }}"
|
||||
wsrep_node_name="{{ mysql_wsrep_node_name | default(ansible_fqdn) }}"
|
||||
|
||||
|
||||
# --------------------
|
||||
# Deps
|
||||
# --------------------
|
||||
binlog_format=ROW
|
||||
default_storage_engine=InnoDB
|
||||
innodb_autoinc_lock_mode=2
|
||||
|
||||
Reference in New Issue
Block a user