Sha256: cb6c96b0a45056702611121ea5e2ab2adf99599f5401184d36e4ceafa14a7d96
Contents?: true
Size: 1.36 KB
Versions: 7
Compression:
Stored size: 1.36 KB
Contents
global daemon maxconn 4096 # total max connections (dependent on ulimit) nbproc 1 # number of processing cores user haproxy group haproxy chroot /var/run/haproxy log 127.0.0.1 local0 debug pidfile /var/run/haproxy.pid defaults log global # Log to the global log clitimeout 150000 srvtimeout 150000 contimeout 30000 option httplog option httpclose # disable keepalive (HAProxy does not yet support the HTTP keep-alive mode) option forwardfor # enable insert of X-Forwarded-For headers option redispatch retries 3 balance roundrobin # each server is used in turns, according to assigned weight # Stats stats enable stats uri /poolparty stats realm Statistics\ for\ PoolParty listen <%= @node[:poolparty][:haproxy_name] %> mode <%= @node[:poolparty][:proxy_mode] %> bind 0.0.0.0:<%= @node[:poolparty][:ports_haproxy].join(",0.0.0.0:") %> cookie POOLPARTY <% %x[/usr/bin/server-list-active internal_ip].split("\t").each_with_index do |ip, index| %> server <%= index == 0 ? "master" : "node#{index}" %> <%= ip %>:<%= @node[:poolparty][:forwarding_port] %> weight 1 check cookie <% end %>
Version data entries
7 entries across 7 versions & 3 rubygems