How to speed up deployments on AWS Fargate?

后端 未结 3 1068
暖寄归人
暖寄归人 2021-02-13 07:03

After migrating from EC2 cluster instances to AWS Fargate, I realized that deployments take a lot longer. Before they would take 1-2 minutes, now some deplyoments take up to 5 m

3条回答
  •  -上瘾入骨i
    2021-02-13 07:34

    Through further googling I found this Reddit thread. An AWS employee wrote:

    With regard to time to provision and start a container it is definitely longer when using Fargate. We may reduce the length of the provisioning state in the future, but Fargate is doing much more under the hood than ECS on your own self managed hosts. When you self manage hosts they are already up and running, and may even already have your docker image downloaded and cached locally, so ECS is able to launch the container very quickly. That's not the case with Fargate.

    So shrinking the image should help a little. But in general I guess I'll have to live with it and hope for optimizations on AWS' side.

提交回复
热议问题