DevOps.com

Where the world meets DevOps

  • Latest
    • Articles
    • Features
    • Most Read
    • News
    • News Releases
  • Topics
    • AI
    • Continuous Delivery
    • Continuous Testing
    • Cloud
    • Culture
    • DevSecOps
    • Enterprise DevOps
    • Leadership Suite
    • DevOps Practice
    • ROELBOB
    • DevOps Toolbox
    • IT as Code
  • DevOps Chats
  • Webinars
    • Upcoming
    • On-Demand Webinars
  • Library
  • Events
    • Virtual Summits
    • Conferences
  • Sponsored Communities
    • AWS Community Hub
    • CloudBees
    • IT as Code
  • Related Sites
    • MediaOps
    • Container Journal
    • Security Boulevard
    • SweetCode.io
    • Digital Anarchist
    • DevOps TV on YouTube
    • DevOps Chat on SoundCloud
    • DevOps Connect
    • DevOps Dozen
  • Media Kit
  • Follow Us
    • Twitter
    • Google News
    • LinkedIn
    • Facebook
    • DevOps TV on YouTube
    • Email
MENUMENU
  • AI
    • MLOps

      MLOp: More Than Automation

      Oracle observability platform

      Oracle Launches Observability Platform

      AIOps

      AIOps and the Myth of ‘Move Fast and Break Things’

      Granulate

      Granulate Applies AI to Linux Server Optimization

      Snyk

      Snyk Acquires DeepCode to Apply AI to DevSecOps

  • Cloud
    • Twilio

      Twilio Expands Scope of Cloud Services Portfolio

      Adobe

      Adobe Adds Tools for Building Custom Applications

      AWS autoscaling

      Optimize Performance, Cut Costs With AWS Autoscaling Services

      VMware

      VMware Starts to Gain Some Momentum on AWS

      report cloud

      Report: Cloud Expertise Now Superior to University Degree

  • Continuous Delivery
    • CI/CD

      CircleCI Brings Insights to CI/CD Platform

      logs

      How Logs Can Empower Your CI/CD Delivery Pipeline

      JFrog

      JFrog Sets Future Course Post-IPO

      DevOps Best Practices

      CircleCI Looks to Advance DevOps Best Practices Adoption

      CircleCI Salesforce

      CircleCI Adds to Salesforce CI/CD Orbs Collection

  • Continuous Testing
    • UI test

      Shift Left … With In-Sprint UI Test Automation (?!?)

      continuous testing

      Using Incident Response for Continuous Testing

      continuous testing

      Continuous Testing: Complementary to Agile and DevOps

      crowdtesting

      Crowdtesting: How to Ensure Quality in Disruptive Times

      Eggplant test

      Eggplant Employs AI to Surface Test Recommendations

  • DevSecOps
    • API security

      Tips To Strengthen API Security

      survey DevSecOps

      Survey Surfaces Lots of DevSecOps Friction

      low-code

      Low-Code, High Risk? Closing the Security Gap of Exposed Source Code

      VMware security

      VMware Looks to Meld IT and Security Operations

      security

      DevOps Unbound: DevSecOps and Application Security

  • Leadership Suite
    • low-code

      Low-Code the ‘Connective Tissue’ of Transformation

      recruitment

      Eliminating Unconscious Bias in Tech Recruitment

      enterprises

      Surveys Show COVID-19 Changes to Enterprises Likely Long-Term

      agility

      3 Steps for Organizational Agility in the COVID-19 Era

      developer

      Low-Code: An Oasis During Developer Drought

  • Practices
    • progressive delivery

      Maintaining Progressive Delivery Quality With Feature Flags

      operations management

      How to Consolidate Your IT Operations Management Tools

      low-code

      Low-Code, High Risk? Closing the Security Gap of Exposed Source Code

      financial services database

      Financial Services Rise Above in Database DevOps

      COBOL

      COBOL Is Taking Heat, but These Other Legacy Languages Could Burn You

  • ROELBOB
    • sre-anxiety

      SRE Anxiety

      manipulation-and-appeasement

      Appeasement and Manipulation

      4-stages-of-distributed-computing

      The 4 Stages of Distributed Computing

      devops-epitaph

      DevOps Epitaph

      comfortably-numb

      Comfortably Numb

  • Toolbox
    • operations management

      How to Consolidate Your IT Operations Management Tools

      remote developers

      Pinpoint Simplifies Managing Remote Dev Teams

      TechStrongTV - strongDM and Betterment

      TechStrong TV: strongDM With Betterment

      Microsoft

      Microsoft Advances DevOps Agenda

      traceability

      3 Ways Traceability Boosts Decision-Making, Accountability

  • IT as Code
  • More Topics
    • Application Performance Management/Monitoring
    • Culture
    • Enterprise DevOps

