|
- create a launch configuration
- test that it can launch your ec2 instance, then terminate the instance
- Create Auto Scaling Group, using existing launch template and select the template you created earlier
- Set the Desired, Min, Max AZ, Subnets
- Add scaling policy set to Average CPU Utilization at your desired %, specify the warm up time for the instance
- In the running instances, install stress
sudo su -
yum install -y stress
stress --cpu 1 -v --timeout 300
- Watch CPU utilization from CloudWatch, it will start to peak
- Notice the new instances added by auto scaling
|
|