Question about Fargate vs ec2

0

Hello,

We created a cluster that is using ec2 instances. We are considering moving to fargate, but have some questions:

  1. Does ecs container in fargate unload the container if not used?
  2. Does it take a long time to load up again? Example scenario a web api that needs to be online constantly in fargate and scale up.

Thank you,

Mary

1回答
1

Hello MaryJ,

You can setup ECS service autoscaling to scale up/down your ECS fargate service desired count based on your resource utilization.

If you need your Web API to be constantly available at all times even during minimum load, you can set the minimum count to 1. This will make sure that atleast 1 task is running at all times.

During heavy load, the above mentioned ECS service autoscaling feature will scale up your desired count as needed, and scale it down to 1 during no load.

profile pictureAWS
サポートエンジニア
回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