Home » Blogs » IT as Code » Cloud Management » Optimize Performance, Cut Costs With AWS Autoscaling Services

AWS autoscaling

Optimize Performance, Cut Costs With AWS Autoscaling Services

Manish MistryBy Manish Mistry on September 30, 2020 Leave a Comment

A very easy (and free) way to get the get your money’s worth on the AWS Cloud platform is autoscaling. Autoscaling allows for better fault tolerance, better availability and better cost management, quickly scaling up and down to meet traffic demands while keeping your costs within budget by detecting and replacing the components that are not healthy enough to be present in the infrastructure.

Recent Posts By Manish Mistry
  • How to Achieve AWS Security in 10 Steps
Manish Mistry More from Manish Mistry
Related Posts
  • Optimize Performance, Cut Costs With AWS Autoscaling Services
  • The Power of Autoscaling and the Mistake You’ll Never Make Again
  • How to build 12-factor microservices applications on AWS with Containers
    Related Categories
  • Blogs
  • Cloud Management
  • DevOps in the Cloud
  • IT as Code
    Related Topics
  • application delivery
  • autoscaling
  • cloud services
  • data traffic
  • data workloads
Show more
Show less

Some of the key benefits of autoscaling are:

  1. Meeting the traffic requirement on-demand and scaling accordingly.
  2. Adjusting scaling group capacity through the scheduled actions on the autoscaling groups.
  3. Reducing resources and costs.
  4. Increasing application availability by deploying across the availability zones.

AWS has several services that help autoscaling the infrastructure components and reduce the management associated with scaling. They are mediated through the CloudWatch monitoring and observability service. CloudWatch provides up to 1-second visibility of metrics, 15 months of data retention (metrics) and the ability to perform calculations on metrics. This allows digital engineering teams to perform historical analysis for things such as cost optimization, for instance. On top of the specified metrics, teams can create alarms and alarm trigger the autoscaling policy to perform predefined steps, either to scale out or scale in.

Autoscaling Services on AWS Cloud Platform

EC2 Instance Auto Scaling

EC2 instance autoscaling helps us to keep the correct number of EC2 instances available to handle incoming traffic requests for the application. We can create an EC2 autoscaling group, which is a collection of EC2 instances. In that group, we can specify a minimum, making sure that the group never goes below a specified size. We can also specify a maximum number of EC2 instances, which ensures that the group never goes above the specified size. This keeps capacity at a minimum and maximum range and ensures that your autoscaling group has EC2 instances specified in the desired capacity. Autoscaling also allows us to configure scheduled actions that can change the minimum, maximum and desired auto-scaling group capacity at a specified time.

EC2 instance autoscaling allows for the configuration of scaling policies that will scale up or down according to the policy to increase or decrease EC2 instances in your infrastructure.

There are two types of scaling: manual, in which we can attach and detach EC2 instances from the autoscaling group, and dynamic scaling, in which we can define how to scale the autoscaling group capacity in response to the incoming request or changing demand in terms of specific resource utilization. This allows us to configure policies that can take care of scale-up and scale-down and acts according to the policy for factors such as the number of requests, CPU and memory utilization.

Below are the three types of dynamic scaling policies:

  • Target-tracking: This policy will increase or decrease the autoscaling group’s current desired capacity based on the target value for the specific metric. This policy maintains the capacity to match specified target metrics like CPU or memory utilization. Let’s assume that you have set 60% utilization of your autoscaling group—the target-tracking policy will add or remove EC2 instances to meet the specified utilization.
  • Step Scaling: This policy increases or decreases the current capacity of the autoscaling group based on a set of scaling adjustments (EC2 instances) that vary based on the size of the alarm breach. Let’s assume that the autoscaling group has three stages for tracking CPU utilization—the first alarm would be triggered when 40% is reached and would add one EC2 instance, the second alarm would be triggered when 60% is reached and two EC2 instances are added, and the third alarm is triggered when 80% is reached and three EC2 instances would be added.
  • Simple Scaling: This is a simple scaling policy option that increases or decreases the current autoscaling group capacity based on a single scaling adjustment. Here we can add one EC2 instance when specified alarm breaches.

