Add timeout check and timeout queue with recommended value

There were also occurances that httpchk experienced timeout. Right
now we are using default value 2000ms. Try using 10s suggested by
the example config in openstack doc.

Related-bug: #1344144
Change-Id: I7a72d7a22a1845d1e2d480eee88246f980f87e6c
This commit is contained in:
Jerry Zhao 2014-07-23 10:20:53 -07:00
parent 7283866a8a
commit d4b335dedd
2 changed files with 4 additions and 0 deletions

View File

@ -59,8 +59,11 @@ default['haproxy']['pid_file'] = "/var/run/haproxy.pid"
default['haproxy']['defaults_options'] = ["tcpka", "httpchk", "tcplog", "httplog"]
default['haproxy']['x_forwarded_for'] = false
default['haproxy']['defaults_timeouts']['connect'] = "10s"
default['haproxy']['defaults_timeouts']['check'] = "10s"
default['haproxy']['defaults_timeouts']['queue'] = "100s"
default['haproxy']['defaults_timeouts']['client'] = "100s"
default['haproxy']['defaults_timeouts']['server'] = "100s"
default['haproxy']['cookie'] = nil
default['haproxy']['user'] = "haproxy"

View File

@ -6,6 +6,7 @@ global
maxconn <%= node['haproxy']['global_max_connections'] %>
#debug
#quiet
spread-checks 5
user <%= node['haproxy']['user'] %>
group <%= node['haproxy']['group'] %>
<% if node['haproxy']['enable_stats_socket'] -%>