Maximizing TCP connections on HAProxy load balancer
Posted
by
imaginative
on Server Fault
See other posts from Server Fault
or by imaginative
Published on 2012-06-21T18:13:40Z
Indexed on
2012/06/30
9:17 UTC
Read the original article
Hit count: 301
I am currently using HAProxy in order to load balance tcp connections from clients to my Erlang app server. The connection is persistent, which means I'm limited to roughly 64K clients on an optimized server (I'm currently running HAProxy on an m1.large EC2 instance). My app server is designed to horizontally scale based on the number of TCP connections. What's worrying me though is I'll need an equal number of HAProxy servers as app servers since it's a 1:1 connection. Is there currently a way to "proxy" the tcp connection to the app server so that once HAProxy sends the client off to my Erlang server, it can free up the connection, ready to serve another client? Are there any papers, existing solutions out there I can read so that I only have to worry about the 64K limit on my app servers, and not on the load balancing servers themselves?
© Server Fault or respective owner