Ravindra BagaleCourses & study guides मराठी Track your progress

Chapter 13: Amazon EBS (Elastic Block Store)

AWS Cloud

13.2 EBS volume types

Friends, this table looks big, but for labs and small projects the answer is almost always the same – gp3. It's enough to recognise where the other types are used.

Type Category Size Baseline and maximum IOPS Max throughput Use case
gp3 General purpose SSD 1 GiB – 64 TiB (16 TiB on Outposts) 3,000 baseline included; up to 80,000 where supported, subject to the volume-size ratio 125 MiB/s baseline; up to 2,000 MiB/s where supported, subject to the IOPS ratio Default choice: boot volumes, web/app servers, dev/test, small DBs
gp2 General purpose SSD (earlier generation) 1 GiB – 16 TiB 3 baseline IOPS per GiB (min 100, max 16,000); eligible smaller volumes burst to 3,000 using credits up to 250 MiB/s Existing general-purpose workloads; compare gp3’s per-GiB pricing and any paid performance for the proposed configuration
io2 Block Express Provisioned IOPS SSD 4 GiB – 64 TiB up to 256,000 with supported Nitro instances and applicable size ratio up to 4,000 MiB/s Mission-critical databases (Oracle, SAP HANA, large MySQL) needing consistent low latency; 99.999% durability
io1 Provisioned IOPS SSD (older) 4 GiB – 16 TiB up to 64,000 up to 1,000 MiB/s at 64,000 IOPS on supported Nitro instances Legacy high-IOPS workloads
st1 Throughput optimised HDD 125 GiB – 16 TiB up to 500 at 1 MiB I/O up to 500 MiB/s, depending on size, credit balance and host Big data, log processing, data warehouses (large sequential reads) — cannot be boot volume
sc1 Cold HDD 125 GiB – 16 TiB up to 250 at 1 MiB I/O up to 250 MiB/s, depending on size, credit balance and host Infrequently accessed archives, lowest cost — cannot be boot volume

gp3 vs gp2

With gp2, performance depends on size (a 100 GiB gp2 gets only 300 baseline IOPS). With gp3, every volume gets 3,000 IOPS and 125 MiB/s regardless of size, and you can provision additional IOPS or throughput without increasing size up to the applicable ratios and instance limits. On supported instances, Elastic Volumes can change gp2 → gp3 while the instance runs.

IOPS = input/output operations per second across measured reads and writes. Throughput is the amount of data transferred per second, shown here in MiB/s. Both metrics apply to all I/O patterns. Request size relates the two.

Ravindra Bagale's Tip

For many labs, gp3 is a practical starting point. Compare application evidence, supported performance and total configured cost before changing types. Consider io2 for workloads with matching performance or durability needs.

Lab

Use the local workload worksheet to compare gp2 and gp3. For an assigned existing volume, inspect its actual settings as a read-only check. Plan a root-volume change separately after verifying the role, capacity, recovery point and application impact.

Choose a volume type by watching the work it needs to do

Mauli Dairy runs an order database, generates a nightly stock summary and keeps records from past delivery runs. The database regularly needs small reads and writes. The summary makes a long scan through a lot of records. The archived runs are opened infrequently. All three jobs might store the same amount of data while needing different performance and access patterns. Begin with the job, when it is busiest and what waiting time the user can tolerate. The volume type is a consequence of those requirements.

Capacity is how much data the volume can hold. Performance describes how quickly work can be served. A larger volume can hold more files, but its benefit to operations depends on the selected type, configured performance, instance and the work the app actually sends. A 40 GiB operating system volume may serve a busy application. A multi-TiB archive may move only one large stream during a scheduled window. Choosing by file size alone would hide that difference. Separate capacity, speed, durability, availability and recovery objectives on your worksheet.

