We are trying to design an architecture that will be able to handle more than 64k websockets.
We first tried with Amazon ELB, but its design doesn't allow unexpected spike of traffic nor websocket. (TCP mode timeout the websockets unexpectedly)
With HAProxy, those limits do not apply, but we'll be limited to ~64k websockets maintained between HA and the back-end servers.
Multiple solutions that came to mind :
- Multiple HAProxy instances, load balance with DNS (Route53 have a weighted option)
- Two HAProxy instances with Keepalived, multiple internal IP addresses (not sure if it's doable)
Is there a better way to do this ?