Nginx returns 502 and drops the next request without checking upstream

Maxim Dounin mdounin at mdounin.ru
Tue Sep 23 15:39:07 MSD 2008


Hello!

On Tue, Sep 23, 2008 at 10:32:53AM +0200, Sudara wrote:

> Oh, one thing to note with the issue.
>
> Before we had fail_timeout set, it seemed to be set not to the default  
> in the wiki (10s), but to exactly 1 request.
>
> Not sure if that is expected behavior...

If all upstream servers are down (based on max_fails and 
fail_timeout) - the next request will initiate so called 'quick 
recovery' and reset their down state.  The request itself will 
return 502, but this gives a chance for other requests to succeed.

Maxim Dounin





More information about the nginx mailing list