
Also increase the timeouts to see if any more Gateway timeout failure in tempest. Fix a bug in hosts snipet and also make log from haproxy tagged with same hostname used by anamon. Change-Id: I02ca18bb5ce0cdcd8a496672cb1bb5af179745be
38 lines
1011 B
Plaintext
38 lines
1011 B
Plaintext
global
|
|
#log 127.0.0.1 local0
|
|
log 127.0.0.1 local4 notice
|
|
log 127.0.0.1 local4 info
|
|
daemon
|
|
maxconn <%= node['haproxy']['global_max_connections'] %>
|
|
#debug
|
|
#quiet
|
|
user <%= node['haproxy']['user'] %>
|
|
group <%= node['haproxy']['group'] %>
|
|
<% if node['haproxy']['enable_stats_socket'] -%>
|
|
stats socket <%= node['haproxy']['stats_socket_path'] %> user <%= node['haproxy']['stats_socket_user'] %> group <%= node['haproxy']['stats_socket_group'] %>
|
|
<% end -%>
|
|
|
|
defaults
|
|
log global
|
|
mode http
|
|
retries 3
|
|
<% @defaults_timeouts.sort.map do | value, time | -%>
|
|
timeout <%= value %> <%= time %>
|
|
<% end -%>
|
|
<% @defaults_options.sort.each do | option | -%>
|
|
option <%= option %>
|
|
<% end -%>
|
|
balance <%= node['haproxy']['balance_algorithm'] %>
|
|
|
|
# Set up application listeners here.
|
|
|
|
<% node['haproxy']['listeners'].each do |type, listeners | %>
|
|
<% listeners.each do |name, listen| %>
|
|
<%= type %> <%= name %>
|
|
<% listen.each do |option| %>
|
|
<%= option %>
|
|
<% end %>
|
|
|
|
<% end %>
|
|
<% end %>
|