- Newest
- Most votes
- Most comments
Hello Fernando!
The issues you're experiencing with ECS deployments may stem from discrepancies between the service configuration and the settings defined in the Auto Scaling Group (ASG) and Capacity Provider. ECS typically launches the desired number of tasks (in your case, 2) according to the deployment policy. However, if there is a mismatch between the desired tasks and the ASG's minimum/maximum capacity, it could cause ECS to run fewer tasks than expected.
To resolve this, ensure that the desired capacity in your ECS service matches the configuration in your ASG and Capacity Provider. The ASG's capacity should support the number of tasks defined in the ECS service to avoid under-provisioning. Additionally, check that all network and scaling settings are consistent across the service, capacity provider, and ASG.
I'm here to help!
Hi, thanks for the feedback.
I understand what you've said, however, these figures often (or almost never) reflect the symmetry between the services (ASG, Tasks and Services), as the demand for each is different.
What I set out to question is that the numbers or values reported there are not configured in any of the declared services - they are not configured in the ASG, Tasks or services.
My question is: where are these values being retrieved from, since they are not the same as those configured in the related services/components?
answered 2 years ago
For example, I'm showing the ASG and task logs of another service in the same cluster:
ASG settings:
Task definitions:
In the window of the selected service, when you select the tab labeled “Configuration and Networking”, in the section labeled “Auto Scaling”, the values you see are different from the ones I mentioned above:
I haven't provided an image of the Capacity Provider, because the number of tasks and/or instances is not configured in it.
answered 2 years ago
Relevant content
asked 2 years ago
- AWS OFFICIALUpdated 5 months ago
