Add galera sync method option

Galera has a copule of options to sync mariadb cluster.
Default value is mysqldump which is slow, except for small data-sets, but is the most tested option.
rsync option is much faster than mysqldump on large data-sets.
So add --wsrep_sst_method value.

Change-Id: Ide03801b2472fa3d4f76bbe32e75bf6e618ac7e1
This commit is contained in:
Seungkyu Ahn 2017-04-24 01:59:59 +09:00
parent 2ecfb8f991
commit d4f7fa5775
2 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,7 @@ wsrep_provider=/usr/lib/galera/libgalera_smm.so
wsrep_provider_options="gcache.size=512M"
wsrep_slave_threads=12
wsrep_sst_auth=root:{{ .Values.database.root_password }}
wsrep_sst_method={{ .Values.database.wsrep_sst_method }}
# xtrabackup-v2 would be more desirable here, but its
# not in the upstream stackanetes images
# ()[mysql@mariadb-seed-gdqr8 /]$ xtrabackup --version

View File

@ -76,3 +76,4 @@ database:
root_password: password
cluster_name: mariadb
node_name: master
wsrep_sst_method: rsync