2 Answers
- Newest
- Most votes
- Most comments
0
For now we have one EC2 instance always running to mitigate the cold start problem (EC2 instance spin-up + docker image pull). Jobs run for ~3:30min, ideally image pull time is eliminated after caching. Also, we've reduced the image size from 16GB to 4GB.
answered 3 years ago
0
I would like to have more context of the issue.
Like, for how long your job run generally? Also, caching container image should not hamper the execution time. So to debug such issue, i would suggest you add timestamp entries in logs to check which part of application code is taking more time to execute.
And how much image pull time is reduced after caching image? you can confirm the same via check corresponding ecs task details which will have image pull time details.
Relevant content
- asked 3 years ago
- asked a year ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 10 months ago
Have you tried preloading the image into an AMI? suffering from same problem, but cannot afford to have one instance always up.