Skill 3.1.3

Implement rightsizing and scaling strategies based on performance metrics (for example, by using AWS Compute Optimizer, scheduled scaling, target tracking policies, AWS Fargate Spot).

Key Concepts

Collect utilisation (CloudWatch agent for memory), use Compute Optimizer recommendations for EC2, ASGs, EBS, Lambda, ECS on Fargate and RDS, and consider Graviton and newer generations.

Rightsize before committing to Savings Plans, review regularly, and automate where possible (for example, scheduled scaling for non-production).

Scaling for cost: scheduled scaling shrinks non-production environments outside working hours and pre-scales for known peaks; target tracking keeps utilisation at an efficient level such as 60% CPU; and Fargate Spot runs interruption-tolerant ECS tasks at up to about 70% discount, mixed with Fargate On-Demand through capacity provider strategies so a base of tasks stays on On-Demand.