简体   繁体   中英

How may I check ECS container agent configuration in ECS Fargate Task?

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 ?

在Fargate中, SIGTERMSIGKILL之间的超时与30秒的默认设置相同。

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM