Skip to main content

AWS EC2 Instance Types Explained

Until recently, it was easy to select instance types within Amazon AWS. They offered several instance types that were different primarily in a linear fashion. In other words, if you needed to add processing power, you choose an instance type that had more ECUs, storage, and memory. Today, AWS has launched numerous families of instances aimed at helping you optimize particular functionalities. Each instance type has one or many instance sizes, which helps when scaling your resources to meet the needs of your workload. However, it makes it a little more difficult to decide which instance type to use. In this post, we’ll take a closer look at the AWS EC2 instance types.

AWS EC2 Instance Types: General Purpose

T2
T2 are Burstable Performance Instances that offer a baseline level of CPU performance with the capability to burst above the baseline. The ability to burst and baseline performance are directed by CPU Credits. Every T2 instance regularly gets CPU Credits at an established rate that is based on the size of the instance. These instances accrue CPU Credits as and when they become idle, and utilize the CPU credits as and when they become active. These instances are a better option for workloads that do not require the full CPU consistently but rarely requires bursting. These instances are suitable for general purpose workloads like developer environments, small databases, and web servers.
M4
M4 instances are the most recent general purpose instances. The M4 family of instances offers a balance of memory, network, and compute resources, and it is a better option for several applications. They have custom Intel Xeon E5-2676 v3 Haswell processors that are optimized explicitly for EC2. The clock rate for these instances can be in the range of 2.4 GHz to 3.0 GHz with the aid of Intel Turbo Boost.
M4 instances also provide Enhanced Networking that gives up to four times the packet rate of instances without Enhanced Networking, while guaranteeing reliable latency, even under high network I/O. When inside the placement groups, the Enhanced Networking decreases the average latencies among instances by 50 percent or even more. By default, these instances are EBS-Optimized and have a devoted network capacity for Input/Output operations.
M4 instances types:

  • large: This is the latest generation of general purpose instances. It has 8 GiB memory and only supports EBS storage. It has a dedicated EBS bandwidth of 450 Mbps and two vCPUs.
  • xlarge: This instance has double vCPU than the m4.large instance, i.e. four vCPU. It also only supports EBS SSD storage. It has 16 GiB memory and 750 Mbps bandwidth of dedicated EBS.
  • 2xlarge: The 2xlarge instance supports enhanced networking with 1000 Mbps dedicated EBS bandwidth. It has eight vCPUs and supports 32 GiB memory. It offers storage only for EBS SSD.
  • 4xlarge: This instance has 16 vCPU and 64 GiB memory. With no additional cost, the 4xlarge instance only supports EBS SSD storage, and it has dedicated EBS bandwidth of 2000 Mbps.
  • 10xlarge: This is the highest capacity instance. It has 40 vCPUs and supports 160 GiB memory and dedicated EBS bandwidth of 4000 Mbps. Like other m4 instances, it only has EBS SSD.

M3
The M3 instance type offers a balance of memory, network, and compute resources. These instances are for general purpose virtual machines, and most of the EC2 instances belong to this category.
M3 instances are suitable for mid-size and small databases, data processing jobs that require extra memory, running backend servers for SAP, cluster computing, Microsoft SharePoint, and several other applications.

Compute-optimized instances

C4
These instances are recent additions to the compute-optimized instances that feature maximum performance processors with the lowest compute/price performance in EC2 Instance types. These instances are suitable for compute-bound applications that derive advantage from high-performance processors. C4 instances are ideal for media transcoding, Massively Multiplayer gaming servers, high traffic web servers, batch processing workloads, and high-performance computing.
C4 instances are dependent on custom 2.9 GHz Intel Xeon E5-2666 v3 processors, which are specifically optimized for EC2. The Intel Turbo Boost Technology helps clock speed of the C4 instances to touch 3.5Ghz with 1 or 2 core Turbo Boost onc4.8xlarge instances.
C4 instances types:

  • large: This compute optimized instance has high performing processors. This model has two vCPUs, dedicated EBS bandwidth of 500 Mbps, and 3.75 GiB memory. It offers storage for EBS only.
  • xlarge: The xlarge model has four vCPUs and supports EBS storage only. All C4 models can be used for applications of clusters and networking. This model has 750 Mbps dedicated EBS bandwidth and 7.5 GiB memory.
  • 2xlarge: This model of the C4 instance has 1000 Mbps bandwidth of dedicated EBS. It also supports storage of EBS only. This instance has 15 GiB memory and supports eight vCPUs.
  • 4xlarge: With 4xlarge, the default storage is EBS. It has 16 vCPUs and offers 2000 Mbps of dedicated EBS bandwidth.
  • 8xlarge: This C4 instance has the capacity of controlling C-state and P-state processor configurations. It has 4000 Mbps bandwidth of dedicated EBS, 36 vCPUs, and 60 GiB memory. Likes other C4 models, it only has EBS storage.

