AWS Builder Center

AWS Builder Week 2026: Day 6 - Scaling & ELB

Key takeaways from Day 6 of the AWS Student Builder Week on Auto Scaling, Load Balancing, and CloudWatch.

1. High Availability via AWS Auto Scaling

When a server hits 100% CPU capacity, it rejects requests and causes downtime. AWS solves this through horizontal scaling.
  • Vertical vs. Horizontal Scaling: Vertical scaling increases a single server's size (e.g., changing from a T3.micro to a C4.xlarge), which requires a manual stop/start process. Horizontal scaling adds or removes identical servers. AWS Auto Scaling scales horizontally.
  • Auto Scaling Policies:
  • Manual: Manually setting server counts.
  • Scheduled: Scaling at planned times (e.g., right before a massive event).
  • Predictive: Using 3 months of historical data to forecast capacity needs.
  • Dynamic: Real-time scaling. Includes Step Scaling (adding specific numbers of instances at set thresholds) and Target Tracking (maintaining a precise metric target, like 50% CPU usage).
  • Core Configuration Settings:
  • Capacity Limits: Managed using Minimum, Desired, and Maximum instance counts.
  • Cooldown & Grace Periods: A cooldown period pauses further scaling actions to let new instances stabilize, while a grace period delays health checks until the instance fully boots.
  • AZ Balancing: Balanced Only strictly keeps instances equal across Availability Zones (AZs). Balanced Best Effort prioritizes cross-AZ balance but allows launching in another AZ if one fails, keeping the application online.

2. Traffic Distribution with Elastic Load Balancing (ELB)

A load balancer sits in front of your backend pool to distribute user traffic evenly, preventing individual instances from overloading.
  • Application Load Balancer (ALB): Works at Layer 7 (HTTP/HTTPS). It enables advanced logic like Path-Based Routing (e.g., sending  /aws  to one server pool and  /gujarat  to another) and Host-Based Routing (subdomain filtering).
  • Network Load Balancer (NLB): Works at Layer 4 (TCP/UDP). It provides ultra-low latency and is built to handle millions of requests per second.
  • Gateway & Classic: Gateway Load Balancers manage third-party virtual security firewalls. Classic Load Balancers are legacy infrastructure and no longer recommended.

3. Monitoring Infrastructure with Amazon CloudWatch

Amazon CloudWatch acts as the core monitoring ecosystem for tracking performance metrics, checking logs, and triggering alarms.
  • Data Collection Intervals: Default EC2 monitoring provides data metrics every 5 minutes for free. Enabling Detailed Monitoring shortens this window to 1-minute intervals for a premium charge.
  • Host-Level vs. Custom Metrics: By default, CloudWatch tracks host metrics like CPU utilization, network traffic, disk activity, and general status health.
  • The RAM Exception: CloudWatch cannot see internal OS data like RAM (Memory) consumption out of the box. To track memory usage, you must install an agent and configure a Custom Metric to push that specific data to your dashboard.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article