<< Back

Troubleshooting ECS EC2 Over-Scaling with Custom Metrics

This article explores unexpected EC2 over-scaling when using ECS with step scaling policies based on a custom CloudWatch metric.

The Problem

When a custom metric triggered task scaling in ECS, the number of EC2 instances scaled up more than expected. For example, one ECS task would require just one EC2 instance, yet two or more were provisioned. Extra instances would eventually be shut down, but only after 40–50 minutes.

Root Causes and Findings

Implemented Fixes

Additional Considerations

References

↑ Back to Top