- Newest
- Most votes
- Most comments
Capacity Providers do use ASG underneath. They are just a way to make ECS "ASG aware". Prior to CP ECS would have no idea that ASG existed and viceversa. My suggestion would be to watch this re:Invent presentation about the announcement of Capacity Providers because it provides a lot of background re what they are and what their value is (Vs using raw ASGs).
As mreferre said, the CP drives the ASG capacity based on the services' task definitions which express CPU/RAM requirements for the tasks to run for that service. Instead of having to do complex logic into your CW Alarms etc. driving the ECS instances provisioning / deprovisioning, ECS deals with that for you to maintain available compute resources to satisfy services scaling.
Mind you though, for your capacity providers strategy, you can't mix-and-match FARGATE with AS capacity providers. See https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-capacity-providers.html#capacity-providers-considerations
I see. Yeah that makes sense, Fargate is meant to be a severless service. Thanks for your help, I'll read through the documentation you sent over
Given that re:Post showed this question whilst answering another one, linking to it for posterity: https://repost.aws/questions/QU0UOJ8gczSkWlXTztwrF-ow/ecs-capacity-providers-best-practices
Relevant content
- asked 3 years ago
- asked 3 years ago
- asked 2 years ago
- asked a year ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 23 days ago
- AWS OFFICIALUpdated a month ago
I see. Thanks for clarifying, I'm watching the video now (: