It would be interesting to see the difference with HAProxy if this line was removed: https://github.com/observing/balancerbattle/blob/master/hapr... What the option does is close the connection between the proxy and the backend so that HAProxy will analyse further requests instead of just forwarding to the already established connection. To be fair, I don't know what nginx does - whether connections are kept open or…
Balancer Battle – Load testing HAproxy, Nginx and HTTP-Proxy's WebSocket support
11–20 of 40 posts
Re: Balancer Battle – Load testing HAproxy, Nginx and HTTP-Proxy's WebSocket support
#12Why do people always benchmark on virtual machines running on someone else's server, and expect meaningful results?
Because we people obviously don't have a datacenter in our own basement. And the common mistake people make when benchmarking is running the servers on their own machine and then use the same machine to benchmark the server it's running. You need to have multiple (powerful) machines for this. And also, spinning up machines in the cloud is quite easy to do and allows people to reproduce the same test results because y…
Re: Balancer Battle – Load testing HAproxy, Nginx and HTTP-Proxy's WebSocket support
#13Re: Balancer Battle – Load testing HAproxy, Nginx and HTTP-Proxy's WebSocket support
#14Re: Balancer Battle – Load testing HAproxy, Nginx and HTTP-Proxy's WebSocket support
#15> nginx and haproxy were really close, it's almost not significant enough to say that one is faster or better then the other. But if you look at it from an operations stand point. It's easier to deploy and manage a single nginx server instead of stud and haproxy From an operations standpoint, haproxy has other features (failover, cli management, clustering) that actually makes it a much better load balancer. I usuall…
HAProxy also has a raw tcp mode, which is great when you have to balance non-http services.
Re: Balancer Battle – Load testing HAproxy, Nginx and HTTP-Proxy's WebSocket support
#16Why do people always benchmark on virtual machines running on someone else's server, and expect meaningful results?
Re: Balancer Battle – Load testing HAproxy, Nginx and HTTP-Proxy's WebSocket support
#17I'd like to see Hipache tested against these as well. Hipache https://github.com/dotcloud/hipache
Re: Balancer Battle – Load testing HAproxy, Nginx and HTTP-Proxy's WebSocket support
#18I haven't worked on these in a couple years, but on real hardware, haproxy could push much more bandwidth. We could saturate 10Gb ethernet fairly easily at the time, which wasn't possible at all with nginx.
Re: Balancer Battle – Load testing HAproxy, Nginx and HTTP-Proxy's WebSocket support
#19It would be interesting to see the difference with HAProxy if this line was removed: https://github.com/observing/balancerbattle/blob/master/hapr... What the option does is close the connection between the proxy and the backend so that HAProxy will analyse further requests instead of just forwarding to the already established connection. To be fair, I don't know what nginx does - whether connections are kept open or…
Re: Balancer Battle – Load testing HAproxy, Nginx and HTTP-Proxy's WebSocket support
#20Why do people always benchmark on virtual machines running on someone else's server, and expect meaningful results?
Because we people obviously don't have a datacenter in our own basement. And the common mistake people make when benchmarking is running the servers on their own machine and then use the same machine to benchmark the server it's running. You need to have multiple (powerful) machines for this. And also, spinning up machines in the cloud is quite easy to do and allows people to reproduce the same test results because y…
Oh really? For simple http 'hello world' comparision (where you are interested in relative numbers, not absolute ones) bechmark?
All you need is one old and slow laptop (with test contenders) and one modern and mighty (with test script). The only thing you have to be sure about is the test script can generate more load than test contenders can handle. Even if the old laptop isn't slow enough you can just add some predictable and stable load to cpu/disks/network/whatever is a bottleneck for them - you may use tools that are available for that or even quick & dirty hacks like one-liner 'while(1) {do some math}' that effectively make your 2-cores CPU 1-core while running with high system priority.