How do I use Auto Scaling to improve the fault tolerance of an application behind my load balancer?
Last updated: 2022-06-20
I want to improve the fault-tolerance of my application that's running on Amazon EC2 instances behind a load balancer. How do I use Auto Scaling to do that?
Elastic Load Balancing (ELB) supports the following types of load balancers: Application Load Balancer (ALB), Network Load Balancer (NLB), and Classic Load Balancer (CLB). If you have a preexisting load balancer, you can create an Auto Scaling group to automatically terminate unhealthy instances and launch new, healthy ones. In addition to improving the fault tolerance of your application, you can configure Auto Scaling to dynamically scale up your application in response to demand.
You can create an Auto Scaling group that launches copies of instances you’ve already configured. You can also create a launch configuration that uses an Amazon Machine Image (AMI) instead. After you create the Auto Scaling group, attach your load balancer to it.
Note: You must create your Auto Scaling group in the same Region and Availability Zone as your load balancer.