HAProxy Enterprise Documentation 2.6r1

Health Check Interval

By default, HAProxy Enterprise sends a health check every two seconds. Change this by adding the inter parameter to the server line. In the next example, health checks are sent once every four seconds:

backend be_myapp
   server srv1 10.0.0.1:80 check inter 4s
   server srv2 10.0.0.2:80 check inter 4s

Use any of the following time suffixes:

  • us : microseconds

  • ms : milliseconds

  • s : seconds

  • m : minutes

  • h : hours

  • d : days

Other parameters that affect the check interval are defined below:

Parameter

Description

inter

Sets the interval between two consecutive health checks. If not specified, the default value is 2s.

fastinter

Sets the interval between two consecutive health checks when the server is in any of the transition states: UP - transitionally DOWN or DOWN - transitionally UP. If not set, then inter is used.

downinter

Sets the interval between two consecutive health checks when the server is in the DOWN state. If not set, then inter is used.

The diagram below describes at which phase each of these settings applies.

[Active/Standby with VRRP]

Next up

Health Check Threshold