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
demandé il y a 6 mois560 vues
2 réponses
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
EXPERT
répondu il y a 6 mois
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
répondu il y a 6 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions