Increase default connect timeout for mariadb
The mariadb cookbook imposes a default connect_timeout of 5 seconds. This is too aggressive for services to initialize, and they error as a result. To avoid such problems, mariadb should allow for a higher threshold before timing out a connecting service. This change raises that timeout to 30 seconds to be more graceful for service warming up. Change-Id: I70775929dc49ed8c00a23bc7e354ebf9e9feb7f0
This commit is contained in:
parent
d55863cde8
commit
0b9ce793ce
|
@ -34,6 +34,7 @@ node.normal['mariadb']['remove_test_database'] = true
|
|||
node.normal['mariadb']['allow_root_pass_change'] = true
|
||||
node.normal['mariadb']['server_root_password'] = super_password
|
||||
node.normal['mariadb']['mysqld']['bind_address'] = listen_address
|
||||
node.normal['mariadb']['connect_timeout'] = 30
|
||||
|
||||
unless listen_address == '127.0.0.1' || listen_address == 'localhost'
|
||||
node.normal['mariadb']['forbid_remote_root'] = false
|
||||
|
|
Loading…
Reference in New Issue