Hacker News new | ask | show | jobs
by de_dave 4726 days ago
ELB already does weighting, directing requests depending instance type and instance load. Can't find where in the docs this is clarified unfortunately. Have witnessed this with my own eyes though!

Draining is a huge issue for us. Investigating ways to add a secondary layer of balancing behind ELB to help mitigate it, which is completely silly. We shouldn't need to do this. ELB should have supported gracefully terminating connections from Day 1, IMO. Last I heard it was being 'considered'.

1 comments

Docs talk about Availability Zones, but there is zero mention of weighting -- either that it's done, or that it's not done. This is a very strange omission. Googling reveals that balancing is done by counting outstanding requests to each instance:

http://stackoverflow.com/questions/15789166/how-amazon-elb-w...

https://forums.aws.amazon.com/message.jspa?messageID=146233

> But there is zero mention of weighting

It is called WRR (Weighted Round Robin). Here are some docs to get you started:

http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/Wei...

That's for Route 53 (DNS). The subject here is ELB, a different AWS technology.
Yes, indeed! My thinking was that you could use this Route 53 feature to route traffic across several ELBs to accomplish the desired effect.
Yes, sounds like a good idea (if you have control of the DNS)