Skip to main content

πŸ›‘οΈ AWS ECS Service is overutilized🟒

Stats​

not available

Logic​

Description​

Open File

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 INCOMPLIANT if CloudWatch: CPU Utilization, 14-Day or CloudWatch: Memory Utilization, 14-Day is at least 80%. An eligible service is COMPLIANT if 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​

Open File

Remediation​

Right-Size the ECS Service​

  1. 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.
  2. 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.
  3. 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​

Open File

Linked Framework Sections​

SectionSub SectionsInternal RulesPoliciesFlagsCompliance
πŸ’Ό Cloudaware Framework β†’ πŸ’Ό Resource Right-Sizing26no data
πŸ’Ό Cloudaware Framework β†’ πŸ’Ό Workload Efficiency31no data