Hi everyone, I have a quick question about the sc...
# ask-community
d
Hi everyone, 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?
a
When you use FARGATE as launch type, it's serverless so you don't have to do anything, it scales automatically.
d
ok thank you! Also, is there any way to limit the scaling of the service or is everything just automatic?
a
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
k
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