diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:35:11 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:35:11 +0000 |
commit | da76459dc21b5af2449af2d36eb95226cb186ce2 (patch) | |
tree | 542ebb3c1e796fac2742495b8437331727bbbfa0 /tests/conf/test-fwrr.cfg | |
parent | Initial commit. (diff) | |
download | haproxy-da76459dc21b5af2449af2d36eb95226cb186ce2.tar.xz haproxy-da76459dc21b5af2449af2d36eb95226cb186ce2.zip |
Adding upstream version 2.6.12.upstream/2.6.12upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/conf/test-fwrr.cfg')
-rw-r--r-- | tests/conf/test-fwrr.cfg | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/tests/conf/test-fwrr.cfg b/tests/conf/test-fwrr.cfg new file mode 100644 index 0000000..ed283ca --- /dev/null +++ b/tests/conf/test-fwrr.cfg @@ -0,0 +1,51 @@ +# This is a test configuration. +# It makes use of a farm built from 4 active servers and 4 backup servers, +# all listenening to different IP addresses on port 80. Health-checks are +# TCP only on port 81 so that iptables rules permit easy selection of which +# servers are enabled or disabled. +# +# Create statistics counters this way : +# +# iptables -N http +# iptables -A OUTPUT -p tcp --syn --dport 80 -j http +# for i in $(seq 1 8); do iptables -A http -d 127.0.0.$i; done +# iptables -A http -d 127.0.0.0/24 +# +# Consult the statistics using iptables this way: +# +# iptables --line-numbers -nxvL http +# iptables -Z http +# +# +# Block individual servers like this : +# iptables -I INPUT -p tcp --dport 81 -d 127.0.0.1 -j DROP +# + +global + maxconn 1000 + stats socket /tmp/sock1 mode 600 + stats timeout 3000 + stats maxconn 2000 + +listen sample1 + mode http + retries 1 + option redispatch + timeout connect 1000 + timeout client 5000 + timeout server 5000 + maxconn 40000 + bind :8080 + balance roundrobin + option allbackups + server act1 127.0.0.1:80 weight 10 check port 81 inter 1000 fall 1 + server act2 127.0.0.2:80 weight 20 check port 81 inter 1000 fall 1 + server act3 127.0.0.3:80 weight 30 check port 81 inter 1000 fall 1 + server act4 127.0.0.4:80 weight 40 check port 81 inter 1000 fall 1 + server bck1 127.0.0.5:80 weight 10 check port 81 inter 1000 fall 1 backup + server bck2 127.0.0.6:80 weight 20 check port 81 inter 1000 fall 1 backup + server bck3 127.0.0.7:80 weight 30 check port 81 inter 1000 fall 1 backup + server bck4 127.0.0.8:80 weight 40 check port 81 inter 1000 fall 1 backup + option httpclose + stats uri /stats + stats refresh 5 |