Where in the Nginx logs will it say that a server is unavailable because it failed x
times in y
seconds?
I have a set of servers in an upstream block in nginx, each one has a fail_timeout
and max_fails
value set like so:
upstream loadbalancer {
server ip1:80 max_fails=3 fail_timeout=60s;
server ip2:80 max_fails=3 fail_timeout=60s;
}
If I intentionally bring down one of these servers (let's say ip:80), NGINX gets back a 503
which I have marked as an invalid header. So I make sure NGINX hits that server three times in sixty seconds.
I expect there to be something in the logs that the server is being marked as unavailable, i.e. that the fail_timeout
has kicked in. But I can't find anything.
Here is my logging config:
access_log /var/log/nginx/access.log main;
error_log /var/log/nginx/error.log warn;
There is now a log message when the server has exceeded max_fails. It has been added in 1.9.1. Log level is warning, the message says "upstream server temporarily disabled".
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments