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:
parent
2ecfb8f991
commit
d4f7fa5775
@ -18,6 +18,7 @@ wsrep_provider=/usr/lib/galera/libgalera_smm.so
|
|||||||
wsrep_provider_options="gcache.size=512M"
|
wsrep_provider_options="gcache.size=512M"
|
||||||
wsrep_slave_threads=12
|
wsrep_slave_threads=12
|
||||||
wsrep_sst_auth=root:{{ .Values.database.root_password }}
|
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
|
# xtrabackup-v2 would be more desirable here, but its
|
||||||
# not in the upstream stackanetes images
|
# not in the upstream stackanetes images
|
||||||
# ()[mysql@mariadb-seed-gdqr8 /]$ xtrabackup --version
|
# ()[mysql@mariadb-seed-gdqr8 /]$ xtrabackup --version
|
||||||
|
@ -76,3 +76,4 @@ database:
|
|||||||
root_password: password
|
root_password: password
|
||||||
cluster_name: mariadb
|
cluster_name: mariadb
|
||||||
node_name: master
|
node_name: master
|
||||||
|
wsrep_sst_method: rsync
|
||||||
|
Loading…
Reference in New Issue
Block a user