I have a quick question about the scaling of prefect ECS agents and clusters of Fargate type. How exactly does it work? Is it automatic scaling or do I have to configure the auto scaling for ECS clusters myself?
02/15/2022, 8:55 PM
When you use FARGATE as launch type, it's serverless so you don't have to do anything, it scales automatically.
02/15/2022, 9:19 PM
ok thank you! Also, is there any way to limit the scaling of the service or is everything just automatic?
02/15/2022, 9:34 PM
it's automatic because it's serverless - AWS provisions resources on demand when they are needed. So you really run (and pay) only for what you use. But if you need more customization and you want to manage the resources yourself, you can switch to EC2 launch type
02/15/2022, 10:00 PM
I just noticed you said scaling of agents. If you are deploying the agent as a Service, you can have scaling based on the workload. But really, the agent is a lightweight stateless process so you only need one copy of it running a time unless you have something going on like dev, stating, prod