Introduction
When a server or service is temporarily unreachable, nginx can stop trying to send requests to it after a certain number of failures or a timeout. This helps keep your website fast and reliable by avoiding slow or broken servers.
When you have multiple backend servers and want nginx to stop sending requests to a server that is failing repeatedly.
When you want to improve user experience by quickly switching to healthy servers without waiting too long for a slow server to respond.
When you want to avoid wasting resources retrying a server that is down or unreachable.
When you want to control how long nginx waits before trying a failed server again.
When you want to balance load but exclude servers that are temporarily unhealthy.