load balancer
A load balancer serves as the single point of contact for clients. The load balancer distributes incoming application traffic across multiple targets, such as EC2 instances, in multiple Availability Zones. This increases the availability of your application. You add one or more listeners to your load balancer.
- load balancer listener forward to target group
- in target group has list of EC2 list
- Auto scalling also connected to target group
- when auto scalling increase/decrease ec2, it also affect to load balancer target group
Autoscaling:
Autoscaling, also spelled auto scaling or auto-scaling, and sometimes also called automatic scaling, is a method used in cloud computing, whereby the amount of computational resources in a server farm, typically measured in terms of the number of active servers, which vary automatically based on the load on the farm.
- Before auto scalling you need to creat launch configuration that actually take my AMI (amazan machine image)
- after than using this launch configuration, auto scalling group created