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 réponse
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
INGÉNIEUR EN ASSISTANCE TECHNIQUE
répondu il y a un an

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