Live data from Hacker News

NGINX open sources TCP load balancing

hg.nginx.org

21–30 of 121 posts

Re: NGINX open sources TCP load balancing

#23
post #13

The NGINX Plus docs on TCP Load Balancing: http://nginx.com/resources/admin-guide/tcp-load-balancing/ Something to read while we wait for the announcement page to come back up :-)

Just FYI it's not an announcement page, it's a link to the source code commit (probably explains why the page is down - isn't expected to have high traffic)

Re: NGINX open sources TCP load balancing

#24

Earlier quoted context omitted.

from what i understand, this could be used for anything tcp related (here[0] they said it could be used to proxy mysql, ldap, rtmp and they use pop3 as an example). i thought haproxy was used basically to proxy http stuff, not general tcp. [0] http://nginx.com/resources/admin-guide/tcp-load-balancing/

You can do tcp loadbalancing with haproxy, you can't do udp though.

[deleted]

Re: NGINX open sources TCP load balancing

#25
post #18

Earlier quoted context omitted.

HAProxy is used for TCP too. The main benefit from my perspective is that there is one less component in the stack. Whereas I would previously need HAProxy running alongside NGINX to balance TCP and HTTP, I can now do all of this with NGINX.

But why not just use HAProxy? It is often used for plain TCP load balancing (we use it).

Because I would still need to run NGINX alongside it to handle HTTP proxying. By removing HAProxy from the stack, I have one less component to manage/maintain/upgrade.

I've used HAProxy for a long time and been very happy with it. But, everything else being equal, a stack with n-1 components is better than a stack of n components.

Re: NGINX open sources TCP load balancing

#29
post #24

Earlier quoted context omitted.

You can do tcp loadbalancing with haproxy, you can't do udp though.

[deleted]

Er, LVS, Netscaler, F5, Pen? People have been balancing DNS for ages to avoid the problems inherent to round robin, and UDP is the ideal scenario for DSR. HAproxy is unique in not supporting it, not the norm.

Re: NGINX open sources TCP load balancing

#30
post #25

Earlier quoted context omitted.

But why not just use HAProxy? It is often used for plain TCP load balancing (we use it).

Because I would still need to run NGINX alongside it to handle HTTP proxying. By removing HAProxy from the stack, I have one less component to manage/maintain/upgrade. I've used HAProxy for a long time and been very happy with it. But, everything else being equal, a stack with n-1 components is better than a stack of n components.

Why not use HAProxy for HTTP proxying? If you want to drop one component from the stack it could just as well be NGINX.
Post reply on HN