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:
parent
7283866a8a
commit
d4b335dedd
@ -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"
|
||||
|
@ -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'] -%>
|
||||
|
Loading…
x
Reference in New Issue
Block a user