Blog September 10, 2014

How to Handle Traffic Spikes with AWS

One of the top reasons companies are moving to AWS is the ease of scalability. Companies running news sites, promotional campaigns etc. can truly benefit from this ability. The challenge is that AWS instances don’t come pre-configured to handle traffic spikes right out-of-the-box. Let’s take a look at how a static environment vs. one set up with auto scaling handles traffic spikes.

In this example, the environment contains an elastic load balancer (ELB) along with three elastic computing cloud (EC2) instances. If left open to the internet during a high volume time period this AWS user would only be able to scale up to whatever traffic 3 instances can handle. TWhile this may be acceptable in some cases, often times it may result in downtime. In order to address this challenge an AWS user should introduce an Auto Scaling Group (ASG) to their infrastructure.

 

An ASG (s a policy applied to the load balancer that sets a certain threshold based on Network IO, CPU or memory of the instances), dictates the scaling. Once hit, it will spin off additional EC2 instances to power the site. There is also a reverse metric in the policy that says that once traffic is reduced back to normal levels (based on the metric you set in advance) the incremental EC2 instances will be removed so you are not paying unnecessary fees.

Common ASG settings include:

  • Standard number of instances– number of EC2 instances during normal traffic levels
  • Max number of instances– total number of instances the infrastructure can be scaled to
  • Minimum number of instances– there may be instances where a lower number of instances than the standard configuration are used

 

As part of Connectria’s Managed AWS services, our engineering team goes in and takes care of all the settings on the backend, so your site is ready to handle unexpected (or expected) traffic spikes without any glitches.

In the next write-up on auto-scaling, we will provide more detail on ways to design your application to utilize auto scaling effectively. If you would like to learn more about auto scaling or about Connectria’s AWS solutions please shoot us a note.

Related Resources

 
Disaster Recovery Options For The IBM i Series
In 2017, Forrester Research partnered with the Disaster Recovery Journal to look at the state of disaster recovery preparedness in today’s companies. The results were…
 
7 Signs You May Need Help With Your Azure or AWS Deployment
According to Cloud Computing Trends: 2017 State of the Cloud Survey, companies house 41% of their workloads in a public cloud like Microsoft Azure or…
 
6 Ways to Build a Better Relationship with Your MSP
Thinking of leveraging a “managed service provider” in 2019? You’re not alone! IDC’s 2017 research found that 30% of executives outsource at least some of…