Section 7: ELB & ASG Flashcards
Scalability is
the ability to accommodate a larger load by making the hardware stronger (scale up), or by adding nodes (scale out)
Vertical Scalability is
The increasing in size of an instance.
Horizontal Scalability is the same as
Elasticity
What is Horizonal Scalability?
It is the increase of the number of instances/systems for an application.
Vertical scalability is useful for
Distributed systems such as a database
High availability is the ability to
Run instances for the same application across multi AZ
Load Balancers are
Servers that forward internet traffic to multiple
servers (EC2 Instances) downstream
Why use a load balancer?
*Spread load across multiple downstream instances
*Expose a single point of access (DNS) to your application
*Seamlessly handle failures of downstream instances
*Do regular health checks to your instances
*Provide SSL termination (HTTPS) for your websites
*High availability across zones
ELB is
An AWS managed load balancer
Application Load Balancer
- HTTP / HTTPS / gRPC
protocols (Layer 7) - HTTP Routing features
- Static DNS (URL)
Network Load Balancer
- TCP / UDP protocols
(Layer 4) - High Performance: millions of
request per seconds - Static IP through Elastic IP
Gateway Load Balancer
- GENEVE Protocol on
IP Packets (Layer 3) - Route Traffic to Firewalls that
you manage on EC2 Instances - Intrusion detection
The goal of an Auto Scaling Group (ASG) is to
- Scale out (add EC2 instances) to match an increased load
- Scale in (remove EC2 instances) to match a decreased load
- Ensure we have a minimum and a maximum number of machines running
- Automatically register new instances to a load balancer
- Replace unhealthy instances
Manual Scaling
Update the size of an ASG manually
Dynamic Scaling
Respond to changing demand