So this question is bugging me, and I actually don't need this kind of scale, I'm just curious. Recently Chris Mccord got 2 million persistent connections in a single box using Elixir/Phoenix. If I have 3 boxes in a cluster, each one handling 2 million persistent connections:
box1.foo.com
, box2.foo.com
, box3.foo.com
and tell the client to connect to one of them?I know the answer can be application specific, but can you please give some examples on how to achieve this kind of scale? Again, this is just a thought exercise, I couldn't find the answer anywhere and I'm interested in horizontal scaling.
Thank you.
you'll want to use multiple load balancers (or skip the load balancer entirely) and use round robin dns (or weighted dns) to distribute requests across them. this is how heroku's routing mesh and aws' elastic load balancers work. you could also spend $$$ on something like an f5 load balancer
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With