Reputation: 903
For EC2 launch type I'm able to check agent configuration in /etc/ecs/ecs.config
file at EC2 container instance. But is it possible to find out the same info at ECS Fargate Task? For example, I'd like to know, what is the timeout between SIGTERM and SIGKILL (ECS_CONTAINER_STOP_TIMEOUT
). I wonder should it be possible to retrieve such info from Amazon ECS Task Metadata Endpoint?
Upvotes: 1
Views: 2127
Reputation: 715
For newer Fargate platform versions, you can use the stopTimeout
container definition parameter. Note the maximum value of 120 seconds:
For tasks that use the Fargate launch type, the task or service requires platform version 1.3.0 or later (Linux) or 1.0.0 or later (for Windows). The max stop timeout value is 120 seconds. However, if the parameter isn't specified, the default value of 30 seconds is used.
Upvotes: 0
Reputation: 4682
In Fargate, timeout between SIGTERM
and SIGKILL
is the same as the default setting of 30 seconds.
Upvotes: 3