HAProxy community

HAProxy Cluster


I have got a large number of HAProxies for a single app (over 20 servers). The issue I’m facing is that, even though I have set max number of conns per backend server, since the haproxies are unaware of other haproxies, the load on the backend machines is far from balanced. Is there any way to create a “true” cluster of haproxies, where each proxy knows of all the other proxies and knows how many each backend server has established, how many more it can process and so on, based on some rules?

I hope my question is clear…

Thank you.

No, this is not possible and probably never will be. Global rate-limiting (or maxconn based queueing) with synchronization doesn’t work, because it’s performance critical data that cannot be synchronized in time.

You need to design around that.

Thank you.