Saltar al contenido

Reduce AWS Load Balancer health check delay

0

When I make a deployment to my Fargate service, the new containers experience a strange 3 minute delay when registered with the Network Load Balancer. The new HTTP Targets are taking exactly 3 minutes to go from Init to Healthy, even though the URL the health check calls becomes operational before the 3 minutes begin, as verified using the container's public IP.

I changed the health check parameters from defaults to allowed minimums, but this delay didn't change at all.

The health check grace period is 0, though that seems irrelevant as it relates to ECS not the Load Balancer.

Is there a way to remove or lessen this wait?

FYI, I posted this question on ServerFault and got no answer in 10 days https://serverfault.com/questions/1161525/reduce-aws-load-balancer-health-check-delay

  • please accept the answer if it was helpful

preguntada hace 2 años469 visualizaciones
1 Respuesta
0

https://docs.aws.amazon.com/elasticloadbalancing/latest/network/target-group-health-checks.html#health-check-settings

https://docs.aws.amazon.com/elasticloadbalancing/latest/application/target-group-health-checks.html

HealthCheckTimeoutSeconds The amount of time, in seconds, during which no response from a target means a failed health check. The range is 2–120 seconds. The default is 5 seconds if the target type is instance or ip and 30 seconds if the target type is lambda.

HealthCheckIntervalSeconds The approximate amount of time, in seconds, between health checks of an individual target. The range is 5–300 seconds. The default is 30 seconds if the target type is instance or ip and 35 seconds if the target type is lambda.

EXPERTO
respondido hace 2 años
EXPERTO
revisado hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.