High Availability & Scalability: ELB & ASG Flashcards
An application/system can handle greater loads by adapting
Scalability
What are two types of scalability
Vertical
Horizontal (elasticity)
Vertical Scalability means..
Increasing the size of an instance
Horizontal scalability means..
Increasing the # of instances/systems for your application
Horizontal scaling implies what?
Distributed systems
What is the goal of High Availability?
To survive a data center loss
Scale up/down
Vertical Scaling
Scale in/out
Horizontal Scaling
Run instances for the same application across multi AZ
High Availability
A server that will forward traffic to multiple servers (e.g., instances) downstream
Load Balancing
Which is easier to use ELB or LB & why?
ELB because it’s managed by AWS & cost less
A way for your ELB to verify if your EC2 Instance is properly working?
Health Checks
The health check is done on a what? (2)
Port and a route
If the response is not (blank), then the instance is unhealthy
200
Health Checks are crucial for..
Load Balancers
Name the four types of Load Balancers
Classic LB
Application LB
Network LB
Gateway LB
Which Load Balancer is deprecated?
CLB
- Supports TCP (Layer 4), HTTP & HTTPS (Layer 7)
- Health checks are TCP or HTTP based
- Fixed host name XXX.región.elb.amazonaws.com
What LB type is this?
CLB
Due to AWS changes, instead of modifying the rule, you must
1) Delete existing HTTP rule
2) Create a new rule with the ‘source’ being the CLB security group
- Load balancing to multiple HTTP applications across machines (target groups)
- Load balancing to multiple applications on the same machine (ex. Containers)
- Support for HTTP/2 & WebSocket
- Support redirects (from HTTP to HTTPS for example)
What LB type is this?
ALB
- Great fit for micro services & container based application (ex. Docket & Amazon ECS)
- Has a port mapping feature to redirect to a dynamic port in ECS
What LB type is this?
ALB
What are NLBs used for?
Extreme Performance
TCP
UDP traffic
- Layer 4
- Forward TCP & UDP traffic to your instances
- Less latency ~ 100 ms
- Has one static IP per AZ
- Supports assigning Elastic IP (helpful for whitelisting)
What LB type is this?
NLB
What does TCP stand for?
Transmission Control Protocol
A communications standard that enables application programs and computing devices to exchange messages over a network
TCP
A communication protocol used across the Internet for especially time-sensitive transmissions such as video playback or DNS lookups.
UDP
What does UDP stand for?
User Datagram Protocol
- Deploy, scale, and manage a fleet of 3rd party network virtual appliances in AWS
- Firewalls, Intrusion Detection and Prevention Systems, Deep Packet Inspection Systems, payload manipulation
- Operates at Layer 3 (Network Layer) - IP Packets
What LB type is this?
Gateway LB
Uses the GENEVE protocol on port 6081
What LB is this?
Gateway
Single entry/exit for all traffic
Transparent Network Gateway
Stickiness works for which LBs?
ALB & CLB
What is the use case for sticky sessions?
Make sure the user doesn’t lose his session data
The same client is always redirected to the same instance behind a load balancer
What is this called?
Sticky sessions
Name the two types of cookies
Application & Duration based