đHow to add Auto Scaling in AWS for Resources when Network Traffic is Heavy
Introduction
Amazon EC2 Auto Scaling helps you ensure that you have the right number of instances The right Amazon EC2 is available to handle the load for your application. You make collection of EC2 instances, called Auto Scaling Groups. You can specify a minimum amount instances in each Auto Scaling group, and Amazon EC2 Auto Scaling ensures that your groups never goes below this size. You can specify the maximum number of instances in each Auto Scaling group, and Amazon EC2 Auto Scaling ensures your groups are never in above this size. If you specify the desired capacity, fine when you create the group or any time afterward, Amazon EC2 Auto Scaling ensures your group has plenty of this instance. If you specify a scaling policy, then Amazon EC2 Auto Scaling can launch or stop instances when demand on your application increases or decrease.
You can create EC2 auto-scaling groups, a collection of EC2 instances. Set a minimum scaling value so that the group is never smaller than the specified size (if an instance fails, it is replaced). Set a maximum number of EC2 instances and the group will not exceed the specified size.
In addition, you can:
Manually add or remove EC2 instances from auto scaling groups (this is called manual scaling)
Change minimum or maximum capacity of a group on a predefined schedule
Set scaling plans that dynamically scale groups up and down
Configuration AWS
Create new Security Group
Create Target Groups
Create Load Balancer
Create Launch Template
Create Auto Scaling Group
Configuration is Completed
Trials :
Go to the Instances menu, make sure there is 1 EC2 instance created automatically.
wait until the status is running and 2/2 checks passed, (-+ 5 minutes)
Access the web via Elastic Load Balancer DNS
Run Load Test
Check again in the instances menu, now 2 new instances have been added (scale up).
Terminate all instances and wait a while.
There will be 1 new instance
Last updated