Amazon EC2 T2 Instances, Chip Off The Old t1.Micro Block

AWS logoDuring the 90s, when I was playing Prince of Persia and Pac-man games on my PC, I was often using the turbo button of the CPU to manipulate the speed of the processor. That simple button would give me a chance to finish the game by slowing down the movement of the ghosts in the Pac-man game. Guess what? Amazon has now put the turbo button in the cloud with its next-generation micro instances called the T2 instances.

Though t1.micro instance type existed for nearly 4 years, it is not considered to be production ready. But with the new t2 instance types, Amazon made it is viable to run production workloads on these cheap, burstable-CPU based instances.

The key difference between t1.micro and t2.micro is the way the CPU bursting happens. It is not possible to predict or control the performance of t1.micro instance type. The official specs of t1.micro states that it can burst up to 2 ECUs with no guarantee of getting the maximum performance. On a side note, AWS has since moved away from the notion of ECUs to vCPUs. With the T2 instance types, you can accumulate points that can be redeemed within 24 hours to get predictable performance. AWS calls these points “CPU Credits” which are collected by your instance when it is idle. Every hour that the instance has been idle, it starts collecting the CPU credits.

Each instance can accumulate up to a specific number of credits beyond which the credits are not applicable. In case of t2.small, it can accumulate 12 CPU Credits per hour up to a maximum of 288 (12 CPU Minutes/hour * 24 hours) credits in a day. CPU credits cannot be carried forward to the next day. You either use them or lose them. In a scenario where there is a sudden spike and your instance has enough CPU credits, the accumulated credits get consumed to deliver higher performance. But what happens when you run out of the required CPU credits to sustain the same performance? Well, it falls back to the default level of performance that the instance type is originally assigned. Amazon calls this default level of performance as the “Baseline CPU Performance”.

Each instance type in the T2 family has an assigned baseline CPU performance. For example, t2.small is designed to consume 20% of a core in its default state. In the event of spikes, it leverages the CPU credits to go beyond the assigned 20% to draw more CPU power. To make it easy to track the CPU credits, Amazon CloudWatch has two new metrics called CPUCreditUsage and CPUCreditBalance. CPUCreditUsage tracks the expenditure of credits over time while CPUCreditBalance is to track the accumulation of credits over a period of time. That makes it easy to visualize the usage patterns and the available credits for a specific instance.
Screen Shot 2014-07-02 at 3.42.21 pm
The T2 instance types are ideal for running dev/test, blogs and dynamic websites that don’t demand consistent CPU performance. It’s interesting to note that Amazon is making T2 instances VPC-only. This is a mechanism to move newer workloads to VPC by default.

With Google Compute Engine preferring to go the sustained use discount route, Amazon EC2 is following a similar path. I won’t be surprised if AWS takes the concept of CPU credits beyond T2 instances to offer discounts for all underutilized EC2 instances.

Avatar

Written by

Janakiram MSV

Janakiram MSV heads the Cloud Infrastructure Services at Aditi Technologies. He contributes to cloud related articles on YourStory.com. A former employee of Microsoft and Amazon, Janakiram built a cloud consulting company that recently got acquired by Aditi Technologies. He is an analyst with Gigaom Research contributing to the Cloud related market research and analysis. He can be reached at jani@janakiram.com.

Related Posts

Avatar
Michael Sheehy
— August 19, 2019

What Exactly Is a Cloud Architect and How Do You Become One?

One of the buzzwords surrounding the cloud that I'm sure you've heard is "Cloud Architect." In this article, I will outline my understanding of what a cloud architect does and I'll analyze the skills and certifications necessary to become one. I will also list some of the types of jobs ...

Read more
  • AWS
  • Cloud Computing
Avatar
Andrew Larkin
— August 13, 2019

Content Roadmap: AZ-500, ITIL 4, MS-100, Google Cloud Associate Engineer, and More

Last month, Cloud Academy joined forces with QA, the UK’s largest B2B skills provider, and it put us in an excellent position to solve a massive skills gap problem. As a result of this collaboration, you will see our training library grow with additions from QA’s massive catalog of 500+...

Read more
  • AWS
  • Azure
  • content roadmap
  • Google Cloud Platform
Avatar
Adam Hawkins
— August 9, 2019

DevSecOps: How to Secure DevOps Environments

