HAProxy Enterprise Documentation 2.6r1

Health Check Threshold

Use the fall parameter to change the number of failed health checks that will trigger removing the server from the load-balancing rotation. By default, this is set to 3. In the following example, five failed checks will put the server into the DOWN state:

backend be_myapp
   server srv1 10.0.0.1:80 check fall 5
   server srv2 10.0.0.2:80 check fall 5

Use the rise parameter to set how many successful checks are needed to bring a down server back up. The default is 2. In the following example, ten successful health checks are needed before the server will return to the load-balancing rotation:

backend be_myapp
   server srv1 10.0.0.1:80 check fall 5 rise 10
   server srv2 10.0.0.2:80 check fall 5 rise 10

Next up

Connection Parameters