For a first lab, a supported general-purpose SSD such as gp3 is often a straightforward starting point. Do not assume that its printed maximum is provisioned for every volume or reachable from every EC2 instance. Start with the included performance, estimate demands in the same units and observe a representative operation. If users are waiting, identify what is limiting it. A network, CPU, query pattern or request queue can be the culprit even when a volume's price and model look relevant. The measured evidence makes your recommendation more convincing than selecting a label by reputation.

Convert IOPS and throughput using the size of each operation

An I/O operation is a read or write processed in the storage path. IOPS counts how many operations complete per second. Throughput counts how much data they transfer per second. Latency measures how much time one operation takes to complete in the measured scope. A volume might be busy handling many tiny requests while moving only a modest number of bytes. A sequential scan with larger requests can use a lot of throughput with fewer operations. A user opens the same report in both cases. The disk workload beneath it is different.

Use binary units in this lesson. A KiB is 1,024 bytes. A MiB is 1,024 KiB. A GiB is 1,024 MiB. Imagine the dairy's first process transfers 1,500 operations per second at 8 KiB each. Multiply to obtain 12,000 KiB per second and divide by 1,024: about 11.72 MiB/s. A different job moves the same number of operations at 128 KiB each, which is 187.50 MiB/s. Same operation count, sixteen times the total bytes. Measure the dimensions together before interpreting either number.

These examples assume each counted operation has the given size. An application-level read can be served from cache or can become multiple smaller underlying operations. AWS documents splitting I/O that exceeds a volume technology's maximum operation size and attempting to merge adjacent work where appropriate. Its EBS I/O documentation describes a 256 KiB maximum counted size for SSD and 1,024 KiB for HDD. A database request also may need more than one file operation. Use the volume's measured counts and byte sums for real evidence. The examples are an introductory way to reason about a stable stream at the storage boundary.

Worked streamObserved operationsSize per operationIllustrated throughput
Small order lookups1,500 IOPS8 KiB11.72 MiB/s
Same rate with larger transfer1,500 IOPS128 KiB187.50 MiB/s
Nightly file sweep3,000 IOPS128 KiB375 MiB/s
Large sequential example8,000 IOPS256 KiB2,000 MiB/s

A device also has an IOPS ceiling and a throughput ceiling. Suppose a classroom candidate can deliver at most 3,000 operations per second and at most 125 MiB/s under the exercise assumptions. At 128 KiB per operation, that throughput ceiling is around 1,000 operations per second. The system cannot actually deliver 3,000 times 128 KiB while remaining at 125 MiB/s. At 8 KiB, 3,000 IOPS would use only about 23.44 MiB/s and the IOPS ceiling becomes the tighter bound. Each conclusion describes a workload size and does not guarantee actual service performance.

Queue length measures work waiting or in progress under the reported definition. A busy hour can add many requests and cause more waiting. An average latency number can hide a slower minority of requests. A customer who always reaches the checkout when the delivery export runs might experience those slow requests more often. Check latency distributions and observed user operations where your tools support them. A stable mean I/O size and aggregate IO rates are useful clues, but they can hide a mix of small random lookups and large sequential jobs competing for resources.

Compare general-purpose SSD based on sustained work and burst needs

Gp2 and gp3 are general-purpose SSD types. A gp2 volume's baseline IOPS depends on its size. AWS documents three baseline IOPS per GiB between documented minimum and maximum limits. A 100 GiB example has a baseline of 300 IOPS. Supported smaller volumes can burst up to 3,000 IOPS when they have sufficient credits. A freshly created volume has an initial credit balance described in the docs. A short trial can therefore feel fast even when an extended workload eventually returns toward baseline. A test of five minutes is a different workload from an entire day of heavy exports.

In this lesson's gp2 100 GiB example, suppose the workload sustains 3,000 IOPS continuously at the volume interface, and the burst bucket starts full at 5.4 million credits. The excess above baseline is 2,700 per second. Dividing 5,400,000 by 2,700 yields 2,000 seconds, about 33 minutes and 20 seconds. Other bottlenecks can limit whether the workload ever drives that rate. If it initially uses about 600 IOPS instead, the excess is only 300 per second and the model lasts 18,000 seconds, five hours. Check the actual observed burst balance and workload rather than using this calculation as a performance promise.

