Sha256: aa77cc4190ae372b1175a56f831de767a8882a8292626d8a9807e89786a050d7

Contents?: true

Size: 1.09 KB

Versions: 2

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 /poolparty
  stats realm Statistics\ for\ PoolParty

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

2 entries across 2 versions & 1 rubygems

Version Path
auser-poolparty-0.2.4 lib/poolparty/templates/haproxy.conf
auser-poolparty-0.2.5 lib/poolparty/templates/haproxy.conf