Allow configuration of startup timeout

SST transfers of large databases can easily take longer than 30 minutes,
causing the mysql process to restart over and over and never complete
its sync to rejoin the cluster.

Change-Id: I7654820f91fbb036ab4d4a6234c0ccec148a503a
This commit is contained in:
Logan V 2018-09-19 11:53:51 -05:00
parent fddfad4cc2
commit dde19945c6
3 changed files with 5 additions and 2 deletions

View File

@ -83,6 +83,9 @@ galera_tmp_table_size: 32M
galera_file_limits: 65535
galera_wait_timeout: 3600
# Increase this value if large SST transfers cause mysql startup to fail due
# to timeout
galera_startup_timeout: 1800
## innodb options
galera_innodb_buffer_pool_size: 4096M

View File

@ -10,7 +10,7 @@
# How long to wait for successful mysql startup
# Startup can take a while if it requires a galera state transfer.
MYSQLD_STARTUP_TIMEOUT=1800
MYSQLD_STARTUP_TIMEOUT={{ galera_startup_timeout }}
ulimit -n {{ calculated_max_connections }}
ulimit -Hn {{ calculated_max_connections }}

View File

@ -3,4 +3,4 @@
[Service]
# How long to wait for successful mysql startup
# Startup can take a while if it requires a galera state transfer.
TimeoutStartSec=1800
TimeoutStartSec={{ galera_startup_timeout }}