Merge "Simplify/lessen requirements for MariaDB"
This commit is contained in:
commit
283e934091
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user