Hi Lukas,
by "blockwise" I mean that when we do a continously updated list of
established connections on the Apache and the HAProxy zones, we get 200
established connections on the HAProxy zone and on the Apache zone there
were only 50 connections, a second later only 12, 1, 22 then 83 and so
on. But apparently all requests which were generated by ab were successful.
When we connect ab directly to the Apache zone we get 200 connections
instantly which of course decrease when finished. I expected a similar
result when connections via HAProxy. The CPU utilization on both zones
is quite low (5 to 14%).
We will try your suggestions next week.
Thanks and have a nice weekend,
Daniel
Am 28.04.2017 um 18:39 schrieb Lukas Tribus:
Hi Daniel,
Am 28.04.2017 um 13:52 schrieb Daniel Heitepriem:
Hello everyone,
we are currently evaluating HAProxy 1.7.5 as a load balancer for one
of our applications. To try out how it is performance wise on Solaris
11 we set up a small test environment of three zones containing:
1x HAProxy zone using this config (https://pastebin.com/pRkS1awt)
2x Apache Web Server zone
When benchmarking using "/ab -n 5000 -c 200 https://*internal IP of
HAProxy zone*//" we noticed that the requests are hitting the HAProxy
zone without any problems but were processed to the Apache zones kind
of "blockwise". When using the same setup but instead connecting to
the Apache zones directly, all benchmark requests are handled
continously.
Is this expected behaviour or did we do something wrong?
I think you will have to elaborate what "blockwise" means, but out of
the blue
I would say you are simply saturating the CPU here, as you are basically
measuring TLS handshake performance (TLS on both frontend *and* backend,
with keep-alive disabled).
I suggest:
- consider benchmarking with cleartext backends
- use keep-alive (remove "option http-server-close" + use the -k
argument with ab)
Regards,
Lukas