Re:A self-killing web site requested by a customer (2011)
by Random_ernest on Thursday May 07, 2020 @08:02AM
(#23102027)
I am not a webdev, but isn't that a task for the loadbalancer in the first place?
[ Parent
| on HN ]
Re:A self-killing web site requested by a customer (2011)
by ciprian_craciun on Thursday May 07, 2020 @08:36AM
(#23102243)
Unfortunately the load-balancer is not a magic-bullet curing every issue a system has. A load-balancer can be configured to do lots of things, like for example:
* limit the number of concurrent requests, and drop the others;
* limit the number of concurrent requests, but queue the others (with a timeout);
* distribute all requests uniformly (randomly or in round-robin fashion) to all backends;
* (any combination of the above);
However if the "customer" asks you to not drop or queue requests, then there is nothing the load-balancer can actually do...
Re:A self-killing web site requested by a customer (2011)
by Random_ernest on Thursday May 07, 2020 @09:02AM
(#23102464)
I took it from the article that dropping requests was permitted (since that happens when all servers go down). So my assumption is still that a better solution is that the load balancer allows only a specific number of requests per server and rejects or caches the rest. I would even argue that requests being rejected is more understandable for the user than the website simply not being there for a certain time.
Re:A self-killing web site requested by a customer (2011)
by legacynl on Friday May 08, 2020 @08:43AM
(#23114182)
I think you are right, except that the article reads as if they were using a loadbalancer that wasn't in their control (a third-party service). If you can't control your loadbalancer to not pass requests when you're overloaded, the next best thing is to keep track of it on each node, and basically do what the article described.