Create loadbalancer and Target group(with no instances).
launch configurations group and then create auto scaling group.
Give the desired instances all the mandatory things..
Then give task to auto scale group to create the instances.
and perform some tasks on instance based on traffic...deleting
instances and creating the instances automatically...
Let's do this crazy task...
1.First create the loadbalancer and Target group.
2.Now choose launch configurations and give
which ami the autoscale will launch with instances.
3.Create autoscaling group.
Enter the alarm metric valu 15 of cpu percentage
if the cpu utilization is lessthan 20 it will automatically remove the instance
this is the action we gave to the auto scaling group
lets see it will do or not...
check it terminated the one instance which contais i-03....
why this instance only... because it is running for long time
and which is near to hour it will take an action of teminate on that instance
Now you got the concept .....of autoscalingroup how it will
0 Comments