How many cores does ECS Fargate have.

0

I am trying to run python multithreading in task form on ECS Fargate. How many cores does Fargate have per CPU?

daniel
已提問 6 個月前檢視次數 560 次
2 個答案
0

Hello.

Although it is in Japanese, there was someone who was conducting a verification to check the number of CPU cores on ECS Fargate.
I think the following information will be helpful.
https://gist.github.com/nabeken/97a54cc98ae6892910df4b4b265b4fdd

profile picture
專家
已回答 6 個月前
0

Hi, thanks for reaching out. You can check the number of cores by running the below Python code on your task:

import os
print(os.cpu_count())

Or you can check it with the aws cli:

aws ecs describe-task-definition --task-definition my-task-def --query taskDefinition.cpu --output text

The number of cpu cores will vary depending on cpu size. I hope this helps.

AWS
Steve T
已回答 6 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南