Auto Scaling hurekebisha kiotomatiki idadi ya rasilimali zinazoendeshwa (k.m. EC2 instances) kulingana na mahitaji — kuongeza uwezo wakati mzigo unaongezeka na kuuondoa wakati mzigo unapungua. Ni ufunguo wa kujenga programu zinazoaminika (kushughulikia mipasuko ya trafiki) na zenye ufanisi wa gharama (kutozidisha uandaaji).
Auto scaling hufanya nini
Auto Scaling adjusts capacity AUTOMATICALLY based on demand:
→ load INCREASES (traffic spike) → add instances (scale OUT) → handle the load
→ load DECREASES → remove instances (scale IN) → save money
→ Match capacity to demand automatically: reliable under load, cheap when idle.
EC2 Auto Scaling Groups (ASG)
An AUTO SCALING GROUP manages a fleet of EC2 instances:
MIN / MAX / DESIRED capacity → bounds and target number of instances
LAUNCH TEMPLATE → how to launch new instances (AMI, type, config)
SCALING POLICIES → rules for when to scale (see below)
HEALTH CHECKS → replace unhealthy instances automatically (self-healing!)
→ typically spread across multiple AZs (high availability)
