ELB - Elastic Load Balancing Flashcards
What is an ELB?
EC2 Load balancer is a managed load balancer.
Load balancers are servers that forward internet traffic to multiple servers (EC2 Instances) downstream.
• It costs less to set up your own load balancer but it will be a lot more effort on your end.
• It is integrated with many AWS offerings/services.
Why is useful ELB Health Checks?
They enable the load balancer to know if instances it forwards traffic to are available to reply to requests
How does the ELB Health Check works?
- The health check is done on a port and a route (/health is common)
- If the response is not 200 (OK), then the instance is unhealthy
What are the 3 kinds of managed Load Balancers?
- Classic Load Balancer
- Application Load Balancer
- Network Load Balancer
How would you create ELB SGs?
ELB SG: receive HTTPS and HTTP from anywhere and restrict EC2 instances behind the ELB to accept just ELB SG private HTTP requests on port 80
Can you scale an ELB?
Yes, but not instantaneously, you need to contact AWS for a “warm-up”
What means ELB 503 error?
At capacity or no registered target
What to do if your ELB can’t connect to your appllication?
Check your SGs
What can you use for ELB monitoring?
ELB access logs and CloudWatch Metrics
What does provide a Classic Load Balancer?
It provides a fixed hostname and basic load balancing across multiple Amazon EC2 instances
At what level does operate a Classic Load Balancer?
operates at both the request level (layer 7, HTTP, HTTPS) and connection level (layer 4, TCP)
What is intended for a Classic Load Balancer?
is intended for applications that were built within the EC2-Classic network
What does provide an Application Load Balancer?
It provides a fixed hostname and advanced request routing to target groups based on request:
- path
- hostname
- query string, headers
At what level does operate an Application Load Balancer?
operates at request level (layer 7, HTTP, HTTPS, WebSocket)
What is intended for an Application Load Balancer?
modern application architectures, including microservices and containers
What would you need roughly to replace an Application Load Balancer in front of several applications with a Classic Load Balancer?
multiple Classic Load Balancer per application
What feature does provide an Application Load Balancer to communicate to ECS?
A port mapping feature to redirect to a dynamic port in ECS
What are the Application Load Balancer’s target groups?
- EC2 instances (can be managed by an ASG) – HTTP
- Lambda functions – HTTP request is translated into a JSON event
- IP Addresses – must be private IPs