From c9ba6a26219dbee9e8fd168f2b76bf7602c00f30 Mon Sep 17 00:00:00 2001 From: rabi Date: Thu, 17 Feb 2022 12:10:50 +0530 Subject: [PATCH] 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 --- manifests/haproxy.pp | 2 +- spec/classes/tripleo_haproxy_spec.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manifests/haproxy.pp b/manifests/haproxy.pp index 64b87e8ba..f43a69cd4 100644 --- a/manifests/haproxy.pp +++ b/manifests/haproxy.pp @@ -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', diff --git a/spec/classes/tripleo_haproxy_spec.rb b/spec/classes/tripleo_haproxy_spec.rb index 77f301f3e..bd62a686a 100644 --- a/spec/classes/tripleo_haproxy_spec.rb +++ b/spec/classes/tripleo_haproxy_spec.rb @@ -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",