Skip to main content

AWS Scaling (Reactive VS Proactive VS Predictive)




In terms of Amazon Web Services (AWS), scaling refers to adjusting of computing resources in order to maintain performance of application hosted under AWS. It is simply done by increasing the number of EC2 instances or also by scaling additional resources for other AWS services. With AWS scaling, your application will always have the right resources at the right time.

There are mainly three types of scaling that you can do on AWS namely; Reactive Scaling, Proactive Scaling and Predictive Scaling.

Reactive Scaling (AWS Auto Scaling)
AWS Reactive Scaling, or also called Auto Scaling simply monitors your applications and adjusts its capacity to maintain optimum performance at supposedly minimum cost. It is free of cost and  can easily be setup with less hassle.
With the AWS Auto Scaling service, you can configure one unified scaling policy per application source. Then, you can add each scalable resource that supports your application to the scaling plan, and define the utilization targets based on which those resources should scale. You can choose to prioritize application availability, cost optimization or a combination of the two.
AWS Auto Scaling is simply maintaining the performance of application as per increased usage or traffic or load. It can be highly useful to those applications in which traffic keeps going up and down with no absolute pattern and thus, want to maintain performance with less of a hassle. One can simply set minimum size and maximum size and threshold values, like when to scale up and when to scale down, rest is handled by AWS. It ensures you always have correct number of EC2 instances available to handle load for your application.
For example, the following Auto Scaling group has a minimum size of 1 instance, a desired capacity of 2 instances, and a maximum size of 4 instances. The scaling policies that you define adjust the number of instances, within your minimum and maximum number of instances, based on the criteria that you specify like, increase instances when traffic increases to 80% and decrease when traffic decreases to 20%.

   An illustration of a basic Auto Scaling group.
(c) AWS

Proactive Scaling (Scheduled Scaling)
As it sounds from the name, proactive or scheduled scaling allows you to scale your application resources based on known load that will appear on future. For example, lets say, your application is heavily used on weekends and less used on other days. You might not want to use high number of EC2 instances or use large amount of resources just because for the weekend loads. So, better approach would be using scheduled scaling.
With scheduled scaling, one can set when to increase the capacity or number of EC2 instances and when to decrease. At the specified time, AWS scales with the values for minimum, maximum, and desired size specified by the scaling action. It might be useful for those applications where it is known that when there will be increased load and when there will be decreased. Image result for aws scheduled scaling
(c) SlideShare

Predictive Scaling
Predictive Scaling is the newest addition to AWS scaling feature. It uses machine learning to predict usage of application in future and thus changes done accordingly. It collects data from your actual EC2 instance along with billions of other data points and uses well trained machine learning models to predict your expected traffic or EC2 usage from daily to weekly patterns. In order to maintain accuracy, the model needs at least data of a day and then data is re-evaluated every 24 hours.
It might be useful for those applications where traffic pattern hard to understand and still you want to optimize the servers as accurately as possible. It can also be regarded as much accurate version reactive scaling. But unlike, reactive scaling you can see the traffic load up ahead. What I mean by this is, you can easily see the traffic usage on your application for lets, say tomorrow or the day after.
Like other scaling, there is no additional costs involved and currently, it only supports for EC2 instances. But one thing to keep in mind is, it is only suitable for those applications that undergo periodic traffic spikes, so it might not be useful for those application where traffic cycles are not predictable. In simple words, it is not suitable for those application which gets highly random amount of traffic.

Image result for aws predictive scaling
(c) AWS



Note: A customer does not pay to use the AWS Auto Scaling service, but does pay for the resources it scales and services it uses

Comments

  1. Aw, this was a really nice post. Taking a few minutes and actual effort to create a great, It's awesome to pay a visit this web site and reading the views of all friends regarding this. also, check my post on why Google Cloud vs AWS, The Remarkable Truth About Them

    ReplyDelete

Post a Comment

Popular posts from this blog

QFX Nepal the REVIEW

OK, lets start this straight! If you are an average Nepali, then it is likely that you have come over the name QFX. QFX!! which no one knows the full form of was founded by 3 people Rajesh Siddhi, Bhaskar Dhungana and Nakim Uddin. Story of QFX dates to back then when there was no suitable and proper place for watching movies. And guess what, they struck the iron when it was hot. And then, the rest is all history. However, many people seem to be having various issues with QFX, mainly with its ticket pricing strategy and of course never to miss, its food price. The smart ticket pricing technique of QFX that charges lower price for morning shows and higher for evening ones and also more higher during weekends. Yeah its a smart strategy in deed, but they pushed it way too far. The price variation is way too far. The ticket price ranges from as low as Rs. 190 to a staggering Rs. 410 and that's not considering that QFX charges more for 3D movies. Imagine the price gap out here. Maybe ...

Fateko Jutta : Is it worth watching?

Fateko Jutta; starring Saugat Malla was one of the hyped movie in Nepal. Got a chance to watch the movie yesterday and now here is the review. Warning: SPOILERS ALERT Directed by Naresh Khadka and produced by Arjun Kumar, movie shows the story of people living in Terai area. Movie seems to be quite typical starting with the death of the father of Saugat Malla, which was of course a horrible beginning. Then, movie directly jumps to 20 years in future where Saugat Malla grows up and with his gang of his three bakwas friends who moves around terai stealing hens and selling other's buffalo. Must say, the movie was quite dramatic. The story of movie was not making any sense at all. There was just comedy and epic acting of Saugat. The worst part about movie was ending where all of the three people (Saugat Malla and his two friends) end up becoming wanted, which of course made no sense at all because there was no way of becoming them to be wanted by police as police had already c...