C3
When compared to C1, C3 instances offer much faster processors with about twice the memory per SSD-based and vCPU instance storage. These instances are suitable for applications that derive advantage from a large amount of compute capacity for memory and are best-fitted for high performing web servers, and several compute-intensive applications.
Compute-optimized instances are a recent introduction from AWS. The instances are intended to provide maximum performance at an affordable price. They have per-core performance, which beats those offered by any of the AWS EC2 instance types, with a price-performance ratio that would be the best fit for compute-intensive workloads.
C3 instances types:

  • large: This instance has a high-frequency processor named Intel Xeon E5-2680 v2 and two vCPUs. It supports 3.75 GiB memory and has an SSD storage of 2 x 16 GB.
  • xlarge: The xlarge instance supports clustering with 7.5 GiB memory and four vCPUs. It has 2 x 40 GB SSD storage. These instances are highly recommended for engineering and MMO gaming applications.
  • 2xlarge: C3 instances have storage that is integrated with SSD technology. This instance has eight vCPUs. It supports 15 GiB memory and has 2 x 80 GB SSD storage.
  • 4xlarge: This instance supports enhanced networking with 2 x 160 GB SSD storage. It has 16 vCPUs and supports 30 GiB memory. All of these C3 instances can be used in web servers and distributed analytics.
  • 8xlarge: With 32 vCPUs, the 8xlarge is largest of all C3 instances. It has 60 GiB memory and supports 2 x 320 GB SSD storage.

Memory Optimized

X1
These instances are best suited for enterprise-class, large-scale, in-memory applications and offer the lowest price for each GiB of RAM among AWS EC2 instance types. The X1 instances are the latest addition to the EC2 memory-optimized instance group and are intended for executing high-scale, in-memory databases and in-memory applications over the AWS cloud. These instances provide 1,952 GiB of DDR4 based memory, eight times the memory provided by any of the AWS EC2 instances. They are powered by 4 Intel® Xeon® E7 8880 v3 processors and provide 128 vCPUs.
Compared to other Amazon EC2 instances, these offer the lowest price for each GiB of RAM and are best suited for executing in-memory databases such as SAP HANA, other big data processing engines such as Presto or Apache Spark, and HPC (High-Performance Computing) applications. These instances are SAP certified for running production environments of the next-generation Business Suite on HANA (SoH), Business Suite S/4HANA, Business Warehouse on HANA (BW), and Data Mart Solutions on HANA on the AWS cloud.
R3
R3 instances are well-equipped for running on memory-intensive applications and are less expensive for each GiB of RAM. These instances offer greater I/O performance, constant memory bandwidth, support for reduced latency, lower jitter, and maximum packet per second performance and support for EBS optimization. They are suitable for applications that require maximum memory performance with a high price point for each GB of RAM.
These instances are best suited for in-memory analytics and high-performance databases, including NoSQL databases and relational databases like MemcacheD/Redis and MongoDB applications. These instances support HVM (Hardware Virtualization) Amazon Machine Images only.

GPU

G2
G2 instances are well-suited for general purpose and graphics GPU compute applications. They belong to a GPU-powered family and offer molecular modeling, machine learning, rendering, transcoding jobs, and game streaming, which require enormous amounts of similar processing power. These instances provide a high performing NVIDIA GPU with 4GB of video memory and 1,536 CUDA cores, which makes them suitable for 3D visualizations, video creation services, and graphics-intensive applications. The NVIDIA GRID GPU contains committed, hardware-accelerated video encoding that produces H.264 video stream, which may be displayed on any device with a well-suited video codec. These instances are suitable for 3D application streaming and other GPU compute workloads.

Storage Optimized

I2
I2 instances are high storage instances that offer fast SSD-backed instance storage, which is best for high random Input/Output performance and provide maximum IOPS at the lowest cost. The primary data storage in such instances is SSD-based instance storage. As with all other instance storage, these volumes continue for the life of the instance. When terminating and stopping an instance, the applications, as well as the data that is stored in the instance store, are wiped out. It is recommended to make back-ups at regular intervals or replicate the data that has been stored in the instance storage. These instances support SSD volumes with TRIM. The user can activate the TRIM command to notify the SSD controller when the data is no longer required. This offers the controller much more available free space that could decrease write amplification while increasing performance.

Dense-storage Instances

D2
These instances offer up to  48 TB of HDD-based storage, providing huge disk throughput and offering the lowest price for each disk throughput performance on AWS EC2. D2 instances are intended for workloads that need greater sequential write and read access to larger data sets on local storage. They are best-suited for MPP (Massive Parallel Processing) data warehouses, Hadoop, MapReduce distributed computing, and data or log processing computing.
By default, these instances are EBS-optimized and offer a dedicated block storage throughput for AWS EBS, which ranges from 750 Mbps up to 4,000 Mbps free of charge. These EBS-optimized instances allow you to regularly achieve maximum performance for EBS volumes by reducing contention among network traffic and Amazon EBS I/O from the D2 instance.

Evaluating AWS EC2 Instance Types

