ansible-mysql/templates/etc/mysql/conf.d/09-galera.cnf.j2

32 lines
755 B
Plaintext
Raw Normal View History

#
# {{ ansible_managed }}
#
[mysqld]
# --------------------
# Galera config
# --------------------
# Global
wsrep_on=ON
wsrep_provider=/usr/lib/galera/libgalera_smm.so
2017-06-01 20:33:09 +07:00
wsrep_cluster_address=gcomm://{{ mysql_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_default_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
innodb_doublewrite=1
query_cache_size=0