AWS Certified CloudOps Engineer – Associate
EBS gp2 vs gp3: IOPS, throughput and burst balance
The Amazon EBS User Guide says gp2 performance scales with volume size: 3 IOPS per GiB, with bursts to 3,000 IOPS paid for by I/O credits. A gp3 volume includes 3,000 IOPS and 125 MiB/s at any size, does not burst, and lets you provision more IOPS and throughput without adding storage. gp3 costs 20 percent less per GiB.
How does gp2 performance work?
Baseline IOPS scale linearly at 3 IOPS per GiB, from a minimum of 100 to a maximum of 16,000. A 100 GiB volume has a baseline of 300 IOPS and a 750 GiB volume has 2,250. A volume of 1,000 GiB reaches 3,000.
A gp2 volume smaller than 1 TiB can burst to 3,000 IOPS. Bursting spends I/O credits at the rate of the IOPS used above baseline. The volume earns credits at 3 per GiB per second when demand is at or below baseline. The bucket holds at most 5.4 million credits, enough for at least 30 minutes at 3,000 IOPS, and each volume starts with a full bucket.
When the credits run out, the volume drops to its baseline. Throughput on gp2 is between 128 MiB/s and 250 MiB/s depending on size.
How does gp3 performance work?
A gp3 volume delivers 3,000 IOPS and 125 MiB/s as a baseline included in the storage price, whatever its size. It does not use burst performance and can sustain its full provisioned IOPS and throughput indefinitely.
You can provision more for an extra cost: up to 80,000 IOPS at a ratio of 500 IOPS per GiB, and up to 2,000 MiB/s at 0.25 MiB/s per provisioned IOPS. So 1,000 MiB/s of throughput needs at least 4,000 provisioned IOPS.
How do you monitor and migrate?
BurstBalance is a CloudWatch metric for gp2, st1 and sc1 volumes. For gp2 it shows the percentage of I/O credits left in the burst bucket. An alarm on a falling BurstBalance warns before the volume slows to baseline.
Elastic Volumes can change the volume type, size, IOPS and throughput without detaching the volume or restarting the instance, if the instance supports it. A volume can be modified up to four times in a rolling 24-hour period, and each modification must complete before the next. If you change gp2 to gp3 without stating IOPS or throughput, EBS provisions the higher of the source volume's equivalent performance and the gp3 baseline.
Where the exam catches people
- Believing a gp3 volume must grow to get more IOPS: gp3 performance is provisioned independently of size, up to 500 IOPS per GiB.
- Believing gp3 volumes burst: they have no burst bucket and sustain their provisioned performance indefinitely.
- Watching
BurstBalanceon a gp3 volume: the metric is reported for gp2, st1 and sc1 volumes only. - Believing a small gp2 volume gets 3,000 IOPS all the time: 3,000 IOPS is the burst ceiling; the baseline is 3 IOPS per GiB.
- Believing a volume must be detached to change from gp2 to gp3: Elastic Volumes makes the change while the volume is in use.