Welcome! Log In Create A New Profile

Advanced

Re: Why use haproxy now ?

All files from this thread

File Name File Size   Posted by Date  
graph.png 56.2 KB open | download dbradfield 03/28/2013 Read message
March 28, 2013 08:30AM
Hi
I actually did some quite in-depth comparison with splice() sys call
(only available on linux btw), between nginx and haproxy, and even wrote
a small standalone proxy server that uses it
There was some improvement, but not on the scale that would make it a
deciding factor
The thing that makes most difference to forwarding is your network card,
and if it supports LRO (large receive offload) - if you're using a 10G
lan card, it probably has it, anything less probably doesn't

I've attached my results, the test was proxying a file a certain amount
of times, and I would log how much cpu time was used (ab -n 1000 -c 10
192.168.1.101:8001/10MB.zip)

RTL = onboard realtek (they are crap)
INTEL = intel 1000CT ($30 thing)
LIN = Linux (3.6.something)
BSD = FreeBSD 9.0
HA = Haproxy (latest 1.5 dev version at the time)
NGX = Nginx 1.3.something
PS = splice() proxy that I wrote
SPL/BUF/OFF = mode either splice, buffer or off/on (nginx proxy_buffering)

Afterwards I got some 10G cards to test and it was (by probably 80-90%)
faster at all tests


On 28/03/13 11:57, Lukas Tribus wrote:
> Because nginx doesn't do tcp splicing. Is my assumption wrong; are you able to
> forward 20Gbps with nginx? Then yes, probably you have huge hardware, which isn't
> necessary with haproxy.
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Attachments:
open | download - graph.png (56.2 KB)
Subject Author Posted

Why use haproxy now ?

Larry March 28, 2013 05:45AM

Re: Why use haproxy now ?

Reinis Rozitis March 28, 2013 06:12AM

Re: Why use haproxy now ?

Heřbolt, Lukáš March 28, 2013 06:24AM

Re: Why use haproxy now ?

Brian Akins March 28, 2013 07:24AM

RE: Why use haproxy now ?

Lukas Tribus March 28, 2013 07:22AM

Re: Why use haproxy now ?

Brian Akins March 28, 2013 07:24AM

RE: Why use haproxy now ?

Lukas Tribus March 28, 2013 08:00AM

Re: Why use haproxy now ?

nginxorg March 28, 2013 08:18AM

Re: Why use haproxy now ?

Heřbolt, Lukáš March 28, 2013 08:32AM

Re: Why use haproxy now ? Attachments

dbradfield March 28, 2013 08:30AM

Re: Why use haproxy now ?

Larry March 28, 2013 09:53AM

Re: Why use haproxy now ?

Reinis Rozitis March 28, 2013 11:22AM

Re: Why use haproxy now ?

Larry March 28, 2013 11:38AM

Re: Why use haproxy now ?

Igor Sysoev March 29, 2013 03:20AM

Re: Why use haproxy now ?

Heřbolt, Lukáš March 29, 2013 05:58AM

Re: Why use haproxy now ?

Brian Akins March 29, 2013 09:34AM

Re: Why use haproxy now ?

Reinis Rozitis March 30, 2013 06:18AM

Re: Why use haproxy now ?

Igor Sysoev March 31, 2013 02:06AM

Re: Why use haproxy now ?

Reinis Rozitis March 31, 2013 06:14AM

Re: Why use haproxy now ?

Igor Sysoev March 31, 2013 10:44AM

Re: Why use haproxy now ?

Reinis Rozitis April 02, 2013 05:56AM

Re: Why use haproxy now ?

Larry April 02, 2013 01:10PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 186
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready