How to select ECS Fargate instance type?

0

Do anybody know if its possible to select specific instance type when launching a Fargate task? My team did some bench marking with one of the latest ECS EC2 instance type and observe better performance for the same configuration we would like to have the Fargate task running on that instance type.

質問済み 2ヶ月前96ビュー
2回答
2
承認された回答

Hello Hermosa,

When using AWS Fargate, it’s important to note that it is designed to provide a serverless experience. As a part of the experience this means that AWS manages the underlying infrastructure, including the selection of instance types, on behalf of our customer. Unfortunately this also means that, direct control over specific instance types is not available with Fargate.

The reason is to maintain the serverless nature of AWS Fargate. AWS takes care of managing the underlying infrastructure allowing Fargate to scale automatically, so customers don't need to worry about selecting instance types or handling other infrastructure details.

If you are struggling between which choice to make, Fargate or EC2 launch types. I will advise you to look at your workload. If performance is critical (top priority) and you need control over the underlying instance types. I will suggest for you to go with the EC2 launch type instead of Fargate.

If you think my response answers your question please select it as the accepted answer cheers!

AWS
回答済み 2ヶ月前
profile picture
エキスパート
レビュー済み 2ヶ月前
  • Hmm thanks for your response seems like we have to stick with EC2 launch type

1

Hello.

Fargate is serverless, so there is no concept of instance types.
Performance is determined by the vCPU and memory values ​​set in the task definition.
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS_Fargate.html

AWS Fargate is a technology that you can use with Amazon ECS to run containers without having to manage servers or clusters of Amazon EC2 instances. With AWS Fargate, you no longer have to provision, configure, or scale clusters of virtual machines to run containers. This removes the need to choose server types, decide when to scale your clusters, or optimize cluster packing.

CPU architecture can be set in the task definition.
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/fargate-tasks-services.html#fargate-task-os

profile picture
エキスパート
回答済み 2ヶ月前
profile picture
エキスパート
レビュー済み 2ヶ月前
profile pictureAWS
エキスパート
レビュー済み 2ヶ月前

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

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

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

関連するコンテンツ