From d4f7fa5775a4a2914d2b26112b24d56b51435977 Mon Sep 17 00:00:00 2001 From: Seungkyu Ahn Date: Mon, 24 Apr 2017 01:59:59 +0900 Subject: [PATCH] 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 --- mariadb/templates/etc/_wsrep.cnf.tpl | 1 + mariadb/values.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/mariadb/templates/etc/_wsrep.cnf.tpl b/mariadb/templates/etc/_wsrep.cnf.tpl index f5eb0f76f3..1022dc8cd2 100644 --- a/mariadb/templates/etc/_wsrep.cnf.tpl +++ b/mariadb/templates/etc/_wsrep.cnf.tpl @@ -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 diff --git a/mariadb/values.yaml b/mariadb/values.yaml index a07ab1b190..70c6173116 100644 --- a/mariadb/values.yaml +++ b/mariadb/values.yaml @@ -76,3 +76,4 @@ database: root_password: password cluster_name: mariadb node_name: master + wsrep_sst_method: rsync