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

Alisha Reyes
Alisha Reyes
— December 10, 2019

New Lab Challenges: Push Your Skills to the Next Level

Build hands-on experience using real accounts on AWS, Azure, Google Cloud Platform, and more Meaningful cloud skills require more than book knowledge. Hands-on experience is required to translate knowledge into real-world results. We see this time and time again in studies about how pe...

Read more
  • AWS
  • Azure
  • Google Cloud
  • hands-on
  • labs
Alisha Reyes
Alisha Reyes
— December 5, 2019

New on Cloud Academy: AWS Solution Architect Lab Challenge, Azure Hands-on Labs, Foundation Certificate in Cyber Security, and Much More

Now that Thanksgiving is over and the craziness of Black Friday has died down, it's now time for the busiest season of the year. Whether you're a last-minute shopper or you already have your shopping done, the holidays bring so much more excitement than any other time of year. Since our...

Read more
  • AWS
  • AWS solution architect
  • AZ-203
  • Azure
  • cyber security
  • FCCS
  • Foundation Certificate in Cyber Security
  • Google Cloud Platform
  • Kubernetes
Avatar
Cloud Academy Team
— December 4, 2019

Understanding Enterprise Cloud Migration

What is enterprise cloud migration? Cloud migration is about moving your data, applications, and even infrastructure from your on-premises computers or infrastructure to a virtual pool of on-demand, shared resources that offer compute, storage, and network services at scale. Why d...

Read more
  • AWS
  • Azure
  • Data Migration
Wendy Dessler
Wendy Dessler
— November 27, 2019

6 Reasons Why You Should Get an AWS Certification This Year

In the past decade, the rise of cloud computing has been undeniable. Businesses of all sizes are moving their infrastructure and applications to the cloud. This is partly because the cloud allows businesses and their employees to access important information from just about anywhere. ...

Read more
  • AWS
  • Certifications
  • certified
Avatar
Andrea Colangelo
— November 26, 2019

AWS Regions and Availability Zones: The Simplest Explanation You Will Ever Find Around

The basics of AWS Regions and Availability Zones We’re going to treat this article as a sort of AWS 101 — it’ll be a quick primer on AWS Regions and Availability Zones that will be useful for understanding the basics of how AWS infrastructure is organized. We’ll define each section,...

Read more
  • AWS
Avatar
Dzenan Dzevlan
— November 20, 2019

Application Load Balancer vs. Classic Load Balancer

What is an Elastic Load Balancer? This post covers basics of what an Elastic Load Balancer is, and two of its examples: Application Load Balancers and Classic Load Balancers. For additional information — including a comparison that explains Network Load Balancers — check out our post o...

Read more
  • ALB
  • Application Load Balancer
  • AWS
  • Elastic Load Balancer
  • ELB
Albert Qian
Albert Qian
— November 13, 2019

Advantages and Disadvantages of Microservices Architecture

What are microservices? Let's start our discussion by setting a foundation of what microservices are. Microservices are a way of breaking large software projects into loosely coupled modules, which communicate with each other through simple Application Programming Interfaces (APIs). ...

Read more
  • AWS
  • Docker
  • Kubernetes
  • Microservices
Nisar Ahmad
Nisar Ahmad
— November 12, 2019

Kubernetes Services: AWS vs. Azure vs. Google Cloud

Kubernetes is a popular open-source container orchestration platform that allows us to deploy and manage multi-container applications at scale. Businesses are rapidly adopting this revolutionary technology to modernize their applications. Cloud service providers — such as Amazon Web Ser...

Read more
  • AWS
  • Azure
  • Google Cloud
  • Kubernetes
Avatar
Stuart Scott
— October 31, 2019

AWS Internet of Things (IoT): The 3 Services You Need to Know

The Internet of Things (IoT) embeds technology into any physical thing to enable never-before-seen levels of connectivity. IoT is revolutionizing industries and creating many new market opportunities. Cloud services play an important role in enabling deployment of IoT solutions that min...

Read more
  • AWS
  • AWS IoT Events
  • AWS IoT SiteWise
  • AWS IoT Things Graph
  • IoT
Avatar
Cloud Academy Team
— October 23, 2019

Which Certifications Should I Get?

As we mentioned in an earlier post, the old AWS slogan, “Cloud is the new normal” is indeed a reality today. Really, cloud has been the new normal for a while now and getting credentials has become an increasingly effective way to quickly showcase your abilities to recruiters and compan...

Read more
  • AWS
  • Azure
  • Certifications
  • Cloud Computing
  • Google Cloud Platform
Valery Calderón Briz
Valery Calderón Briz
— October 22, 2019

How to Go Serverless Like a Pro

So, no servers? Yeah, I checked and there are definitely no servers. Well...the cloud service providers do need servers to host and run the code, but we don’t have to worry about it. Which operating system to use, how and when to run the instances, the scalability, and all the arch...

Read more
  • AWS
  • Lambda
  • Serverless
Avatar
Stuart Scott
— October 16, 2019

AWS Security: Bastion Hosts, NAT instances and VPC Peering

Effective security requires close control over your data and resources. Bastion hosts, NAT instances, and VPC peering can help you secure your AWS infrastructure. Welcome to part four of my AWS Security overview. In part three, we looked at network security at the subnet level. This ti...

Read more
  • AWS