Security has been a friction point when discussing DevOps. This stems from the assumption that DevOps teams move too fast to handle security concerns. This makes sense if Information Security (InfoSec) is separate from the DevOps value stream, or if development velocity exceeds the band...

Read more
  • AWS
  • cloud security
  • DevOps
  • DevSecOps
  • Security
Avatar
Stefano Giacone
— August 8, 2019

Test Your Cloud Knowledge on AWS, Azure, or Google Cloud Platform

Cloud skills are in demand | In today's digital era, employers are constantly seeking skilled professionals with working knowledge of AWS, Azure, and Google Cloud Platform. According to the 2019 Trends in Cloud Transformation report by 451 Research: Business and IT transformations re...

Read more
  • AWS
  • Cloud skills
  • Google Cloud
  • Microsoft Azure
Avatar
Andrew Larkin
— August 7, 2019

Disadvantages of Cloud Computing

If you want to deliver digital services of any kind, you’ll need to estimate all types of resources, not the least of which are CPU, memory, storage, and network connectivity. Which resources you choose for your delivery —  cloud-based or local — is up to you. But you’ll definitely want...

Read more
  • AWS
  • Azure
  • Cloud Computing
  • Google Cloud Platform
Joe Nemer
Joe Nemer
— August 6, 2019

Google Cloud vs AWS: A Comparison (or can they be compared?)

The "Google Cloud vs AWS" argument used to be a common discussion among our members, but is this still really a thing? You may already know that there are three major players in the public cloud platforms arena: Amazon Web Services (AWS), Microsoft Azure, and Google Cloud Platform (GCP)...

Read more
  • AWS
  • Google Cloud Platform
  • Kubernetes
Avatar
Stuart Scott
— July 29, 2019

Deployment Orchestration with AWS Elastic Beanstalk

If you're responsible for the development and deployment of web applications within your AWS environment for your organization, then it's likely you've heard of AWS Elastic Beanstalk. If you are new to this service, or simply need to know a bit more about the service and the benefits th...

Read more
  • AWS
  • elastic beanstalk
Avatar
Stuart Scott
— July 26, 2019

How to Use & Install the AWS CLI

What is the AWS CLI? | The AWS Command Line Interface (CLI) is for managing your AWS services from a terminal session on your own client, allowing you to control and configure multiple AWS services and implement a level of automation. If you’ve been using AWS for some time and feel...

Read more
  • AWS
  • AWS CLI
  • Command line interface
Alisha Reyes
Alisha Reyes
— July 22, 2019

Cloud Academy’s Blog Digest: July 2019

July has been a very exciting month for us at Cloud Academy. On July 10, we officially joined forces with QA, the UK’s largest B2B skills provider (read the announcement). Over the coming weeks, you will see additions from QA’s massive catalog of 500+ certification courses and 1500+ ins...

Read more
  • AWS
  • Azure
  • Cloud Academy
  • Cybersecurity
  • DevOps
  • Kubernetes
Avatar
Stuart Scott
— July 18, 2019

AWS Fundamentals: Understanding Compute, Storage, Database, Networking & Security

If you are just starting out on your journey toward mastering AWS cloud computing, then your first stop should be to understand the AWS fundamentals. This will enable you to get a solid foundation to then expand your knowledge across the entire AWS service catalog.   It can be both d...

Read more
  • AWS
  • Compute
  • Database
  • fundamentals
  • networking
  • Security
  • Storage
Avatar
Adam Hawkins
— July 17, 2019

How to Become a DevOps Engineer

The DevOps Handbook introduces DevOps as a framework for improving the process for converting a business hypothesis into a technology-enabled service that delivers value to the customer. This process is called the value stream. Accelerate finds that applying DevOps principles of flow, f...

Read more
  • AWS
  • AWS Certifications
  • DevOps
  • DevOps Foundation Certification
  • Engineer
  • Kubernetes
Avatar
Vineet Badola
— July 15, 2019

AWS AMI Virtualization Types: HVM vs PV (Paravirtual VS Hardware VM)

Amazon Machine Images (AWS AMI) offers two types of virtualization: Paravirtual (PV) and Hardware Virtual Machine (HVM). Each solution offers its own advantages. When we’re using AWS, it’s easy for someone — almost without thinking —  to choose which AMI flavor seems best when spinning...

Read more
  • AWS
  • Hardware Virtual Machine
  • Paravirtual
  • Virtualization