Lesson 1 of 4 Amazon EBS and Instance Store

Choosing EBS Volume Types

This lesson explains how EBS volumes provide network-attached block storage for EC2 instances in one Availability Zone, and how the volume type determines performance and price.

Learning outcomes

After completing this lesson, you will be able to:

  • Distinguish SSD and HDD volume types.
  • Choose a volume type by the performance metric that matters.
  • Describe volume features such as Multi-Attach.
  • Explain the common causes of EBS performance limits.

Volume types

EBS volume types fall into SSD and HDD families. SSD volumes are optimised for small random reads and writes, measured in IOPS, which databases and boot volumes need. gp3 is the default choice: every volume, whatever its size, includes 3,000 IOPS and 125 MiB/s, and more of either can be provisioned independently, at a lower price per gigabyte than the older gp2, whose performance grows with size, at 3 IOPS per gigabyte, with burst credits for small volumes.

io2 Block Express provides provisioned IOPS with sub-millisecond latency, the highest durability and very large sizes, for critical databases that need sustained high performance; io1 is its older predecessor. HDD volumes are optimised for large sequential reads and writes, measured in throughput, at a lower price. st1 suits big data, data warehouses and log processing, and sc1 is the cheapest, for data that is rarely read. The following table summarises the types.

TypeMediaPerformanceUse for
gp3SSD3,000 IOPS and 125 MiB/s baseline at any size; more provisioned independently; ~20% cheaper per GB than gp2Default for most workloads
gp2SSD3 IOPS per GB with burst creditsLegacy general purpose
io2 Block ExpressSSDUp to 256,000 IOPS, sub-ms latency, 99.999% durability, up to 64 TiBCritical, I/O-intensive databases
io1SSDProvisioned IOPS (older)Legacy
st1HDDThroughput optimised, large sequential I/OBig data, warehouses, logs
sc1HDDCheapestInfrequently accessed data

HDD volumes cannot be boot volumes.

The following diagram groups the volume types into their two families.

The two families of EBS volume. SSD volumes are optimised for small random I/O measured in IOPS: gp3 is the default with 3,000 IOPS and 125 MiB/s at any size, and io2 Block Express gives provisioned IOPS with sub-millisecond latency for critical databases. HDD volumes are optimised for large sequential I/O measured in throughput: st1 for big data and logs, sc1 for rarely read data.
Whether the workload is measured in IOPS or in throughput usually decides the family before the type.

3,000IOPS

gp3 baseline at any size

125MiB/s

gp3 baseline throughput

Sort into groups

Which EBS volume type?

Exam skills 3.1.1 · 4.1.10

Choose the EBS volume type for each workload.

Log in to try this activity Interactive activities are free with an account.

Choosing by metric

The volume type follows from the performance measure that matters most to the workload. Databases and transactional systems perform many small random reads and writes, so their measure is IOPS and latency, and they need SSD volumes: gp3 for most, io2 when very high or consistent IOPS is required. Big data and log processing read and write large files sequentially, so their measure is throughput in MiB/s, which st1 provides at a lower price than SSD. The following table summarises the choice.

WorkloadKey metricType
Databases, transactionsIOPS and latencygp3 or io2
Big data, log processingThroughput (MiB/s)st1

Migrating gp2 to gp3 usually cuts cost and decouples performance from size.

Volume features

Amazon EBS volumes live in one Availability Zone and are replicated within it, which protects against the failure of a single disk but not of the zone; snapshots provide protection beyond the zone. Multi-Attach, available for io1 and io2 volumes, attaches one volume to up to 16 Nitro-based instances in the same zone, for clustered applications that manage concurrent writes themselves.

Elastic Volumes change a volume's size, type and performance while it is in use, with no downtime, so a gp2 volume can be converted to gp3, or its IOPS raised, without detaching it.

True or false

Volume features

Exam skills 3.1.2 · 2.2.4

Check the features of EBS volumes.

Log in to try this activity Interactive activities are free with an account.

Performance troubleshooting

When an EBS volume does not deliver the expected performance, the cause is usually in one of a few places. Each instance type has a maximum EBS bandwidth and IOPS, so a fast volume attached to a small instance underperforms; the instance, not the volume, is the bottleneck.

CloudWatch metrics show where the limit is. VolumeQueueLength and the throughput and IOPS metrics show whether the volume is saturated. On gp2 volumes, BurstBalance shows the remaining burst credits; when it reaches zero, performance falls to the volume's baseline, which is a common reason to move to gp3, whose performance is provisioned independently of size.

Troubleshooting scenario

Slow volumes

Exam skills 3.1.1

Find the cause of poor EBS performance.

Log in to try this activity Interactive activities are free with an account.
Worked example

Choosing a volume type

Each EBS volume type suits a different workload. The following table identifies the appropriate type for several workloads and the reason in each case.

WorkloadVolume typeWhy
Boot volumes and most applicationsgp3Low cost; IOPS and throughput set independently of size
Production database needing 40,000 IOPS with low latencyio2 Block ExpressHigh IOPS and durability
Big sequential log processingst1Throughput-optimised HDD, cheap
Rarely accessed cold datasc1Lowest-cost HDD

A team running gp2 volumes can move to gp3 with an online modification, usually saving about 20% while gaining a baseline of 3,000 IOPS regardless of size. HDD volumes cannot be boot volumes.

Check yourself

Which volume type suits large, sequential reads for big data at low cost?

Show answer

Throughput optimised HDD (st1). SSD types such as gp3 suit random I/O, and sc1 suits rarely accessed data.

Exam Tips

Remember for the exam

  • For most workloads, gp3 is the default choice.
  • For an I/O-intensive critical database needing the highest IOPS, use io2 Block Express.
  • For large sequential throughput at low cost use st1, and for the coldest, cheapest storage use sc1; neither can be a boot volume.
  • A volume can be attached only to instances in its own Availability Zone.
  • For lower cost and independent performance tuning, migrate gp2 volumes to gp3 with Elastic Volumes.
  • When a gp2 volume suddenly slows down, its burst credits are exhausted; check BurstBalance.