The change updates mariadb to use version 10. * The percona-xtrabackup repository was added * the custom mysql init script was removed in favor of allowing the packages to resolve its own init script * the install process was modified such that its faster while preserving the variable functionality already implemented. * The Galera cluster.cnf was modified to allow the user to define the wsrep method and a section for xtrabackup was added. * The galera_max_connections option will now appropriately set the max connection value such that any value used will be picked up by the running process. These changes enable us to leverage all of the new features and stability found within the updated version of MariaDB+Galera. DocImpact UpgradeImpact Implements: blueprint upgrade-mariadb-v10 Change-Id: I2d773e569667e07106862507b881e3f0aca85591
53 lines
1.7 KiB
Django/Jinja
53 lines
1.7 KiB
Django/Jinja
# {{ ansible_managed }}
|
|
|
|
[mysqld]
|
|
# Path to Galera library
|
|
wsrep_provider = /usr/lib/galera/libgalera_smm.so
|
|
{% if galera_wsrep_provider_options is defined %}
|
|
wsrep_provider_options = "
|
|
{%- for item in galera_wsrep_provider_options -%}
|
|
{{ item.option }} = {{ item.value }}{% if not loop.last %}; {% endif -%}
|
|
{%- endfor -%}
|
|
"
|
|
{% endif %}
|
|
|
|
# Cluster connection URL contains the IPs of node#1, node#2 and node#3
|
|
wsrep_cluster_address = gcomm://{{ galera_wsrep_cluster_address }}
|
|
|
|
# Address for incoming client connections.
|
|
wsrep_node_incoming_address = {{ galera_wsrep_address }}
|
|
|
|
# In order for Galera to work correctly binlog format should be ROW
|
|
binlog_format = ROW
|
|
|
|
# MyISAM storage engine has only experimental support
|
|
default_storage_engine = InnoDB
|
|
|
|
# This changes how InnoDB autoincrement locks are managed and is a requirement for Galera
|
|
innodb_autoinc_lock_mode = 2
|
|
|
|
# This should be the IP and DNS name for the current system on which you're editing the file.
|
|
wsrep_node_address = {{ galera_wsrep_address }}
|
|
wsrep_node_name = {{ galera_wsrep_node_name }}
|
|
|
|
# to enable debug level logging, set this to 1
|
|
wsrep_debug = {{ galera_wsrep_debug }}
|
|
|
|
# SST method
|
|
wsrep_sst_method = {{ galera_wsrep_sst_method }}
|
|
wsrep_sst_auth = {{ galera_wsrep_sst_auth_user }}:{{ galera_wsrep_sst_auth_password }}
|
|
wsrep_slave_threads = {{ galera_wsrep_slave_threads }}
|
|
|
|
# Cluster name
|
|
wsrep_cluster_name = "{{ galera_cluster_name }}"
|
|
|
|
# how many times to retry deadlocked autocommits
|
|
wsrep_retry_autocommit = {{ galera_wsrep_retry_autocommit }}
|
|
|
|
[xtrabackup]
|
|
compress
|
|
compact
|
|
parallel = {{ galera_xtrabackup_threads }}
|
|
compress-threads = {{ galera_xtrabackup_threads }}
|
|
rebuild-threads = {{ galera_xtrabackup_threads }}
|