EC2 autoscaling provides on-demand instance scaling and spot fleet instance autoscaling, through which we can automatically increase or decrease the current capacity of the spot fleet based on the demand. It can launch (scale out) or terminate (scale in), within the specified range.

ECS Container Service Auto Scaling

Elastic Container Service (ECS) Auto Scaling works on published container CloudWatch metrics such as CPU and memory usage. It increases or decreases the desired capacity of container tasks in ECS service automatically. CloudWatch metrics can be used to scale out (add more tasks) to handle a high degree of incoming requests and scale in (remove tasks) during low utilization.

ECS Auto Scaling allows us to configure policies including target tracking, step scaling and scheduled scaling actions.

 RDS Storage Auto Scaling

Amazon Relational Database Services (RDS) for MariaDB, MySQL, PostgreSQL, SQL Server and Oracle support storage autoscaling, with zero-downtime RDS storage autoscaling automatically to scale the backend storage volume attached to the RDS database in response to growing database size.

RDS monitors current storage consumption and scales storage capacity up when current consumption reaches near the actual provisioned size, without affecting current database operation and disturbing current database transections.

Aurora Auto Scaling

AWS Aurora autoscaling adjusts the number of Aurora replicas dynamically. You can define the scaling policy and Aurora acts accordingly. It scales Aurora replicas to handle a sudden increase in the database connectivity or the workload. As and when database connections or workload decreases, Aurora Auto Scaling removes unwanted Aurora replicas automatically, so customers are not charged for the unwanted replica instances.

Just as we were able to define scaling policies in other services, so we can define them in Aurora Auto Scaling, and it also allows us to configure the minimum and the maximum number of Aurora replicas that can be managed. Aurora Auto Scaling is available for both of the Aurora engines MySQL and PostgreSQL.

DynamoDB Auto Scaling

The most difficult part of the DynamoDB workload is to predict the read and write capacity units. If an application needs high throughput for a specific period, it is not necessary to overprovision capacity units for the entire time. Amazon DynamoDB Auto Scaling dynamically adjusts provisioned throughput capacity on your behalf in response to actual incoming traffic request patterns.

As and when the workload decreases, application autoscaling decreases the provisioned throughput capacity units, so that customers do not pay for any unnecessary capacity.

With DynamoDB Auto Scaling, we can create scaling policies on the table or global secondary index. We can specify within the scaling policy whether we want to scale read capacity or write capacity (both), and the minimum and maximum provisioned capacity unit settings for the table or index.

Prime Your Infrastructure For Autoscaling

For these AWS autoscaling services to function as they should, organizations need to ensure they have:

  • Specified application user session state and persistence when using EC2 instances.
  • Tested, monitored and tuned their autoscaling strategy to ensure that it functions as expected.
  • Decision-making logic in place that evaluates these metrics against predefined thresholds or schedules and decides whether to scale out or scale in.
  • Service-specific limits in place before configuring autoscaling.
  • While using EC2 autoscaling, teams have specified cooldown time as well as which application to start up, and are ready to serve in a defined time.

Filed Under: Blogs, Cloud Management, DevOps in the Cloud, IT as Code Tagged With: application delivery, autoscaling, cloud services, data traffic, data workloads

  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • More
  • Click to share on Pinterest (Opens in new window)
  • Click to share on Tumblr (Opens in new window)

Like this:

Like Loading...
Sponsored Content
Featured eBook
The 101 of Continuous Software Delivery

The 101 of Continuous Software Delivery

Now, more than ever, companies who rapidly react to changing market conditions and customer behavior will have a competitive edge.  Innovation-driven response is successful not only when a company has new ideas, but also when the software needed to implement them is delivered quickly. Companies who have weathered recent events ... Read More
« AIOps and the Myth of ‘Move Fast and Break Things’
Adobe Adds Tools for Building Custom Applications »

Upcoming Webinars

How LivePerson Takes Cloud-Native DevSecOps to the Next Level
Wednesday, October 7, 2020 - 9:00 am EDT
GitOps on AWS: Managing Governance, Risk and Compliance for Kubernetes on EKS
Wednesday, October 7, 2020 - 1:00 pm EDT
Speed in CI/CD: Get Faster to Get Better
Thursday, October 8, 2020 - 11:00 am EDT

TechStrong TV – Live Streaming

TechStrong TV - All Episodes

On-Demand Webinars

DevOps.com Webinar ReplaysDevOps.com Webinar Replays
  • Home
  • About DevOps.com
  • Meet our Authors
  • Write for DevOps.com
  • Business Directory
  • Media Kit
  • Sponsor Info