ECS 集群缩减任务基于 CPU/memory

ECS cluster scale in / out tasks based on CPU/memory

我有一个问题陈述。谁能帮我解答一下。

You have a Microservice running in your ECS cluster.
How would you manage below tasks. (Use terraform)
   a. You want to scale in/out the tasks based on CPU/Memory utilisation
   b. You want to scale in/out the tasks based on the requests made to the service

Fargate 上的 ECS 服务扩展解释如下:

a.You want to scale in/out the tasks based on CPU/Memory utilisation

您使用 ECSServiceAverageCPUUtilizationECSServiceAverageMemoryUtilization

b.You want to scale in/out the tasks based on the requests made to the service

您使用ALBRequestCountPerTarget.