Certopolis

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 BurstBalance on 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.

Written from these sources

Try 3 questions on this

Pick an answer to see why each option is right or wrong.

  1. A database on an Amazon EC2 instance keeps about 150 GiB of data on a 200 GiB gp2 volume. Every afternoon the volume's burst balance runs out and the database slows down. The database needs a steady 4,000 IOPS, and its data will stay under 200 GiB. The volume must stay attached and in use during the change. Which solution will meet these requirements?

    Right. In the game that’s Renown for your Monitoring, Logging, Analysis, Remediation, and Performance Optimization building.

    Not that one: A is right. In the game your Monitoring, Logging, Analysis, Remediation, and Performance Optimization building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    It includes a steady 3,000 IOPS with no bursting, and more can be provisioned up to 500 IOPS per GiB, so a 200 GiB gp3 volume can carry 4,000 IOPS without growing. Elastic Volumes changes the type and IOPS while the volume stays attached and in use, and gp3 costs less per GiB than gp2.

    Written from docs.aws.amazon.com/ebs/latest/userguide/general-purpose.html

  2. A SysOps administrator is adding an Amazon EBS data volume for a small database on an EC2 instance. The database needs only 20 GiB of storage, but it needs a steady 3,000 IOPS and about 100 MiB/s at all hours. The volume must meet these needs at the lowest cost. Which solution will meet these requirements?

    Right. In the game that’s Renown for your Monitoring, Logging, Analysis, Remediation, and Performance Optimization building.

    Not that one: D is right. In the game your Monitoring, Logging, Analysis, Remediation, and Performance Optimization building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    A 20 GiB gp3 volume therefore meets the steady 3,000 IOPS and 100 MiB/s with nothing provisioned on top, and gp3 is the lowest-cost SSD type.

    Written from docs.aws.amazon.com/ebs/latest/userguide/general-purpose.html

  3. A reporting database on an m6i.8xlarge instance keeps its data on a 250 GiB gp2 volume. Twice a month, an import that needs about 2,000 IOPS runs for hours: fast at first, then sharply slower. The SysOps administrator must be alerted while the import is still fast, early enough to pause other jobs before it slows. Which solution will meet these requirements?

    Right. In the game that’s Renown for your Monitoring, Logging, Analysis, Remediation, and Performance Optimization building.

    Not that one: B is right. In the game your Monitoring, Logging, Analysis, Remediation, and Performance Optimization building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    BurstBalance reports the percentage of credits left, so it falls steadily while performance is still full; an alarm at 20 percent gives warning before the drop. A queue-length alarm watches the same volume but only moves once the drop has happened.

    Written from docs.aws.amazon.com/ebs/latest/userguide/general-purpose.html

Ask for something