Live data from Hacker News

HAProxy 2.0

haproxy.com

41–50 of 120 posts

Re: HAProxy 2.0

#41

Earlier quoted context omitted.

I'll let others comment on the technical differences. Have you read The Maglev paper out of Google? At the time right before that was published, one of my engineers was implementing much the same thing. They considered both HAProxy and nginx for the second layer of load balancing. The were technical reasons in either direction. There was some pressure (from me) to go with nginx because we were already using it as our…

What are you spending with HAProxy a year now?

You can't spend money on haproxy license. It's free. They make money by selling appliances (servers with haproxy pre installed).

Nginx however is $1900 per year per server. There are plenty of critical features missing from the free edition, for example the status page to see available servers or metrics exporting for monitoring.

Re: HAProxy 2.0

#42

The conversation in this thread has made me wonder after reading it if anyone uses Apache2 as their webserver anymore. Edit: seems many still do! I thought it was dying slowly as php popularity was going down.

Yes, its still more popular than Nginx according to https://trends.builtwith.com/Web-Server/Apache https://trends.builtwith.com/Web-Server/nginx

Re: HAProxy 2.0

#43

I've always used Nginx as a proxy, but I've seen HAProxy mentioned, what are some of the benefits of using HAProxy over nginx as a proxy or load balancer?

In my previous company we used to use HAProxy, and it was a hassle. Yes, it is powerful. However, nginx is way easier to configure and set up, and performance wise is a contender for most usual applications people needed.

Maybe for a few edge cases, HAProxy works better, but overall, I'd pass on it.

nginx just fulfills most people's requirements for reverse proxy and has solid HTTP/2 support (and other features) for way longer.

If you are using nginx and it is working good, I'd recommend against trying out HAProxy.

If it's not working good, I'd first look into fixing whatever is wrong with your setup and only trying HAProxy if some experienced with it helps you out with it. HAProxy requires much more configuration tweaking than nginx (at least to gain any benefit from using it).

Re: HAProxy 2.0

#44

The conversation in this thread has made me wonder after reading it if anyone uses Apache2 as their webserver anymore. Edit: seems many still do! I thought it was dying slowly as php popularity was going down.

Of course, for anything that is cgi/fastcgi. nginx doesn't support that.

There is also stuff running on mod_php/mod_python/mod_wcgi that is bound to apache, however these are deprecated and unstable technologies that should not be used in this decade.

Re: HAProxy 2.0

#45

The conversation in this thread has made me wonder after reading it if anyone uses Apache2 as their webserver anymore. Edit: seems many still do! I thought it was dying slowly as php popularity was going down.

What conversation?

Been using apache2 for like 20+ years now. It is doable to switch to something else, but would probably require effort with various details, etc. It works well for our moderate loads, so not really urgent to change it.

Re: HAProxy 2.0

#47

The conversation in this thread has made me wonder after reading it if anyone uses Apache2 as their webserver anymore. Edit: seems many still do! I thought it was dying slowly as php popularity was going down.

Of course, for anything that is cgi/fastcgi. nginx doesn't support that. There is also stuff running on mod_php/mod_python/mod_wcgi that is bound to apache, however these are deprecated and unstable technologies that should not be used in this decade.

nginx supports fast cgi

https://www.nginx.com/resources/wiki/start/topics/examples/f...

I imagine it supports cgi calls too

Re: HAProxy 2.0

#48

The conversation in this thread has made me wonder after reading it if anyone uses Apache2 as their webserver anymore. Edit: seems many still do! I thought it was dying slowly as php popularity was going down.

What conversation? Been using apache2 for like 20+ years now. It is doable to switch to something else, but would probably require effort with various details, etc. It works well for our moderate loads, so not really urgent to change it.

No one up till this point ever mentioned using HAProxy with Apache

Re: HAProxy 2.0

#49

Earlier quoted context omitted.

What are you spending with HAProxy a year now?

You can't spend money on haproxy license. It's free. They make money by selling appliances (servers with haproxy pre installed). Nginx however is $1900 per year per server. There are plenty of critical features missing from the free edition, for example the status page to see available servers or metrics exporting for monitoring.

In fact there is a software-based Enterprise version of HAProxy that is subscription based.

Re: HAProxy 2.0

#50

I've always used Nginx as a proxy, but I've seen HAProxy mentioned, what are some of the benefits of using HAProxy over nginx as a proxy or load balancer?

Nginx it's more general purpose, ex: can serve and cache static files.
Post reply on HN