HAProxy Quick Config


global

    log 127.0.0.1 local0

    daemon

    pidfile /var/run/haproxy.pid

    user nobody

    group nobody

defaults

    log global

    mode http

    option httplog

    option httpclose

    option abortonclose

    option httpchk

    option redispatch

    clitimeout 180000

    srvtimeout 180000

    contimeout 10000

    errorloc 503 /srv/web/htdocs/high_load.html

    errorloc 408 /srv/web/htdocs/high_load.html

listen my-proxy 127.0.0.1:9091

    balance leastconn

    stats enable

    stats uri /haproxy-status

    server zope0 10.0.x.xxx:8080 check

    server zope1 10.0.x.xxx:8081 check

    server zope2 10.0.x.xxx:8082 check backup

    server zope3 10.0.x.xxx:8083 check