Sha256: f1389192d7ec411e9ca3cea4a6fcc139a20e05f5fef19c0f8b51fb7bd6eea03f
Contents?: true
Size: 1.16 KB
Versions: 33
Compression:
Stored size: 1.16 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 poolparty 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