diff --git a/mariadb/templates/bin/_bootstrap-db.sh.tpl b/mariadb/templates/bin/_bootstrap-db.sh.tpl index bc1b7d5880..afadf67d34 100644 --- a/mariadb/templates/bin/_bootstrap-db.sh.tpl +++ b/mariadb/templates/bin/_bootstrap-db.sh.tpl @@ -31,7 +31,7 @@ mysqld_safe --defaults-file=/etc/my.cnf \ --wsrep_cluster_address='gcomm://' \ --bind-address='127.0.0.1' \ --wsrep_node_address="127.0.0.1:{{ .Values.network.port.wsrep }}" \ - --wsrep_provider_options="gcache.size=512M; gmcast.listen_addr=tcp://127.0.0.1:{{ .Values.network.port.wsrep }}" & + --wsrep_provider_options="gmcast.listen_addr=tcp://127.0.0.1:{{ .Values.network.port.wsrep }}" & TIMEOUT=120 while [[ ! -f /var/lib/mysql/mariadb.pid ]]; do diff --git a/mariadb/templates/bin/_seed.sh.tpl b/mariadb/templates/bin/_seed.sh.tpl index 51a1e1c69d..94a35fdec2 100644 --- a/mariadb/templates/bin/_seed.sh.tpl +++ b/mariadb/templates/bin/_seed.sh.tpl @@ -91,6 +91,6 @@ mysqld_safe --defaults-file=/etc/my.cnf \ --wsrep_cluster_address='gcomm://' \ --bind-address="0.0.0.0" \ --wsrep_node_address="${POD_IP}:{{ .Values.network.port.wsrep }}" \ - --wsrep_provider_options="gcache.size=512M; gmcast.listen_addr=tcp://${POD_IP}:{{ .Values.network.port.wsrep }}" & + --wsrep_provider_options="gmcast.listen_addr=tcp://${POD_IP}:{{ .Values.network.port.wsrep }}" & wait_for_cluster exit 0 diff --git a/mariadb/templates/bin/_start.sh.tpl b/mariadb/templates/bin/_start.sh.tpl index 1a747cf00e..4db3c3f438 100644 --- a/mariadb/templates/bin/_start.sh.tpl +++ b/mariadb/templates/bin/_start.sh.tpl @@ -61,6 +61,6 @@ else --console \ --bind-address="0.0.0.0" \ --wsrep_node_address="${POD_IP}:{{ .Values.network.port.wsrep }}" \ - --wsrep_provider_options="gcache.size=512M; gmcast.listen_addr=tcp://${POD_IP}:{{ .Values.network.port.wsrep }}" \ + --wsrep_provider_options="gmcast.listen_addr=tcp://${POD_IP}:{{ .Values.network.port.wsrep }}" \ $WSREP_OPTIONS fi diff --git a/mariadb/templates/etc/_tuning.cnf.tpl b/mariadb/templates/etc/_tuning.cnf.tpl index 2edaa24a4b..3605e7c0e3 100644 --- a/mariadb/templates/etc/_tuning.cnf.tpl +++ b/mariadb/templates/etc/_tuning.cnf.tpl @@ -43,7 +43,7 @@ table_definition_cache=1024 # Typical values are 50..75% of available RAM. # TODO(tomasz.paszkowski): This needs to by dynamic based on avaliable RAM. innodb_buffer_pool_size=1024M -innodb_log_file_size=200M +innodb_log_file_size=128M innodb_flush_method=O_DIRECT innodb_flush_log_at_trx_commit=2 innodb_old_blocks_time=1000 diff --git a/mariadb/templates/etc/_wsrep.cnf.tpl b/mariadb/templates/etc/_wsrep.cnf.tpl index 1022dc8cd2..7526274866 100644 --- a/mariadb/templates/etc/_wsrep.cnf.tpl +++ b/mariadb/templates/etc/_wsrep.cnf.tpl @@ -15,7 +15,7 @@ [mysqld] wsrep_cluster_name="{{ .Values.database.cluster_name }}" wsrep_provider=/usr/lib/galera/libgalera_smm.so -wsrep_provider_options="gcache.size=512M" +wsrep_provider_options="gcache.size=128M" wsrep_slave_threads=12 wsrep_sst_auth=root:{{ .Values.database.root_password }} wsrep_sst_method={{ .Values.database.wsrep_sst_method }}