Memory-Based Auto Scaling: Saving Our Sidekiq Jobs When CPU Metrics Lied to Us
dev.to·1d·
Discuss: DEV
📊Memory Profilers
Preview
Report Post

We usually just default to CPU-based scaling for our Auto Scaling Groups (ASGs). It’s the standard move. It’s easy, it’s familiar, and for web servers? It usually works fine.

But sometimes, CPU utilization lies.

We recently hit a wall where CPU scaling completely failed us. This is the story of how a critical background job kept crashing even though our dashboards said everything was "healthy," and how switching to memory-based metrics saved the day.

The Silent Failure

We run a Ruby on Rails app. It relies heavily on Sidekiq for background work. These workers run on EC2 instances in an Auto Scaling Group.

On paper, everything looked great. CPU usage? A comfortable 20–30%. Network? Normal. Disk? Fine. AWS said we were green.

**But the app was on fire...

Similar Posts

Loading similar posts...