Increase haproxy timeouts
authorSteven Hardy <shardy@redhat.com>
Mon, 7 Nov 2016 11:35:05 +0000 (11:35 +0000)
committerSteven Hardy <shardy@redhat.com>
Mon, 7 Nov 2016 11:36:37 +0000 (11:36 +0000)
It's been proposed this may help with the
('Connection aborted.', BadStatusLine("''",)) errors.

This patch increase queue, server and client timeouts to 2m (default is 1m)
Related-Bug: #1638908

Change-Id: Ie4f059f3fad2271bb472697e85ede296eee91f5d

manifests/haproxy.pp

index 7c5ff39..8b6b110 100644 (file)
@@ -37,7 +37,7 @@
 #
 # [*haproxy_default_timeout*]
 #  The value to use as timeout in the HAProxy default config section.
-#  Defaults to [ 'http-request 10s', 'queue 1m', 'connect 10s', 'client 1m', 'server 1m', 'check 10s' ]
+#  Defaults to [ 'http-request 10s', 'queue 2m', 'connect 10s', 'client 2m', 'server 2m', 'check 10s' ]
 #
 # [*haproxy_listen_bind_param*]
 #  A list of params to be added to the HAProxy listener bind directive. By
@@ -445,7 +445,7 @@ class tripleo::haproxy (
   $haproxy_service_manage      = true,
   $haproxy_global_maxconn      = 20480,
   $haproxy_default_maxconn     = 4096,
-  $haproxy_default_timeout     = [ 'http-request 10s', 'queue 1m', 'connect 10s', 'client 1m', 'server 1m', 'check 10s' ],
+  $haproxy_default_timeout     = [ 'http-request 10s', 'queue 2m', 'connect 10s', 'client 2m', 'server 2m', 'check 10s' ],
   $haproxy_listen_bind_param   = [ 'transparent' ],
   $haproxy_member_options      = [ 'check', 'inter 2000', 'rise 2', 'fall 5' ],
   $haproxy_log_address         = '/dev/log',