Gp3 lets you select provisioned IOPS and throughput separately from capacity within the service's rules. The included baseline is 3,000 IOPS and 125 MiB/s and does not use the gp2 burst-credit mechanism. For ordinary Regional gp3, the documented volume range reaches 64 TiB. Current volume caps reach 80,000 IOPS and 2,000 MiB/s under the applicable size and interface configuration. Outposts has different gp3 limits. The provisioned maximum your app can attain also depends on the chosen instance and its EBS capacity. Additional IOPS and throughput can incur charges. Compare current regional cost for the exact configuration, not a universal savings percentage for a complete deployment.

The two ratio rules help turn a target into a candidate. Additional IOPS are supported up to the applicable 500 IOPS per GiB ratio and type maximum, with the included IOPS baseline. A target of 8,000 IOPS requires at least 16 GiB under that ratio. Throughput can be provisioned above baseline up to the allowed 0.25 MiB/s per provisioned IOPS and its type cap. To configure 2,000 MiB/s, the rule requires at least 8,000 IOPS. To actually drive that throughput at 8,000 operations per second, the stream must average roughly 256 KiB counted per operation in this simplified example. Smaller operations could hit the IOPS limit much earlier.

Suppose a 40 GiB gp3 candidate needs 6,000 IOPS of 8 KiB each for the dairy's hot lookup period. That implies about 46.88 MiB/s. The included throughput could be enough for this simplified stream, while the included IOPS would fall short. Provisioning extra throughput alone does not satisfy the operation count. In the opposite case, the volume performs 2,000 IOPS at 192 KiB for a file sweep, about 375 MiB/s. A higher throughput setting could be relevant even though the IOPS are within the included number. Confirm the maximum for the instance and the rest of the volume configuration before choosing either. The first case differs in operation budget, the second in byte movement.

Use io2, throughput HDD or cold HDD for a real requirement

Provisioned IOPS SSD is a family aimed at storage-intensive work that needs consistent performance. Current AWS documentation treats existing and new io2 volumes as io2 Block Express. For supported Nitro-based instances it describes up to 256,000 IOPS with an appropriate size and configuration and up to 4,000 MiB/s throughput. It also defines the design target for average latency at a particular 16 KiB I/O size. These describe the storage product under documented conditions, not universal database query times or low latency at every percentile. Check compatibility, volume limits and the specific EC2 instance's aggregate bounds.

Io1 is a separate Provisioned IOPS type with its own IOPS-to-size ratio, volume and throughput rules and durability characteristics. The larger allowed integer does not tell the full story. Select by measured requirements, supported configurations and migration cost. To discuss a persistent low-latency need, name the operations and the tail latency that matters. Explain why the whole service would improve, not just which volume category advertises less wait. Then validate using representative software, separately tracked read and write behavior and approved benchmark conditions. A quicker storage tier cannot compensate for a slow request executing an avoidable full scan for each transaction.

HDD-backed st1 and sc1 are suited to large sequential I/O patterns. Throughput Optimized HDD targets frequently accessed, large streaming work such as repeated log processing. Cold HDD targets less frequently accessed throughput-oriented block data. They both have size-dependent baseline and burst throughput. As of this lesson, their documented maximum volume throughput figures are 500 MiB/s and 250 MiB/s respectively. Those maxima aren't sustained by every volume at every size or credit balance. Neither type is an EBS boot volume option. A cold archive that uses object requests instead of a mounted block device may be better evaluated as an object storage lifecycle question.

