504 timeout error on EC2 instance inside ECS cluster on same time daily

0

We are facing very weird situation in ECS cluster. ECS tasks minimum is 6 and max count is 40.
Task defination : "cpu": "1600", "memory": "2048",

Every day at same time people are login to system or application one or two instance getting higher utilisation 90% so we are getting 504 timeout error for each application API request. We check container log didn't find any error causing issue. Request which is getting timeout later if we tried it works sometime. So nothing is do with particular request causing issue.

What could be issue ? We are struggling to get rid of this issue from 5 months.

1 回答
1

If you have ALB logging enabled then I would use the logs to find which container is returning the 504

Then dig deeper into the application. It may be the container is overloaded and out of available http connections at that time or not enough threads.

You’d need to look at tuning your app.

profile picture
专家
已回答 6 个月前
  • I checked container log didn't find any. Metrics for CPU usage is high on issue time.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则