Load Balancing and High Availability

Axel ar at xlrs.de
Tue Jul 23 22:03:08 UTC 2013


Am Dienstag, 23. Juli 2013, 11:06:46 schrieb toriacht:
> Hi,
> IN answer to my own question I found this..
> +------+
> Max Fails
> Fall_timeout specifies the length of that the server is considered
> inoperative. Once the time expires, new attempts to reach the server will
> start up again. The default timeout value is 10 seconds.
> +------+

this is the way I did it.

I set max_fails=1 and fail_timeout in my upstream definition and in my location block 
proxy_next_upstream     http_502 http_503 error;

You can use any allowed http status code here

Rgds, Axel 

More information about the nginx mailing list