Sha256: 1e58cba834c7e108439d8c48febb33b40df81ff8dea994584d52318343ff49e1
Contents?: true
Size: 1.17 KB
Versions: 33
Compression:
Stored size: 1.17 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 mode http 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 retries 3 option redispatch balance roundrobin # each server is used in turns, according to assigned weight # Stats stats enable stats uri /poolparty stats realm Statistics\ for\ PoolParty listen <%= name_haproxy %> bind 0.0.0.0:<%= ports_haproxy.join(",0.0.0.0:") %> cookie POOLPARTYPARTY <%- node_ips_haproxy.chomp.split(/\t/).each_with_index do |ip, index| -%> server <%= index == 0 ? "master" : "node#{index}" %> <%= ip %>:<%= forwarding_port %> weight 1 check cookie <%- end -%>
Version data entries
33 entries across 33 versions & 2 rubygems