At one TiB, the HDD documentation illustrates a baseline of 40 MiB/s for st1 and 12 MiB/s for sc1, with respective example burst rates up to 250 and 80 MiB/s. These are materially different from the per-type maximum for a sufficiently sized volume. Suppose a reader has to scan 100 GiB after the burst bucket has emptied. At 40 MiB/s the ideal arithmetic is 2,560 seconds, about 42 minutes and 40 seconds. At 12 MiB/s it is over 8,500 seconds, roughly two hours and 22 minutes. Actual results also depend on application reads and the instance. A schedule that tolerates an overnight scan may make different choices from a dashboard awaiting a quick random seek.

A storage tier can be unsuitable for several unrelated reasons. The target may lack the necessary root device support, some AZs or instance classes may not support the intended configuration, and the application may require different fan-out or durability. The Multi-Attach option is limited to supported io1 and io2 configurations and does not coordinate filesystem writes on its own. Most simple labs do not need it. The evidence for a storage type should include viable access, performance and recovery paths. A cheaper isolated number cannot establish that the type meets the operating requirement.

Compare the volume limit with the instance and other workloads

An attached EBS volume is one part of the storage path. EC2 instance types have their own documented aggregate EBS IOPS and bandwidth limits under specified conditions. If a volume can supply 8,000 IOPS but the instance can drive only 5,000 for the planned conditions, the entire attachment cannot observe 8,000 just because you configure it. If two volumes each advertise the same ceiling, their potential combined workload may still be limited by that one instance's EBS resources. Examine the instance type, applicable baseline and burst settings and other active volumes together.

Use a hypothetical host with a sustained EBS throughput budget of 250 MiB/s. The orders process needs around 40 MiB/s and the nightly scan asks for 230 MiB/s at the same instant. Together the request is 270 MiB/s before other work. Both volumes might support their own demands separately, but the host limit cannot sustain both together at those rates. Increasing the scan's provisioned throughput alone leaves the same total limit. Candidate choices include scheduling the scan differently, reducing the data it reads, selecting a suitable instance or rerunning an approved benchmark to check whether the target actually needs both at once. Compare orders latency as well as the scan deadline.

Keep units consistent when reading instance documentation. A rated connection bandwidth in megabits per second is a different unit from mebibytes per second. Before comparing them, divide bits per second by eight to obtain bytes per second, then divide by 1,048,576 for MiB/s. Some AWS tables report both a bandwidth and a throughput figure under particular assumptions; use their stated definitions and test conditions. A table's maximum does not establish the sustained limit for an instance type with separate burst capacity. Make note of which rate you used in the estimate.

For a migration, record the volume configuration and measured behavior on both sides. If a gp2 volume has a larger effective throughput target than the gp3 baseline, a migration request that leaves settings unspecified can choose performance according to AWS's documented preservation rule. It does not blindly set all new values to 3,000 and 125. Read the resulting IOPS and throughput values and compare actual performance and charges against your plan. The original types differ in their configuration model. A change should have a snapshot and operational plan where the data matters, and a defined meaning of readiness. Laboratory review can remain read-only until an approved disposable resource is assigned.

Make a chart of the minutes that the application was slow

When a staff member reports a slow export, ask for the job and time. Compare application latency and completion at that same period with the EBS volume metrics. CloudWatch metrics vary by context. Some volume metrics are tied to compatible Nitro instances or unsupported for certain attachment and service modes. Check the current AWS metric definition and identity dimensions. A missing series may mean the metric does not apply or the volume was not attached in the period, rather than evidence of zero I/O.

For basic arithmetic, take one interval. Split the workload into read and write if the difference matters. Add completed read and write operations and divide by period seconds for a combined observed IOPS. Add their transferred byte totals and divide by seconds and 1,048,576 for combined MiB/s. To estimate the average counted operation size when operations occurred, divide total bytes by operation count and by 1,024. Use the same volume, period and completed operation definitions for every number. These combine datapoints for a worksheet; they do not measure maximum instantaneous rates or work that was delayed before completion.

