Storage performance and recovery
Measure the workload, not just capacity
A database with 100 GiB of data may need a very different disk from a 100 GiB video collection. IOPS counts input/output operations per second; throughput measures bytes per second; latency measures the time a request takes. Capacity describes how much data can be held. A disk can have plenty of free space yet be too slow. Start with a synthetic database demand of 3000 IOPS at 16 KiB per operation and a 40 MiB/s throughput requirement for a separate sequential workload. Observe operation size, read/write mix, concurrency, peak duration and latency percentiles in the real application before choosing a service tier.
Convert IOPS into throughput
For a simplified workload of equal-size operations, throughput in MiB/s = IOPS × KiB per operation / 1024. At 3000 IOPS and 16 KiB, the workload transfers 46.875 MiB/s. At 1000 IOPS and 256 KiB, it transfers 250 MiB/s. One KiB is 1024 bytes and one MiB is 1024 KiB; MB/s is a different decimal unit. Provider accounting may merge or split operations and enforce limits differently. This calculation is a workload estimate, not a guarantee of billed or achieved IOPS.
Find the smallest performance ceiling
Suppose a fictional disk offers 4000 IOPS and 100 MiB/s, while the VM can deliver only 2500 IOPS and 80 MiB/s to that disk. At 16 KiB per operation, the theoretical ceiling is the minimum of 4000, 2500, 100 × 1024 / 16 and 80 × 1024 / 16: 2500 IOPS or 39.0625 MiB/s. It cannot satisfy the database demand of 3000 IOPS. At 256 KiB, throughput limits reduce the ceiling to 320 IOPS, because the VM allows 80 MiB/s. Upgrading only the disk may not solve the bottleneck. EBS and Azure documentation identify both disk and instance limits; Google Cloud disk limits also vary with disk and compute configuration. Actual results may be lower due to queueing, caching, network, contention and workload behavior.
Latency and queueing
A request can wait in a queue before the storage device serves it. If 8 requests are outstanding on average and the completed rate is 2000 operations/s, the steady-state mean response time estimated using Little’s law is 8/2000 seconds, or 4 ms. This is a mean, not a p95 or p99 percentile. High throughput can coexist with poor tail latency. Compare read and write latency separately and measure under a representative load. For learning, use the fixed offline data; do not run a disk stress test on a production server or shared host.
Snapshots, replication and backups solve different problems
A snapshot is a point-in-time representation of storage. Some services store incremental changes and still expose a complete restore point. Replication improves tolerance of certain hardware or zone failures but can replicate accidental deletion or corruption. A crash-consistent disk snapshot resembles the persistent state following an unexpected interruption; buffered or in-flight writes may not be captured. Application-consistent recovery coordinates the application and storage so that required data and transaction logs can be recovered correctly. For databases, use the database engine’s documented backup or quiescing procedure, and coordinate all dependent disks. Filesystem flushing alone does not establish application consistency. Keep independent backup copies with controlled deletion and key access.
Compute recovery objectives and test the result
Recovery point objective (RPO) is the target maximum tolerable data loss measured in time. Recovery time objective (RTO) is the target time to restore service. In our toy incident at 10:45, the newest usable recovery point is 10:30, so potential data loss is 15 minutes. A 20-minute RPO is met in this scenario; a 10-minute RPO is not. If detection takes 5 minutes, target provisioning 10, data restore 25, verification 15 and cutover 5, sequential recovery takes 60 minutes. That misses a 45-minute RTO. Backup frequency alone does not guarantee RPO: failed snapshots, delayed completion and missing transaction logs can make the latest usable point older. RTO must include dependencies and user-facing readiness, not just the provider reporting that a restore is complete.
Work through a cost and recovery trade-off
Assume a fictional volume costs $0.08/GiB-month, 100 GiB provisioned; retained snapshots consume 25 GiB at $0.04/GiB-month; and extra performance costs $3/month. Total modeled monthly cost = $8 + $1 + $3 = $12. An archive copy with low storage charges may be useful for long-term retention, but cannot replace a recovery path that must restore service rapidly. Real charges depend on capacity units, disk SKU, performance provisioning, stored snapshot blocks, retrieval, network and region. Do not infer the physical size of incremental backup data from the logical size of each restore point.
Restore in an isolated target and validate
Choose a recovery point, confirm the restore target is authorized and compatible, verify permissions and key availability, and reconstruct all necessary application components in an isolated environment. Check expected synthetic record counts and a known checksum, run application integrity checks, verify access controls, and measure elapsed time. Only after these checks may an authorized operator plan a cutover. A successful snapshot creation is not a successful recovery test. For the offline practice, calculate throughput and bottlenecks, then evaluate the incident timeline and backup evidence. In the next chapter, design virtual network and subnet boundaries for compute and storage access.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Storage performance and recovery — knowledge check
Choose the best answer for each offline scenario.
What throughput corresponds to 3000 IOPS at 16 KiB per operation?
A disk supports 4000 IOPS but its VM supports 2500. With no smaller throughput ceiling, what is the upper bound?
Which evidence best establishes application-consistent database recovery?
Incident at 10:45, latest usable recovery point 10:30. What is the potential data-loss interval?
Recovery takes 5 + 10 + 25 + 15 + 5 minutes in sequential stages. Does it meet a 45-minute RTO?