Health Check Grace Period Ecs
On the step 2.
Health check grace period ecs. You may specify between 0. You may specify between 0 and 300 seconds. For health check grace period.
Health check grace period seconds optional seconds to ignore failing load balancer health checks on newly instantiated tasks to prevent premature shutdown up to 2147483647. To prevent delayed replacement of legitimately unhealthy amazon ecs tasks carefully estimate the grace period required for your lengthiest known tasks. Amazon ecs adds elb health check grace period.
Now you can specify a health check grace period as an amazon ecs service definition parameter this instructs the service scheduler to ignore elb health checks for a pre defined time period after a task has been instantiated. Service definition parameters some amazon ecs tasks have several dependencies and lengthy bootstrapping processes that can exceed the elb health check grace period the optional grace period within which to provide containers time to bootstrap before failed health checks count towards the maximum number of retries. If you have not done so already follow the basic service configuration procedures in step 1.
Enter the period of time in seconds that the amazon ecs service scheduler should ignore unhealthy elastic load balancing target health checks after a task has first started. Now you can specify a health check grace period as an amazon ecs service definition parameter. True story in that case increase the default grace period from 0s to e g.
Iam role optional arn of the iam role that allows amazon ecs to make calls to your load balancer on your. Previously if amazon ecs tasks took a long time to start elastic load balancing elb health checks could mark the task as unhealthy and the service scheduler would shut the task down prematurely. When setting your grace.
The health checks start firing as soon as the service is deployed. 5 min using the aws ecs update service cli. If it needs a while before it can respond the target group might deem it unhealthy and kill it before it has time to get ready.