QuestionQ11

VerifiedDesign Resilient Architectures

A company's application runs on Amazon EC2 instances behind an Application Load Balancer (ALB). The instances run in an Amazon EC2 Auto Scaling group across multiple Availability Zones. On the first day of every month at midnight, the application becomes much slower when the month-end financial calculation batch runs. This causes the CPU utilization of the EC2 instances to immediately peak to 100%, which disrupts the application.

What should a solutions architect recommend to ensure the application can handle the workload and avoid downtime?

Explanation

Amazon EC2 Auto Scaling scheduled scaling is the correct solution for a workload increase that occurs at a known recurring time. AWS documentation states that scheduled scaling is useful when you know exactly when to increase capacity because the need arises on a predictable schedule, and recurring schedules can be created for those times. In this case, increasing Auto Scaling capacity before midnight on the first day of each month lets the fleet absorb the batch-processing spike without waiting for CPU-based reactive scaling to trigger.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!