Hello,
I am facing some issues configuring haproxy in front of Glassfish.
Today, I have an Apache server with the Glassfish load-balancer plugin
redirecting to 4 instances of Glassfish. I try to replace this Apache server
with haproxy.
I have tried to do a load test on the 2 configurations and the results are very
surprising !
I obtain around 10 000 requests by second with Apache, and only around 4 500
requests by second with haproxy…
Something in my configuration must not be good, but I can't find it.
So I hope you can help me on this subject. There is my haproxy.cfg :
global
log localhost local7 info
chroot /home/haproxy/jail
maxconn 10000
uid 1001
gid 1001
daemon
defaults
mode http
retries 3
option redispatch
maxconn 50000
timeout connect 5000
timeout client 10000
timeout server 10000
frontend front-web 0.0.0.0:80
log global
option httplog
option dontlognull
default_backend glassfish
backend glassfish
stats uri /haproxy
stats realm Statistics
stats refresh 5s
balance leastconn
option http-server-close
option forwardfor
option abortonclose
option httpchk
server gf-1 192.168.0.1:28080 check inter 10000 fastinter 5000 downinter
500 rise 50 fall 3
server gf-2 192.168.0.1:28081 check inter 10000 fastinter 5000 downinter
500 rise 50 fall 3
server gf-3 192.168.0.2:28080 check inter 10000 fastinter 5000 downinter
500 rise 50 fall 3
server gf-4 192.168.0.2:28081 check inter 10000 fastinter 5000 downinter
500 rise 50 fall 3
Cheers
Alexandre MAÏS