54 lines
1.3 KiB
Plaintext
54 lines
1.3 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
|