ECS tasks keeps draining for too long

0

One of ECS Task status show as deactivating for long and if I go to container page by clicking containerID, there it show status as running. Even i tried to stop from console and AWS Cli, non of them were stopping the task and it keeps running.. This may effect my billing. So please help me on this to stop.

1개 답변
0

I could see it might be due to ut-of-memory (OOM) error. If your tasks have a high memory/CPU utilization, then your container instance might not have enough resources to run the ECS agent, leading to disconnected agent [4]. You can choose to reserve some memory for the Amazon ECS container agent and other critical system processes on your container instances, so that your task's containers don't contend for the same memory. For more information, please see [5] for container instance memory management.

Please create a support case with ECS ARN, region, cluster name, service name, task definition name, task id, instance id and platform so that AWS team can help to stop incurring bill for task which is not stable.


References:

[1] Troubleshoot instances with failed status checks - Retrieve the system logs - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstances.html#troubleshooting-retrieve-system-logs

[2] Troubleshoot instances with failed status checks - Suggested actions - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstances.html#MemoryOOM-suggested-actions

[3] How do I change my container instance type in Amazon ECS? - https://aws.amazon.com/premiumsupport/knowledge-center/ecs-change-container-instance-type/

[4] How do I troubleshoot a disconnected Amazon ECS agent? https://aws.amazon.com/premiumsupport/knowledge-center/ecs-agent-disconnected-linux2-ami/

[5] Container Instance Memory Management - https://docs.aws.amazon.com/AmazonECS/latest/developerguide/memory-management.html

[6] Deregister an Amazon EC2 backed container instance - https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deregister_container_instance.html

AWS
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