AWS Fundamental (Load Balancing/ASG/EBS) Flashcards
Vertical Scalability
Increase the size of one instance
Horizontal Scalability
Increase the number of instances - ASG/LB
High Availability
Running your applications/instances across AZ/regions - ASG/LB multi-AZ
Load Balancing
Forward internet traffic to multiple servers
- spreads load across multiple instances
- simple point of entry (DNS)
- seamlessly handle downstream failures
ELB
EC2 Load Balancer is a managed load balancer
Types of ELB
Classic, Application Load Balancer (ALB), Network Load Balancer (NLB)
Application Load Balancers
- Fixed hostname (XXX.region.elb.amazonaws.com)
- Great for microservice & container based solutions
- Can target EC2 instances, ECS tasks, lambda functions and IP Addresses
Network Load Balancers
- Forward TCP and UDP traffic
- Can handle millions of requests per second
- Less latency than an ALB
- One static IP per AZ
- Used for extreme performance
Load Balancer Stickiness
Redirect clients to the same instance
- ensures users do not lose session data
- can bring imbalance to the EC2 instances
Cross Zone Load Balancing
Manage loads across AZ
SNI
Server Name Identification - solves the problem of loading multiple SSL certificates onto one web server
Fetches the appropriate SSL certificate based on the hostname requested
ELB Connection Draining
When an instance stops, the time allowed to complete a request before deregistering the instance
Auto scaling Group
Scale EC2 instances on demand
Auto scaling Alarms
Scale ASG based on cloudwatch alarms where an alarm watches a metric (CPU)
- Target Tracking: base it on a simple metric i.e. CPU
- Step/Simple Scaling: More custom, base it a cloudwatch alarm