Sha256: 3a2a4e6981eb720cd3955ae1ab4f392c5d92a6f0519374d89501201d069454c8

Contents?: true

Size: 1.09 KB

Versions: 1

Compression:

Stored size: 1.09 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 /haproxy
  stats realm Statistics\ for\ <%= name %>

listen <%= name %> 
    bind 0.0.0.0:<%= ports.join(",0.0.0.0:") %>
    <% node_ips.each_with_index do |ip, index| -%>
    cookie POOLPARTYPARTY
    server node<%= index %> <%= ip %>:<%= forwarding_port %> weight 1 check cookie
  <% end -%>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
auser-poolparty-0.2.3 lib/poolparty/templates/haproxy.conf