Created
December 18, 2017 20:38
-
-
Save hvelarde/628976fcdcbb14382d200d5389242e23 to your computer and use it in GitHub Desktop.
HAProxy configuration file for Plone instances
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration file for HAProxy | |
# | |
# This file must me symlinked to /etc/haproxy/haproxy.cfg | |
global | |
log /dev/log syslog notice | |
chroot /var/lib/haproxy | |
stats socket /run/haproxy/admin.sock mode 660 level admin | |
user haproxy | |
group haproxy | |
daemon | |
maxconn 256 | |
listen plone | |
bind :8080 | |
mode http | |
balance leastconn | |
option forwardfor | |
option httpclose | |
timeout connect 10s | |
timeout queue 1m | |
timeout client 2m | |
timeout server 2m | |
retries 3 | |
option redispatch | |
acl backend_down nbsrv lt 1 | |
monitor-uri /haproxy?monitor | |
monitor fail if backend_down | |
option tcp-check | |
tcp-check send ok\r\n | |
tcp-check expect string OK | |
default-server maxconn 4 inter 2s slowstart 1m | |
server instance1 127.0.0.1:8081 check port 8881 | |
server instance2 127.0.0.1:8082 check port 8882 | |
server instance3 127.0.0.1:8083 check port 8883 | |
log global | |
option httplog | |
option dontlognull | |
stats enable | |
stats uri /haproxy?stats | |
stats refresh 10s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment