diff --git a/chef/cookbooks/haproxy/attributes/default.rb b/chef/cookbooks/haproxy/attributes/default.rb index 467e7ee..7230e0b 100644 --- a/chef/cookbooks/haproxy/attributes/default.rb +++ b/chef/cookbooks/haproxy/attributes/default.rb @@ -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" diff --git a/chef/cookbooks/haproxy/templates/default/haproxy.cfg.erb b/chef/cookbooks/haproxy/templates/default/haproxy.cfg.erb index 07d75dc..6b3475b 100644 --- a/chef/cookbooks/haproxy/templates/default/haproxy.cfg.erb +++ b/chef/cookbooks/haproxy/templates/default/haproxy.cfg.erb @@ -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'] -%>