From f92f7d9b198f01c7aaed33fbb7bbeaf227c4ccdf Mon Sep 17 00:00:00 2001 From: Proskurin Kirill Date: Tue, 22 Nov 2016 20:30:55 +0000 Subject: [PATCH] Add an ability to define gcache.size And increase it value from 128Mb to 1G Plus small fixes in my.cnf Change-Id: Iaa7626b98c0ddd70be467ba743c39eee227b5c43 --- service/files/defaults.yaml | 1 + service/files/my.cnf.j2 | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/service/files/defaults.yaml b/service/files/defaults.yaml index b16f082..6a08b08 100644 --- a/service/files/defaults.yaml +++ b/service/files/defaults.yaml @@ -8,6 +8,7 @@ configs: cluster_name: "k8scluster" xtrabackup_password: "password" monitor_password: "password" + gcache_size: "1G" port: cont: 3306 url: diff --git a/service/files/my.cnf.j2 b/service/files/my.cnf.j2 index 79c0035..e0f2167 100644 --- a/service/files/my.cnf.j2 +++ b/service/files/my.cnf.j2 @@ -27,8 +27,7 @@ open_files_limit = 102400 wsrep_slave_threads = 4 wsrep_cluster_address = gcomm:// wsrep_provider = /usr/lib/galera3/libgalera_smm.so - wsrep_cluster_name = {{ percona.cluster_name }} - wsrep_sst_method = xtrabackup-v2 -wsrep_sst_auth = "root:" +wsrep_sst_auth = "xtrabackup:{{ percona.xtrabackup_password }}" +wsrep_provider_options = "gcache.size={{ percona.gcache_size }}"