ELB (Elastic Load Balancing) & ASG (Auto Scaling Group) Flashcards
High Availability
That means that you have your applications across multiple availability zones (AZ)
Scalability
There is vertical and horizontal scaling.
Vertical scaling means that you increase the size of your instance and horizontal scaling means that you increase the number of your instances.
Elasticity
This means that you are able to scale up and down depending on demand.
Agility
Concept of the cloud, that enables you to work faster because you can create and delete resources very quickly.
ELB
Elastic Load Balancers allow us to distribute traffic across the backend of your EC2 instances. The ELB and the EC2 instances can be set up across multiple AZ, therefore, enabling us to be highly available. ELBs support health checks to make sure that the EC2 instances in the backend are working.
Types of Load balancers
1) Application Load balancer (HTTP - Layer 7)
2) Network Load balancer (TCP - Layer 4)
3) Classic Load balancer
ASG
When we distribute the traffic to multiple EC2 instances it is good for us to scale them through an auto scaling group (ASG).
ASG uses horizontal scaling to add instances across multiple availability zones, replaces unhealthy instances (EC2s), and automatically registers new instances to a load balancer.
ASG can add or remove instances of the same type. They cannot chance EC2 Instance Types on the fly.
Auto Scaling Strategies
Auto Scaling Strategies include: Manual Scaling, Dynamic Scaling (Simple/Step Scaling, Target Tracking Scaling, Scheduled Scaling), and Predictive Scaling.