如何加快在AWS Fargate上的部署? [英] How to speed up deployments on AWS Fargate?

查看:117
本文介绍了如何加快在AWS Fargate上的部署?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从EC2集群实例迁移到AWS Fargate之后,我意识到部署需要花费更长的时间.在他们花费1-2分钟之前,现在一些破烂需要花费5分钟. 这篇文章声称他们在Fargate上的部署甚至需要最多10分钟.

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 minutes. This post claims that their deployments on Fargate even take up to 10 minutes.

有人知道一种加快速度的方法吗?我找不到有关此主题的任何文档.

Does anybody know of a way to speed them up? I can't find any documentation on this topic.

推荐答案

通过进一步的谷歌搜索,我发现

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

关于供应和启动容器的时间是 使用Fargate时肯定更长.我们可能会减少 设置状态,但Fargate在 而不是您自己的托管主机上的ECS.当你自我管理 主机,它们已经启动并正在运行,甚至可能已经拥有 在本地下载并缓存docker镜像,因此ECS能够启动 容器很快. Fargate并非如此.

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.

因此缩小图像应该会有所帮助.但是总的来说,我想我必须忍受它,并希望在AWS方面进行优化.

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.

这篇关于如何加快在AWS Fargate上的部署?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