Bump haproxy check timeout

Some services like nova may not respond within 10s for
healthcheck in a resource constrained environment. Let's bump
this to avoid haproxy marking these services unavailable.

"When performing a healthcheck, the server has timeout
'connect' to accept the connection then timeout 'check'
to give the response."

Change-Id: Iae56ff4cd1c2d849577b6923f9601dc4b10f91ad
This commit is contained in:
rabi 2022-02-17 12:10:50 +05:30
parent f1aae73c10
commit c9ba6a2621
2 changed files with 3 additions and 3 deletions

View File

@ -529,7 +529,7 @@ class tripleo::haproxy (
$haproxy_service_manage = true,
$haproxy_global_maxconn = 20480,
$haproxy_default_maxconn = 4096,
$haproxy_default_timeout = [ 'http-request 10s', 'queue 2m', 'connect 10s', 'client 2m', 'server 2m', 'check 10s' ],
$haproxy_default_timeout = [ 'http-request 10s', 'queue 2m', 'connect 10s', 'client 2m', 'server 2m', 'check 30s' ],
$haproxy_listen_bind_param = [ 'transparent' ],
$haproxy_member_options = [ 'check', 'inter 2000', 'rise 2', 'fall 5' ],
$haproxy_log_address = '/dev/log',

View File

@ -127,7 +127,7 @@ describe 'tripleo::haproxy' do
"connect 10s",
"client 2m",
"server 2m",
"check 10s",
"check 30s",
],
"maxconn"=>4096,
}
@ -153,7 +153,7 @@ describe 'tripleo::haproxy' do
"connect 10s",
"client 2m",
"server 2m",
"check 10s",
"check 30s",
],
"maxconn"=>4096,
"option"=>"httplog",