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

MaryJ
posta un anno fa270 visualizzazioni
1 Risposta
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
TECNICO DI SUPPORTO
con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande