Subscribe free
Morning Merge DevOps · Tuesday, December 1, 20264 min read

EBS volumes go multi-AZ; Adaptive Volumes bill by use

Also: a TCP throttle hiding in cgroups; Vercel Firewall from the CLI; OpenTofu fixes

AWS reworked the block storage most stateful systems sit on. Start with multi-AZ volumes, then decide whether your big, half-empty disks belong on the new billing model.

The main thing

A blueprint-style gantry holds a long cobalt blue storage drum that runs through the server racks of two separate buildings.

Amazon EBS volumes can now replicate synchronously across two Availability Zones. You choose a standby AZ, EBS writes your data to both zones, and you fail over with a single API call. It works for gp3 and io2, through the EBS APIs you already use.

AWS quotes a recovery point objective of zero, with 99.99999999% durability for io2 and 99.9999% for gp3. Until now EBS replicated only inside one zone.

That gap is why so many stateful services carry their own cross-zone machinery: database replicas, self-run block mirroring, or snapshot copies and an unrehearsed restore plan. For a single-instance database, multi-AZ volumes replace most of that with a storage setting.

The weird part is who pulls the lever. AWS says you initiate failover "when you are ready," and doesn't say whether EBS ever fails over on its own or how long a switch takes.

So the runbook gets shorter but doesn't go away. Something still has to decide a zone is gone and make the call.

AWS Elastic Disaster Recovery supports the new volumes too. EBS multi-AZ covers zones and DRS covers Regions. After a multi-AZ failover, DRS keeps replicating from the standby instance with no reinstall or re-onboarding, and recovery points and settings stay the same. A zone failover no longer breaks your cross-Region DR.

What to do: trial it on one stateful service whose zone-failure plan is "we have snapshots." It's available in most Regions. AWS gives no latency figures for synchronous cross-zone writes, so measure your write path and practice a failover before moving a busy database onto one.

Pay for the bytes, not the size

A gantry crane lowers a cut-away storage tank that is mostly empty, with a small stack of cobalt blue blocks at its base.

EBS Adaptive Volumes charge for the data stored, not the size you provision. There are two new types, gp3a and io2a. Storage costs the same per GB as gp3 and io2, dropping by up to 28% once a volume holds more than 500 GB. Performance is provisioned and billed separately.

AWS says gp3a costs up to 50% less than gp3 for volumes over 250 GB, and io2a up to 25% less than io2, at the same performance and durability. Its advice: io2a instead of io2 everywhere, gp3a when a volume has more than 250 GB unused, and gp3 for boot volumes and other small disks.

One catch on gp3a: unlike gp3, it includes no baseline IOPS or throughput. Elastic Volumes converts gp3 to gp3a, and io2 to io2a, without downtime, but check the performance you provision during the change.

TRIM now works on every EBS volume type on Nitro instances. With it on and your OS sending TRIM, deleted blocks stay out of new snapshots; existing snapshots don't change. It's on by default only for Adaptive Volumes, where it also lowers the volume bill. Elsewhere, enabling it on an existing volume takes a detach and reattach, so pair it with a maintenance window.

The throttle nginx couldn't see

Network cables flow out of a server rack under a gantry, with one cable pinched by a small cobalt blue clamp.

CDN77 traced slow downloads to TCP throttling hidden in the Linux kernel. On one edge server, some connections would slow to a crawl for hours, then recover with nobody touching anything. Only nginx cache misses were hit. A curl from the same box was fast, and a reboot fixed it for a while. Sysctls and versions matched healthy neighbors.

A bpftrace kprobe on tcp_rcv_established finally showed rcv_ssthresh pinned at exactly four times the advertised MSS, a value the kernel writes only when tcp_under_memory_pressure() returns true. Meanwhile nstat reported zero memory pressure.

The answer is the cgroup. systemd puts each service in its own cgroup, and as commenters quoted from the post, if memory reclaim there frees less than about 40% of what it scans, every socket in that cgroup is throttled for a second. Free memory on the host isn't part of the formula, which is why host-level dashboards stay green.

One commenter suggests the boot parameter cgroup.memory=nosocket as a workaround, if you don't need socket memory counted against cgroup limits. If you see self-healing throughput drops on a memory-limited service, look at reclaim in its cgroup before you blame the network.

Quick bits

OpenTofu 1.13.11 fixes provisioner SSH through bastions, and it can break your config. Provisioner SSH connections now check bastion_host_key where they used to use host_key by mistake. If you set host_key with a bastion and no bastion_host_key, add bastion_host_key with the same value before upgrading. 1.12.13 carries the same fix plus Go toolchain 1.26.11 for GO-2026-6859, an HTTP/1 server crash.

The Vercel CLI can now inspect and configure Firewall. vercel firewall covers status, traffic, alerts and bot activity, and turns managed rulesets (OWASP Core Ruleset, Bot Protection, AI Bots) on or off. Changes stage as drafts: vercel firewall diff shows them and vercel firewall publish makes them live. That's the right shape for letting an agent anywhere near a firewall.

AWS Interconnect - last mile is generally available with AT&T. Data centers, branches and colocation sites reach AWS over AT&T's network without ordering cross-connects or configuring routers. Each connection is provisioned by default across two physically diverse locations with four redundant links, backed by a 99.99% availability SLA up to the Direct Connect port.

Multi-AZ volumes turn zone failure into a storage setting, so the question worth asking today is who, or what, calls the failover API.

← All Morning Merge DevOps issues

Get this in your inbox every morning.

Free. Five minutes. Unsubscribe in one click.

Subscribe free →