π‘οΈ AWS ECS Service is overutilizedπ’
- Contextual name: π‘οΈ Service is overutilizedπ’
- ID:
/ce/ca/aws/ecs/service-overutilized - Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
COST,PERFORMANCE
Statsβ
not available
Logicβ
- π§ prod.logic.yamlπ’
- π AWS ECS Service
- π AWS ECS Service - object.extracts.yaml
- π§ͺ test-data.json
Descriptionβ
Descriptionβ
Identify running Amazon ECS services that need a capacity review because CPU or memory use averaged high relative to task resources over 14 days.
Rationaleβ
Sustained CPU or memory pressure can indicate limited per-task capacity, too few replicas, or an autoscaling or placement constraint. Service metrics measure utilization against task allocations. CPU usage can exceed a container-level share and memory can exceed a soft reservation. Use throttling, task stops, latency, or errors to assess operational impact.
Auditβ
This policy marks an AWS ECS Service as
INCOMPLIANTif CloudWatch: CPU Utilization, 14-Day or CloudWatch: Memory Utilization, 14-Day is at least 80%. An eligible service isCOMPLIANTif both averages are below 80%.The policy evaluates ACTIVE services with REPLICA scheduling that were created at least 14 UTC calendar days ago. Running Count must be positive and match Desired Count, and Pending Count must be zero. Assessment requires both 14-day averages.
Remediationβ
Remediationβ
Right-Size the ECS Serviceβ
- Review CPU and memory utilization, running task counts, and recent deployments in CloudWatch and Amazon ECS. Check peaks and metric coverage across a representative workload cycle. Compare utilization with latency, errors, and task health.
- Check the resource identified by the finding. For CPU, look for throttling and sustained demand. For memory, compare usage with the configured reservation and hard limit, and check for out-of-memory task stops. If both averages are high, review both resources before choosing a change.
- Increase per-task resources when individual tasks are constrained. Add replicas when the workload can distribute demand across more tasks. Review Service Auto Scaling limits and service placement events. For ECS on EC2, confirm that the cluster can place the additional or larger tasks, including during deployment.
Record the current task definition ARN, desired count, and scaling settings. Test the proposed capacity under representative load. For services managed through infrastructure as code, apply the change through the existing deployment process.
... see more
policy.yamlβ
Linked Framework Sectionsβ
| Section | Sub Sections | Internal Rules | Policies | Flags | Compliance |
|---|---|---|---|---|---|
| πΌ Cloudaware Framework β πΌ Resource Right-Sizing | 26 | no data | |||
| πΌ Cloudaware Framework β πΌ Workload Efficiency | 31 | no data |