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 |
---|---|
| Sets the interval between two consecutive health checks. If not specified, the default value is 2s. |
| 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. |
| 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]](https://cdn.haproxy.com/documentation/hapee/2-5r1/assets/health-checks-interval-ed8fa64742db9346918ca8a0a951c9ce0507fdd4cb296a8b8084c210d207b555.png)
Next up
Health Check Threshold