With these settings, the health check behaves as follows:
Interval : 30 seconds
Timeout : 15 seconds
Healthy threshold: 1 success
Unhealthy threshold : 2 consecutive failures
Multiple redundant systems are simultaneously configured with the health check parameters. Interval and timeout settings are applied to each system.
Each health check prober does the following:
2a. Initiates an HTTP connection from one of the source IP addresses to the backend instance every 30 seconds.
2b. Waits up to fifteen seconds for an HTTP 200 (OK) response code.
- A backend is considered unhealthy when at least one health check probe system does the following:
3a. Does not receive an HTTP 200 (OK) response code for one probes. For example, the connection might be refused, or there might be a connection or socket timeout.
3b. Receives two consecutive responses that don't match the protocol-specific success criteria.
- A backend is considered healthy when at least one health check probe system receives one responses that match the protocol-specific success criteria.
In this example, each prober initiates a connection every 30 seconds. Thirty seconds elapses between a prober's connection attempts regardless of the duration of the timeout (whether or not the connection timed out). In other words, the timeout must always be less than or equal to the interval, and the timeout never increases the interval.*
In this example, each prober's timing looks like the following, in seconds:
t=0: Start probe A.
t=15: Stop probe A.
t=30: Start probe B.
t=45: Stop probe B.
t=60: Start probe C.
t=75: Stop probe C.
Health checks determine if backends respond to traffic.
I suggest you change these values to :
Timeout : 5 seconds
Healthy threshold: 2 success