How to Implement AutoScaling on AWS.

aws-logoOn AWS Cloud we can configure Auto Scaling to handle lots of traffic to our environment. With AutoScaling we can save a lot of money for our infrastructure. It will Scale Up and Scale down automatically according to our defined matrix. So whenever a high traffic or load will come to your infrastructure it will Scale up itself and when the traffic/ load will decrease it will Scale down itself. No need to pay for a big infrastructure all the time.

TO create an AutoScaling environment we have to follow the below steps:

This environment is for a Web Server Group and I am using a Load balancer for it. In this example I will name my environment as below and you can modify it as your requirements:

Creating Launch Configuration:

Verify Lauch Configuration:

Creating Autoscaling Group

Verify Autoscaling Group

Autoscale Policy has 3 Options

1.Maintain a fixed number of instances
2.Scale UP and Down based on the demand
3.Scale UP and Down based on schedule

In this example we will go with “Scale Up and Down based on the demand”. I will post an another blog for “Scale Up and Down based on schedule”

Creating a Scale Up Policy:

Creating a Scale Down Policy:

That’s it. Now you have a complete Auto Scaling Environment which will Scale up 2 instances when the CPU Load will increase up to 80% for 5 minutes and will Scale down 2 instances when the CPU Load will decrease up to 50% for 5 minutes.

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
The following two tabs change content below.

Tapas Mishra

Sr. Engineer (DevOps)
Loves to work on Opensource products. Having experience on Linux environment. Knowledge on Public cloud services like AWS, Rackspace, DigitalOcean, Linode. Please don't hesitate to give a comment on the posts. Your comments are my strength.

Leave a Reply