Amazon EC2 offers a large number of alternatives across several instance types. Each offers different size options, which are organized into separate families that are enhanced for different applications. As a starting point for testing application performance, we recommend that you first evaluate the needs of your applications. To assess application performance, it is best to begin by recognizing the application requirements on the different instance families. Then, you can size the workload to identify the suitable instance size. Take a look at our Labs on how to create your first Amazon EC2 Instance for more information on EC2 Instances and assess your skills in EC2.

Written by

Sudhi is part of Cloud Technology Partners & is a trusted advisor and strategic consultant to many C level executives and IT Directors. He brings 18+ years diverse experience covering software, IT operations, cloud technologies, and management. Have led several global teams in HP, Sun/Oracle, SeeBeyond and few startups to deliver scalable and highly available business/technology products and solutions. He has expertise in systems management, monitoring and integrated SaaS and on-premise applications addressing a wide range of business problems.

Related Posts

Khash Nakhostin
— November 13, 2018

Understanding AWS VPC Egress Filtering Methods

Security in AWS is governed by a shared responsibility model where both vendor and subscriber have various operational responsibilities. AWS assumes responsibility for the underlying infrastructure, hardware, virtualization layer, facilities, and staff while the subscriber organization ...

Read more
  • Aviatrix
  • AWS
  • VPC
— November 10, 2018

S3 FTP: Build a Reliable and Inexpensive FTP Server Using Amazon’s S3

Is it possible to create an S3 FTP file backup/transfer solution, minimizing associated file storage and capacity planning administration headache?FTP (File Transfer Protocol) is a fast and convenient way to transfer large files over the Internet. You might, at some point, have conf...

Read more
  • Amazon S3
  • AWS
— October 18, 2018

Microservices Architecture: Advantages and Drawbacks

Microservices are a way of breaking large software projects into loosely coupled modules, which communicate with each other through simple Application Programming Interfaces (APIs).Microservices have become increasingly popular over the past few years. The modular architectural style,...

Read more
  • AWS
  • Microservices
— October 2, 2018

What Are Best Practices for Tagging AWS Resources?

There are many use cases for tags, but what are the best practices for tagging AWS resources? In order for your organization to effectively manage resources (and your monthly AWS bill), you need to implement and adopt a thoughtful tagging strategy that makes sense for your business. The...

Read more
  • AWS
  • cost optimization
— September 26, 2018

How to Optimize Amazon S3 Performance

Amazon S3 is the most common storage options for many organizations, being object storage it is used for a wide variety of data types, from the smallest objects to huge datasets. All in all, Amazon S3 is a great service to store a wide scope of data types in a highly available and resil...

Read more
  • Amazon S3
  • AWS
— September 18, 2018

How to Optimize Cloud Costs with Spot Instances: New on Cloud Academy

One of the main promises of cloud computing is access to nearly endless capacity. However, it doesn’t come cheap. With the introduction of Spot Instances for Amazon Web Services’ Elastic Compute Cloud (AWS EC2) in 2009, spot instances have been a way for major cloud providers to sell sp...

Read more
  • AWS
  • Azure
  • Google Cloud
— August 23, 2018

What are the Benefits of Machine Learning in the Cloud?

A Comparison of Machine Learning Services on AWS, Azure, and Google CloudArtificial intelligence and machine learning are steadily making their way into enterprise applications in areas such as customer support, fraud detection, and business intelligence. There is every reason to beli...

Read more
  • AWS
  • Azure
  • Google Cloud
  • Machine Learning
— August 17, 2018

How to Use 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.So you’ve been using AWS for awhile and finally feel comfortable clicking your way through all the services....

Read more
  • AWS
Albert Qian
— August 9, 2018

AWS Summit Chicago: New AWS Features Announced

Thousands of cloud practitioners descended on Chicago’s McCormick Place West last week to hear the latest updates around Amazon Web Services (AWS). While a typical hot and humid summer made its presence known outside, attendees inside basked in the comfort of air conditioning to hone th...

Read more
  • AWS
  • AWS Summits
— August 8, 2018

From Monolith to Serverless – The Evolving Cloudscape of Compute

Containers can help fragment monoliths into logical, easier to use workloads. The AWS Summit New York was held on July 17 and Cloud Academy sponsored my trip to the event. As someone who covers enterprise cloud technologies and services, the recent Amazon Web Services event was an insig...

Read more
  • AWS
  • AWS Summits
  • Containers
  • DevOps
  • serverless
— July 11, 2018

AWS Certification Practice Exam: What to Expect from Test Questions

If you’re building applications on the AWS cloud or looking to get started in cloud computing, certification is a way to build deep knowledge in key services unique to the AWS platform. AWS currently offers nine certifications that cover the major cloud roles including Solutions Archite...

Read more
  • AWS
— June 26, 2018

Disadvantages of Cloud Computing

If you want to deliver digital services of any kind, you’ll need to compute resources including 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 to do your homework first.Cloud ...

Read more
  • AWS
  • Azure
  • Cloud Computing
  • Google Cloud