Then compare against the configured volume limits and relevant EC2 instance evidence. On supported configurations, AWS reports volume checks for sustained attempts to exceed provisioned IOPS or throughput over a sampling period. A matching raised check, high queue and slower user operation is stronger evidence than a high total alone. A zero value in a relevant minute still does not prove fast I/O for every individual request. On credit-based volumes, inspect the applicable BurstBalance evidence and compare when it fell with when the job slowed. An instance-level byte balance is a different metric from a volume's burst credit balance.

Look at what happens in the application before choosing a bigger volume. If one database query merges orders with every year's delivery events, fixing the query may reduce the volume work substantially. If reports from several accounts run together at the busiest time, staggering them may protect the interactive job. If CPU utilization is high and the volume rates stay comfortably below limits with no sustained wait, more disk capacity or IOPS is an unlikely first fix. Track two candidate explanations and a distinguishing observation. A faster average latency after a change is not good evidence if you unknowingly compared different file sizes or different caches.

For a known operation, record a small set of columns: timestamp and time zone, volume ID and attachment, configured type and settings, measured operation size and throughput, application duration and queue or latency evidence. Add the competing work active at that time. Report the exact conditions for any isolated benchmark. Synthetic benchmarks can look useful but should only run on approved disposable resources. Avoid feeding production devices with arbitrary writes or surprising a shared instance with heavy I/O. This lesson uses a completely local fixture of summary records.

Lab one. Calculate volume rates from a fictional metric export

Use an empty local scratch directory and Python 3. The data below represents completed operations at a volume boundary. Rows are independent fictional measurements and contain no actual AWS information or customer data. The file sweep needs larger operations, the orders workload uses smaller ones, and the quiet period illustrates a valid zero with no meaningful average operation size. Store the snippet as ebs-metrics.csv in your private folder. Do not treat the file's totals as measurements from an AWS volume.

case,seconds,read_ops,write_ops,read_bytes,write_bytes
orders,60,60000,30000,491520000,245760000
file-sweep,60,180000,0,23592960000,0
quiet,60,0,0,0,0

Before running the next script predict the order total and file sweep total. For orders, 60,000 plus 30,000 completed operations over a minute gives 1,500 IOPS. Together the bytes are 737,280,000. Divide by 60 and then by 1,048,576 to get about 11.72 MiB/s. Average 8 KiB per operation. For the file sweep, all 180,000 operations are reads, transferring 23,592,960,000 bytes. That gives 3,000 IOPS and 375 MiB/s, so the average size is 128 KiB. The quiet period records zero counts and bytes. No size can be inferred from it.

python3 - <<'PY'
from csv import DictReader
from pathlib import Path

fixture = Path("ebs-metrics.csv")
with fixture.open(newline="", encoding="utf-8") as stream:
    for row in DictReader(stream):
        name = row["case"]
        seconds = int(row["seconds"])
        operations = int(row["read_ops"]) + int(row["write_ops"])
        total_bytes = int(row["read_bytes"]) + int(row["write_bytes"])
        if seconds <= 0 or operations < 0 or total_bytes < 0:
            raise SystemExit("Fixture has invalid time or totals.")
        if not operations and total_bytes:
            raise SystemExit("Unexpected bytes without a completed operation.")
        iops = operations / seconds
        throughput = total_bytes / seconds / 1048576
        size = f"{total_bytes / operations / 1024:.2f} KiB" if operations else "n/a"
        print(f"{name}: {iops:.2f} IOPS, {throughput:.2f} MiB/s, mean I/O {size}")
PY
orders: 1500.00 IOPS, 11.72 MiB/s, mean I/O 8.00 KiB
file-sweep: 3000.00 IOPS, 375.00 MiB/s, mean I/O 128.00 KiB
quiet: 0.00 IOPS, 0.00 MiB/s, mean I/O n/a

