This is my first time using HAproxy and I've come into a bit of an issue.
I'm using haproxy to load balance two apache servers for a proof of
concept, currently running ab to test performance and I've noticed that
telling ab to have a number of concurrent connections that is greater than
the maximum number of clients supported by the apache servers causes it to
drop the packages somewhere and not log them or report them in any way. I
was just wondering if this was by design or if it was an error in my
configuration files.
Heres a copy of my haproxy.cfg for reference:
global
maxconn 10000 # Total Number of
Connections
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
daemon
nbproc 1 # Number of Processes
user haproxy
group haproxy
chroot /var/chroot/haproxy
defaults
log global
option tcplog
mode tcp
clitimeout 60000
srvtimeout 30000
contimeout 4000
retries 3
option redispatch
listen load_balanced 10.0.12.88:80
mode http
balance roundrobin
server webserver2 10.0.8.3:80 weight 1 maxconn 10 check
server webserver3 10.0.8.4:80 weight 1 maxconn 10 check
listen admin_stats 10.0.12.88:8080
mode http
stats enable
And the command I am running in ab is this: ab -n 1000 -c 20
http://10.0.12.88:80/index.php
index.php is simply a script that sleeps for 3 seconds as part of the test.
Any help with would be very much appreciated.
Thanks,
Chris