Re:A self-killing web site requested by a customer (2011)
by jefftk on Thursday May 07, 2020 @07:49AM
(#23101922)
Things are a lot easier these days, mostly because there's been more time for people to have problems and code up good generalizable solutions
Re:A self-killing web site requested by a customer (2011)
by ciprian_craciun on Thursday May 07, 2020 @08:30AM
(#23102198)
I just wanted to mention that I didn't fault the original author for the proposed solution. It was 2011, they seemed to use some commercial load-balancer, and the customer didn't seem to want to actually solve the solution.
I actually found the original solution interesting, and I also proposed an alternative achievable with HAProxy as an load-balancer.
Re:A self-killing web site requested by a customer (2011)
by dumbfounder on Thursday May 07, 2020 @08:41AM
(#23102280)
This was written in 2011, I think it's something that happened many years before. Sounds more like a 2001 thing to do.
Re:A self-killing web site requested by a customer (2011)
by wrkronmiller on Thursday May 07, 2020 @08:26AM
(#23102177)
That config looks like it kills the site if there are 2 or fewer back-end servers (similar to the setup in the article).
Wouldn't it make more sense simply to limit the number of connections per back-end server?
Re:A self-killing web site requested by a customer (2011)
by ciprian_craciun on Thursday May 07, 2020 @08:32AM
(#23102209)
Indeed if I were to configure the load-balancer I would limit both the number of concurrent requests and the number of queued requests. (In fact this is what I do in my HAProxy deployments.)
However I assume that the customer (the original author was referring to) didn't want to apply any limitations. (Why is beyond my reasoning...)
For example with HAProxy (my favorite load-balancer and HTTP "router") this can be easily achieved by using `nbsrv`, creating an ACL and only routing requests to the backend based on that ACL. Based on the documentation bellow:
* http://cbonte.github.io/haproxy-dconv/2.1/configuration.html...
* http://cbonte.github.io/haproxy-dconv/2.1/configuration.html...
One can write this:
[This article was linked from the original article described in (https://news.ycombinator.com/item?id=23099347).]