If a result differs, check that the total bytes and operations came from the same row and that the denominator is 60 seconds, not a default one-second observation. No average operation size is reported for zero operations. A missing monitoring datapoint is not the same thing as this known quiet sample. If a real export has a hole, read the metric's applicability, filtering and time range before plotting a zero. Real metrics at different aggregation periods must be normalized properly before comparing a completed 60-second interval with a five-minute period.

Explain the outcome to a teammate. The orders row is well under the gp3 included numbers in this averaged sample, though there could be unobserved spikes or latency issues. The sweep row transfers 375 MiB/s and would require more than the 125 MiB/s included throughput if that rate needed to be sustained on a gp3 candidate. It does not imply that such a volume could somehow have produced that measurement despite being limited lower. Treat these as workload demands from a hypothetical equivalent setup. Actual delivery is bounded by whichever layer has the lower applicable ceiling.

Edit a copied CSV row if you want to compare two scenarios. For example halve the sweep's time but keep byte and operation counts, then compute the resulting rates. The calculation doubles to 6,000 IOPS and 750 MiB/s. Asking if that target can be met introduces the next challenges: storage configuration ratio, available EBS limits of the host, timing competition and workload shape. Retain your worksheet and remove only your invented CSV if finished. The lab computes from text files and never calls AWS or reads a mounted data disk.

Lab two. Evaluate three candidates with the same measured demand

Use the paper worksheet below. The dairy asks for a steady 4,800 IOPS at 64 KiB per counted operation during a processing window. Multiplying by 64 and dividing by 1,024 gives a workload target of 300 MiB/s. Add a safety margin only after stating how it was chosen and which resource it applies to. For this exercise evaluate the exact target without additional margin first. Assume ordinary Regional configurations and otherwise appropriate compatibility. The host limits are fictional.

CandidateProvisioned or intended volume settingsFictional sustained instance limitResult under the model
A40 GiB gp3, 3,000 IOPS, 125 MiB/s6,000 IOPS and 400 MiB/sNeither volume dimension can meet the target.
B40 GiB gp3, 5,000 IOPS, 350 MiB/s6,000 IOPS and 400 MiB/sBoth modeled limits can fit the target.
C40 GiB gp3, 5,000 IOPS, 350 MiB/s6,000 IOPS and 200 MiB/sThe instance throughput ceiling is too low.

Confirm the settings for B fit the gp3 ratio model. At 40 GiB and 500 IOPS per GiB, 5,000 is below the size-dependent upper bound. At 5,000 provisioned IOPS, 350 MiB/s is below the applicable throughput ratio and regional type cap. Then use the lower limit from each pair. For option C, 200 MiB/s divided by the operation size is 3,200 operations per second at 64 KiB. That is less than the demanded 4,800 even though both printed IOPS limits appear sufficient. The worksheet exposes why storage configuration and instance rates have to be considered together.

Now add a peak orders workload taking roughly 1,500 IOPS and 11.72 MiB/s on a different volume of the same host. With both activities, about 6,300 IOPS and 311.72 MiB/s are demanded across the host. Candidate B's aggregate instance limit no longer has enough IOPS in this simplified concurrent case. Does the dairy have to buy another volume? Propose scheduling the workloads apart, reducing one job's work or selecting an appropriate instance. Describe how to verify actual simultaneous behavior, including the real completion time and app latency. These tradeoffs matter more than memorizing the maximum volume figures.

Write a storage recommendation the dairy can review six months later

Begin your write-up with the operation and its accepted delay. For the daily order lookup, a reasonable statement is that the time to retrieve current records during the busy hour matters more than maximum large-file read speed. For the overnight sweep, deadline and interference with the order app matter. For archival delivery reports, ask how and how often staff retrieve them. A long scan and a few random lookups are different access patterns. Pricing can influence the choice once the design has realistic performance and recovery expectations. Do not optimize cost first by picking a lower tier that cannot serve the workload.

