【发布时间】:2023-01-06 21:29:48
【问题描述】:
I'm running Superset in AWS ECS using Fargate. This instance of Superset is for internal use only. I want to be able to configure ECS to scale to zero tasks when not in use. I am aware that it will take time (Possibly minutes) to come back up, the end-users of this application are content with waiting a few minutes.
Situation:
- AWS ECS deployed using Fargate
- Autoscaling set to a max of 2 and a min of 0
- Want to scale to 0 when not in use (after, say, an hour)
【问题讨论】:
-
This isn't something ECS supports. It has nowhere to store the new "requests" that come in while it spins up new instances. If there are 0 instances then the requests would simply be discarded. You would need to look into AppRunner for this functionality.
标签: amazon-ecs aws-fargate aws-application-load-balancer