15.7 EBS Performance: IOPS, Throughput, and the Nitro System

Right, let’s talk about making your EBS volumes go fast. Because if you just pick a size and hope for the best, you’re going to have a bad time. Performance here boils down to two things you’re constantly balancing: IOPS (Input/Output Operations Per Second) and Throughput (MB/s). Think of IOPS as how many times you can knock on a door, and throughput as how much stuff you can shove through it once it’s open. A tiny, rapid-fire knock isn’t moving a sofa.

15.6 EBS Encryption: KMS Integration and Encrypted Snapshot Copy

Right, so you’ve decided you don’t want your data sitting on a disk in some AWS data center for anyone to stumble upon. Good call. Encrypting your EBS volumes isn’t just a best practice; it’s often a regulatory requirement. And the good news is, AWS makes this almost criminally easy. The key (pun intended) to understanding it all is realizing that EBS encryption is a feature, but the real brains of the operation is the AWS Key Management Service (KMS). Let’s pull back the curtain.

15.5 Multi-Attach: Sharing an io2 Volume Across Instances

Right, so you need a single block of storage that multiple EC2 instances can read and write to simultaneously. Your first thought is probably a network file system, and you’d be right 99% of the time. But what if your application is so deeply, pathologically tied to block-level semantics that NFS or Lustre just won’t cut it? What if you need sub-millisecond latency and can’t tolerate a filesystem protocol getting in the way? Enter Multi-Attach for io2 volumes. It’s the high-performance, high-stakes way to share a single disk across multiple instances in the same Availability Zone.

15.4 Fast Snapshot Restore and Snapshot Lifecycle Manager

Right, let’s talk about making your snapshots actually useful. You’ve dutifully taken them, they’re sitting there in S3, and you’re patting yourself on the back for being a responsible cloud citizen. But here’s the cold, hard truth: a standard snapshot is like a can of soup in your pantry. It’s there, but it’s not dinner until you heat it up. And heating it up—restoring it to a new volume—takes time. Often hours, depending on size. That’s a non-starter for any application that needs to get back online now. That’s where our first hero, Fast Snapshot Restore, comes in.

15.3 EBS Snapshots: Incremental Backups to S3

Right, let’s talk about EBS snapshots. This is where we stop crossing our fingers and start actually backing up our data. An EBS volume is great, but it’s stuck in a single Availability Zone. If that AZ has a really bad day, your volume has a bad day. Snapshots are your escape pod. They’re incremental, point-in-time backups of your EBS volumes that get stored in the highly durable, multi-AZ wonderland of S3.

15.2 Attaching, Detaching, and Resizing Volumes

Right, let’s get our hands dirty with the actual mechanics of EBS volumes. This is where the rubber meets the road, or more accurately, where your data meets the virtualized spinning rust (or gloriously fast silicon, if you’ve sprung for the good stuff). Attaching, detaching, and resizing these things is mostly straightforward, but the cloud gods, in their infinite wisdom, have sprinkled in a few quirks just to keep you on your toes.

15.1 EBS Volume Types: gp3, gp2, io2 Block Express, st1, sc1

Right, let’s talk about spinning rust in the cloud. EBS volumes are the virtual hard drives you attach to your EC2 instances. They’re persistent, network-attached storage, which is a fancy way of saying they live on a shelf in an AWS data center somewhere and get to your server over a network cable. This is the first thing to internalize: your “local” disk is actually miles away. This network hop is the source of both its flexibility and most of its performance quirks.

— joke —

...