Compare estimated recurring costs for actual candidate settings. Each line may include provisioned capacity, applicable IOPS or throughput settings and separate snapshot storage. Some types price performance differently, and billing and regional availability can change. Use the current AWS pricing for the deployment's Region and service context when making a purchase decision. Avoid multiplying the whole invoice by a claim such as “twenty percent cheaper.” The gp3 guidance compares its per-GiB price against gp2, while a particular gp3 configuration can include different paid performance or affect instance choices. The invoice can include other attached resources too.

Set two follow-up observations before proposing a durable change. First measure a successful real lookup and daily scan on the current type over an adequate range. Record completion, latency and known metrics for that interval. Second run an approved isolated comparison on a representative copy after choosing the candidate settings. Use comparable workload, instance configuration and data initialization. A restore still reading snapshot data for the first time can behave differently from a fully initialized copy. Clearly separate an initialization effect from a volume type effect. A useful comparison makes at least one alternative explanation less plausible.

Choose a backup and fall-back path suited to the operation. A volume configuration change and a snapshot-backed restoration are different activities. If the plan uses a separate pre-change volume restored from an approved snapshot, that snapshot represents a particular time, and later records need a recovery strategy. Restoring a configuration is not the same as rolling back writes. Report how the app will verify that it sees the expected orders after the work. Do not start writing benchmarks against the application data to prove a faster tier. A rehearsal can use a local fixture for arithmetic and a separate authorized setup for live performance if one is assigned.

Set a revision condition such as “recheck when the order database grows by a quarter, when nightly batches overlap, or when regular supported metrics repeatedly show a specific ceiling was exceeded.” The design note should say what count or latency would change the recommendation. If a new integration reads all orders every five minutes, the workload itself changed. Procurement that once fit does not prove it still does. Recording assumptions makes the next review traceable when the business changes, and clarifies which evidence should govern a new type or instance decision.

Compare the slow requests with the average

Suppose a short practice log shows ninety-eight requests completing in 2 milliseconds each and two requests completing in 200 milliseconds each. The total is 596 milliseconds spread over one hundred requests, so the arithmetic mean is 5.96 milliseconds. The two users in the slow group experienced a very different wait. In this small illustration, sort results and use the nearest-rank definition to read the 99th percentile. The 99th value is 200 milliseconds. A monitoring tool may instead use a different percentile estimator. Record the statistics together with their time range and sample count.

Apply the same idea when judging a volume change. If you improve mean storage time while a nightly scan still delays order submissions, the outcome staff cares about may remain poor. Separate times spent waiting for database connections, executing queries and delivering responses when possible. Compare repeated runs with similar input volume and workload overlap. A disk metric measures a particular scope along that path. A user latency percentile describes a broader operation. They may correlate, but changes in one do not establish the cause of all behavior in the other. Decide in advance which observation should improve and when to compare it.

Apply the comparison to three operational requests

  1. Choose a small practice boot drive. Start with a compatible SSD and its current baseline. State why the data type and OS matter more than the largest number in the table. Confirm the cost assumptions and a tested root device configuration for your chosen AMI. Report what you would measure if boot or service startup became slow.

  2. Keep an occasional large block scan affordable. The team needs a mounted block interface and can plan for an infrequent sequential scan. Compare st1 and sc1 with their size-dependent sustained rates for that requirement. Estimate scan time from the expected sustained rate. Consider S3 only if the application and its operators can use an object storage interface and its access policy. Confirm boot and shared access are separate requirements.

  3. Investigate the busy order hour. The dashboard reports 6,000 completed operations per second at about 8 KiB each, but it also mentions high application latency with stable byte throughput. Compare provisioned capacity and throughput with the observed operation rate and available exceedance checks. State how higher queue wait, instance limits and query efficiency would produce different next observations. Choose a test that separates at least two causes rather than selecting io2 by name.

