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 services warming up. Change-Id: I70775929dc49ed8c00a23bc7e354ebf9e9feb7f0
This commit is contained in:
parent
d55863cde8
commit
2fd2b86adb
|
@ -35,6 +35,9 @@ node.normal['mariadb']['allow_root_pass_change'] = true
|
|||
node.normal['mariadb']['server_root_password'] = super_password
|
||||
node.normal['mariadb']['mysqld']['bind_address'] = listen_address
|
||||
|
||||
# increase the default from 5 seconds to allow extra time for services to warm up
|
||||
node.normal['mariadb']['connect_timeout'] = 30
|
||||
|
||||
unless listen_address == '127.0.0.1' || listen_address == 'localhost'
|
||||
node.normal['mariadb']['forbid_remote_root'] = false
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue