Update HAProxy default timeout values

The default HAProxy timeout values are fairly strict. On a busy cloud
it is common to exceed one or more of these timeouts. The only
indication that HAProxy has exceeded a timeout and dropped the
connection is errors such as "BadStatusLine" or "EOF." These can be
very difficult to diagnose when intermittent.

This change updates the default timeout values to more real world
settings. These values have been extensively tested in ServerStack.
Configured values will not be overridden.

Change-Id: I1f0167002fdc1e9e14eaa9ed9a6a365173a3406e
This commit is contained in:
David Ames 2017-12-11 10:28:24 -08:00
parent 7c752b0216
commit bb4f9011da
1 changed files with 4 additions and 4 deletions

View File

@ -15,22 +15,22 @@ defaults
{%- if options.haproxy_queue_timeout %}
timeout queue {{ options.haproxy_queue_timeout }}
{%- else %}
timeout queue 5000
timeout queue 9000
{%- endif %}
{%- if options.haproxy_connect_timeout %}
timeout connect {{ options.haproxy_connect_timeout }}
{%- else %}
timeout connect 5000
timeout connect 9000
{%- endif %}
{%- if options.haproxy_client_timeout %}
timeout client {{ options.haproxy_client_timeout }}
{%- else %}
timeout client 30000
timeout client 90000
{%- endif %}
{%- if options.haproxy_server_timeout %}
timeout server {{ options.haproxy_server_timeout }}
{%- else %}
timeout server 30000
timeout server 90000
{%- endif %}
listen stats {{ options.stat_port }}