- An
upstreamblock hands out requests to copies in a circle;$upstream_addrand$upstream_statusshow who answered. - Passive health checks: a failure listed in
proxy_next_upstreamsends the request to another copy, andmax_failsfailures take a copy out forfail_timeout. - A
500answer and a long silence become failures once you name them:http_500and a shortproxy_read_timeout. - The load balancer gets a backup too: keepalived moves the floating address to a standby machine within seconds.
- The site answered
500every other time: copy 8082 was sick, and by default nginx treated its500as an ordinary answer and passed it to every second client.
Step 10 of 10 · summary · 1 min
Summary
Found an inaccuracy? Report an error in the lesson