For each response, show demand in its units, acceptable sustainable performance, type and instance compatibility, recovery evidence and your open questions. If a number is a volume maximum rather than an average observation, label it accordingly. If your example uses an Outposts environment or another special configuration, look up the applicable table and revise the caps. If the case requires comparing prices, include the date and scope of the exact quote. Every proposed setting needs a reason linked to the observed or anticipated workload.

Explain the type and the evidence in an interview

What is the difference between IOPS and throughput?

IOPS counts operations per second and throughput measures data moved per second. Operation size connects them when we compare the same workload scope. At 1,500 operations each second at 8 KiB, the calculated rate is about 11.72 MiB/s. The same count with larger operations can need far more bandwidth. Both rates constrain a real volume under the instance's applicable limits.

Why can a new gp2 volume seem faster than it will be later?

Supported gp2 volumes can use credits to burst above size-dependent baseline. A short test with a full credit balance may finish before those credits run out. Gauge both the sustained load and burst balance, and compare long enough to cover the business operation. Gp3 gives separately configured performance with a different model.

When would you choose io2?

Choose it when compatible workloads have evidence of sustained high I/O demand or storage-latency and durability requirements that favor the type. Start by measuring affected user operations and relevant volume and instance rates. Product limits and latency objectives are conditional; changing the volume alone cannot improve a bottleneck caused by another part of the application.

When does HDD-backed block storage fit?

Consider st1 or sc1 for large sequential block access and compare frequent or infrequent use, size-based sustained rates and burst behavior. Confirm the host bandwidth and required deadline. These HDDs are not EBS boot types and are poorly matched to many small random operations. If a job is best served by an object store, reconsider the required interface separately.

Why can raising volume throughput leave the user experience unchanged?

The instance might already be the tighter aggregate limit, competing volumes may use its resources or storage may never have been the bottleneck. Observe the application request and same-period volume and instance evidence. If a query wastes work or an app is CPU-limited, adjust the responsible part and remeasure the actual outcome.

Check the limits with short calculations

  1. At 2,000 operations per second and 64 KiB each, what throughput is implied?

    Show answer

    125 MiB/s. Multiply the count by 64 KiB and divide by 1,024 KiB per MiB.

  2. A 100 GiB gp2 volume uses 3,000 IOPS and begins with 5.4 million credits. What is the simplified burst duration?

    Show answer

    Its baseline is 300, so the excess spends 2,700 credits each second. The model gives 2,000 seconds, about 33 minutes and 20 seconds.

  3. A 350 MiB/s volume backs a host limited to 200 MiB/s sustained. Can the app use 300 MiB/s continuously through it?

    Show answer

    The host ceiling is below that requirement. A higher volume ceiling does not raise the assumed sustained limit along the complete path.

  4. What can a zero completed operation row tell you about I/O size?

    Show answer

    There is no meaningful average size without completed operations. A known zero is also distinct from an unavailable datapoint.

  5. Which EBS family is appropriate to evaluate for a large sequential file scan but cannot be used for boot?

    Show answer

    The st1 and sc1 HDD-backed types fit suitable sequential block workloads. Decide using access frequency, baseline, burst balance and deadline.

Revision cards

Capacity
The amount the block device can hold. Check the guest filesystem separately for bytes actually available at the write path.
IOPS and MiB/s
Count rate and byte rate are different. Multiply by average counted operation size in consistent binary units to connect them.
Gp2 and gp3
Gp2 ties baseline IOPS to capacity and supports credit bursts in applicable sizes. Gp3 has included and independently configurable performance under its rules.
Provisioned IOPS SSD
Io1 and io2 can meet higher or more consistent performance requirements in supported configurations. Check volume size and instance ceilings.
HDD baseline and burst
St1 and sc1 suit appropriate sequential data. Size and credit state determine delivery estimates, and these types cannot serve as boot volumes.
Measure the right limits
Compare the volume, host and application evidence for the same workload interval. A high advertised per-volume rate cannot exceed the rest of the path.

Official references