The directive sets the number of consecutive unsuccessful attempts to communicate with the server that should happen during . By default, is set to 1. When it is set to 0, health checks are disabled for this server. The parameter also defines how long the server will be marked as failed. After interval following the server failure, nginx will start to gracefully probe the server with the live client’s requests. If the probes have been successful, the server is marked as a live one.
Further readingIn addition, there are more directives and parameters that control server load balancing in nginx, e.g., , , and . For more information please check our reference documentation.
Last but not least, application load balancing, application health checks, activity monitoring and on-the-fly reconfiguration of server groups are available as part of our paid NGINX Plus subscriptions.
The following articles describe load balancing with NGINX Plus in more detail:
Load Balancing with NGINX and NGINX Plus
Load Balancing with NGINX and NGINX Plus part 2