[ SRE_ARENA ]
COMPUTE (EC2 & ASG)

Compute: EC2 and Auto Scaling

DOWNLOADING CONCEPT: 1. EC2 INSTANCE FAMILIES...
  • ↳Amazon Elastic Compute Cloud (EC2) provides resizable compute capacity.
  • ↳Instead of buying physical hardware, you rent virtual machines by the second.
  • ↳AWS categorizes them into families:
  • ■T-Series (Burstable): Cheap, great for testing. They accumulate 'CPU Credits' when idle, and spend them when CPU spikes. If you run out of credits, performance tanks.
  • ■M-Series (General): Balanced CPU and RAM (e.g., Web Servers).
  • ■C-Series (Compute): High performance processors (e.g., Video Encoding, Gaming).
  • ■R-Series (Memory): High RAM (e.g., In-Memory Caches, Databases).
▲ LIVE INCIDENTYour Auto Scaling Group is constantly 'flapping'. It launches 5 new servers, then 5 minutes later it terminates them, then 5 minutes later it launches them again. Your AWS bill is skyrocketing.
sre@arena:~/cloud-ec2
sre@arena:~$ aws autoscaling describe-policies --auto-scaling-group-name api-asg