This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
pfwbged.buildout/templates/haproxy.conf.in

66 lines
2.5 KiB
Plaintext

global
log 127.0.0.1 local6
maxconn ${haproxy-conf:maxconn}
ulimit-n ${haproxy-conf:ulimit-n}
user ${haproxy-conf:user}
group ${haproxy-conf:group}
daemon
nbproc 1
defaults
# log global
mode http
# The zope instances have maxconn 1, and it is important that
# unused/idle connections are closed as soon as possible.
option httpclose
# Remove requests from the queue if people press stop button
option abortonclose
# option httplog
# option dontlognull
retries 3
option redispatch
monitor-uri /haproxy-ping
timeout connect 7s
timeout queue 300s
timeout client 300s
timeout server 300s
stats enable
stats uri /haproxy-status
stats refresh 5s
stats realm Haproxy\ statistics
frontend zopecluster
bind ${haproxy-conf:bind}
default_backend zope
# capture cookie __ac len 10
# option httplog
# log 127.0.0.1 local6
# Load balancing over the zope instances
backend zope
balance roundrobin
cookie serverid insert nocache indirect
option httpchk GET /
server plone0101 ${hosts:instance1}:${ports:instance1} cookie p0101 maxconn 2 check inter 2000 rise 2 fall 5
server plone0102 ${instance2:http-address} cookie p0102 maxconn 2 check inter 2000 rise 2 fall 5
server plone0102 ${instance3:http-address} cookie p0103 maxconn 2 check inter 2000 rise 2 fall 5
server plone0103 ${instance4:http-address} cookie p0104 maxconn 2 check inter 2000 rise 2 fall 5
server plone0104 ${instance5:http-address} cookie p0105 maxconn 2 check inter 2000 rise 2 fall 5
server plone0105 ${instance6:http-address} cookie p0106 maxconn 2 check inter 2000 rise 2 fall 5
server plone0106 ${instance7:http-address} cookie p0107 maxconn 2 check inter 2000 rise 2 fall 5
server plone0107 ${instance8:http-address} cookie p0108 maxconn 2 check inter 2000 rise 2 fall 5
server plone0108 ${instance9:http-address} cookie p0109 maxconn 2 check inter 2000 rise 2 fall 5
server plone0109 ${instance10:http-address} cookie p0110 maxconn 2 check inter 2000 rise 2 fall 5
server plone0110 ${instance11:http-address} cookie p0111 maxconn 2 check inter 2000 rise 2 fall 5
server plone0111 ${instance12:http-address} cookie p0112 maxconn 2 check inter 2000 rise 2 fall 5
server plone0112 ${instance13:http-address} cookie p0113 maxconn 2 check inter 2000 rise 2 fall 5
server plone0113 ${instance14:http-address} cookie p0114 maxconn 2 check inter 2000 rise 2 fall 5
server plone0114 ${instance15:http-address} cookie p0115 maxconn 2 check inter 2000 rise 2 fall 5