How are downed upstream servers detected as alive again?

mike mike503 at gmail.com
Thu Apr 24 09:56:39 MSD 2008


I am having the same desire, but it might be out of nginx scope.

You're looking for a healthchecking load balancer. Not a proxy. nginx
is a reverse proxy at most.

I am using it right now as a load balancer myself, and it would be
great if it was dynamic like a normal layer7 capable load balancer
with healthchecking. You could do this manually, by writing an include
file (easiest) that has the upstream servers listed in it, and include
it from the main nginx configuration. You'd have to reload nginx every
time though...


On 4/23/08, Rt Ibmer <rtibmx at yahoo.com> wrote:
> > This also explains, in the writing about fail_timeout, how long
> > nginx considers a failed upstream server down for.Thank you for the clarification. Wow, I did not realize that is what the fail_timeout was for. I had seen that, but thought it was related to how long the timeout had to be before being considered down.
>
> I really wish it worked differently.  For instance with Pound, you specify a retry interval and it automatically checks downed servers at that interval without first redirecting any requests to it. Any chance we may see that type of enhancement in the future?
>
> For instance in my case I'll then want to keep the fail_timeout short, like 60 seconds.  So this means every 60 seconds nginx will assume the downed server is back up, and send requests to it only to find that it is not back up yet and causing users to experience the delays. I will use the other params to keep the delays short (like 3s).  However every minute some users will be experiencing a 3s delay.
>
> I've recently switched to nginx from pound and let me just say that nginx is so much better in just about every other way its not even a contest.  However I must say that pound does have a clear advantage in this regarding, in that it will not direct clients to a downed box until some other background process it runs verifies it can get a response. At least, that is my understanding of how things went.
>
> For as robust of a package that nginx is and performance oriented it is a bit surprising that it would blindly assume a downed box is back up just because x interval has passed.  Would love to see it verify things first before redirecting real users to it.  Thanks for the opportunity to provide feedback and a truly incredible tool!
>
>
>
>
>
>      ____________________________________________________________________________________
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>
>
>





More information about the nginx mailing list