Can someone explain how this is superior to HAproxy?
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/
NGINX open sources TCP load balancing
31–40 of 121 posts
Re: NGINX open sources TCP load balancing
#32Earlier quoted context omitted.
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.
Re: NGINX open sources TCP load balancing
#33Re: NGINX open sources TCP load balancing
#34Re: NGINX open sources TCP load balancing
#35The blog post tells more and has some nice diagrams: http://nginx.com/blog/nginx-plus-r6-released/
Re: NGINX open sources TCP load balancing
#36can this loadbalance redis and memcache?
Re: NGINX open sources TCP load balancing
#37Maybe they'll bring in the health checks for HTTP balancing, next :).
Though I agree it'd be nice to have the functionality integrated.
Re: NGINX open sources TCP load balancing
#38Can someone explain how this is superior to HAproxy?
Note that Nginx already has a simple proxy built in that does very basic HTTP load balancing. HAProxy's is vastly superior to Nginx's in that it supports a sophisticated set of filters ("ACLs"), transformations (eg., header rewriting), queue behaviours (eg., queue limits, backup backends, health checks, retries) and proxy-specific request logging.
A big difference is that HAProxy's main balancing algorithm is "fair", in that traffic is distributed evenly among target backends, whereas Nginx's load balancing is purely round-robin (there is a third-party fair balancing module [1], but it's not maintained).
Re: NGINX open sources TCP load balancing
#39Can someone explain how this is superior to HAproxy?
HAProxy's primary feature is HTTP/HTTPS load balancing. This new feature competes only with HAProxy's TCP load balancing support. Note that Nginx already has a simple proxy built in that does very basic HTTP load balancing. HAProxy's is vastly superior to Nginx's in that it supports a sophisticated set of filters ("ACLs"), transformations (eg., header rewriting), queue behaviours (eg., queue limits, backup backends,…