Business Challenge
Eleven posts of this series have been about one mechanism: an Auto Scaling group notices an instance or a zone is gone and replaces capacity somewhere that works. That is how compute survives an Availability Zone, and it is automatic.
EBS multi-AZ volumes, announced last week, do the equivalent for a block device. Synchronous replication across two zones, an RPO of zero, and “Failover is designed to complete in under 10 seconds, 99% of the time.”
The two do not go together, and the documentation says so in a list.
“Multi-AZ volumes do not support the following” — and the list is worth reading as a design statement rather than as errata:
| Unsupported | What that rules out |
|---|---|
| Auto Scaling groups | Any fleet whose capacity is managed for you |
| Spot Instances | Any compute that can be reclaimed |
| Multi-Attach | Shared-disk clustering as the failover mechanism |
| Fast Snapshot Restore | The usual way to make a restore fast |
| AWS Fault Injection Service | Testing the failover with the service built for it |
| Managed instances | The managed-compute path |
CreateReplaceRootVolumeTask | Replacing a root volume in place |
| NVMe reservations, copy volume | Two lower-level primitives |
The first two are the architecture. A volume designed to survive a zone cannot be attached to the compute model AWS spent a decade teaching people to use, nor to the cheap compute model, nor tested with the chaos-engineering service. What is left is an instance you named, launched and look after.
“Amazon EBS does not automatically fail over from the active Availability Zone to the standby Availability Zone.” So the ten seconds is the duration of an operation somebody decides to perform.
And what it leaves you holding is spelled out: “After the failover, you mount the file system and start your application on the standby instance to resume operations. Because the application now runs on a different instance, redirect client traffic to it, for example by updating DNS.”
Mount, start, redirect. Three steps that an Auto Scaling group with a load balancer does without being asked, and that here are yours. The ten-second figure describes the first link in a chain whose remaining links are a runbook.
You can attach an instance in the standby zone in advance, and should — it removes a step. But: “The standby instance can see the device, but you cannot read from, directly write to, or mount a file system on the standby replica until you fail over.”
So the standby instance cannot open the database, cannot warm a page cache from the volume, cannot verify the filesystem mounts. It can exist, and that is all. Everything that normally makes a warm standby warm requires reading the disk.
Nor is the instance load-bearing for the replication:
“A multi-AZ volume does not need an instance in the standby Availability Zone, because
Amazon EBS replicates your data to the standby replica entirely within the Amazon EBS layer,
independent of any instance.” Which is good design — and it means the instance
is there purely to save you an AttachVolume call on the worst day of the quarter.
Architecture
What the two mechanisms each give you
| Auto Scaling group | EBS multi-AZ volume | |
|---|---|---|
| Survives a zone | Yes, by replacing capacity elsewhere | Yes, by holding the data in two |
| Trigger | Automatic, on health checks | Manual, FailoverVolumes |
| State | Assumes instances are disposable | Assumes the data must survive |
| After the event | Traffic follows via the load balancer | You mount, start, and redirect |
| Capacity in the other zone | Requested on demand | Not guaranteed unless reserved |
| Together | Not supported | |
The row that explains the exclusion is the third one. An Auto Scaling group's entire premise is that an instance is interchangeable and its local state worthless; replacing one is the cure for nearly everything. A multi-AZ volume's premise is that the data on this device is the thing being protected and must be deliberately moved, intact, with a human deciding when. Those are not compatible premises, and composing them would mean an Auto Scaling group terminating an instance whose volume is mid-failover.
Where the boundary now sits
Read across both products, AWS has drawn a line through the stateful tier:
- Stateless tiers keep using Auto Scaling groups, multiple zones and load balancers. Nothing here changes for them, and they should not be using multi-AZ volumes.
- Stateful tiers with native replication — a database that clusters, a distributed store — should keep using that. It gives automatic failover, which this does not.
- Stateful tiers with nothing are the target. A single-writer database with no clustering, a licence server, an appliance, a legacy application with local state. This is a real and common category, and until now its only block-level option was building replication yourself.
That third category is the one worth naming clearly, because it is where the manual failover stops being a complaint. A workload that cannot cluster also cannot fail over automatically without someone writing the orchestration, so a managed ten-second disk failover plus a runbook is a straightforward improvement on what it had.
The instance-level failover is the useful primitive
“You can fail over a single volume, or fail over all of the multi-AZ volumes attached to an instance that have their active replica in the instance's Availability Zone.” And critically: “An instance-level failover is crash-consistent across the volumes, and either all of them fail over or none do.”
Crash-consistent and atomic across volumes is what makes this usable for a database whose data, log and temp volumes are separate devices. All-or-nothing is the property you need; a partial failover across a striped set or a data-plus-log pair would be worse than no failover.
Up to 64 multi-AZ volumes per instance,
“subject to the instance type's volume attachment limit”, and
“You can attach multi-AZ volumes to most Nitro-based Amazon EC2 instances” with
the p6e-gb300 family excluded.
The constraint nobody will plan for
“You can't use ModifyInstanceAttribute to change an instance's type while
multi-AZ volumes are attached. To change the instance type, detach the multi-AZ volumes, change the
instance type, and then reattach them.”
Resizing an instance is ordinary maintenance: stop, change type, start. On a multi-AZ volume it becomes detach, change, reattach, with the volumes unattached in between. For the stateful singleton this feature targets — precisely the kind of workload that gets vertically scaled because it cannot be scaled horizontally — that is a meaningful addition to a routine operation.
The capacity problem the failover does not solve
“That instance requires Amazon EC2 capacity in the new active Availability Zone, and Amazon EC2 capacity is not guaranteed unless you reserve it.”
This is the sentence that decides whether the design works. A zonal event is exactly when everyone else is also asking for instances in the surviving zones. The documentation's advice is unambiguous and worth quoting in full: “As a best practice, provision your redundancy ahead of time and treat a standby Availability Zone change as a planned configuration change, not something you do reactively during a disruption when capacity is least likely to be available.”
Which means the honest cost of this design is: two copies of the storage, plus an instance in the standby zone you cannot use, plus a capacity reservation to guarantee you could use it. That is the price of zonal resilience for a workload that cannot cluster, and it is worth comparing against what building the replication yourself costs rather than against a single-AZ volume.
What tells you to fail over
Since nothing does it for you, the signal matters. Two classes, and the second is the one a zonal event produces: “Amazon Application Recovery Controller (ARC) zonal autoshift provides observer notifications that indicate when an Availability Zone is experiencing a large-scale event.”
That is a sensible pairing — ARC is the service that already knows about zonal events, and it
is the input a failover decision should take. Worth noting what it is not: a trigger. It notifies,
and you still call FailoverVolumes.
And it is a one-way door
“You can't convert a multi-AZ volume back to a single-AZ volume.” Combined with the snapshot-and-restore route in, adopting this is a decision to make per workload and to make once.
Why This Architecture Holds Up
Excluding Auto Scaling groups is correct, not an omission
An Auto Scaling group's response to a sick instance is to terminate it. A multi-AZ volume's premise is that the instance's disk holds something worth preserving and moving carefully. A combination would mean the group could terminate the instance holding the active replica during a failover, or launch a replacement in a zone the volume is not active in. Rather than invent semantics for that, AWS declined the combination and documented it. That is the better engineering decision and it is honest about the consequence.
Manual failover is the right default for a single writer
Automatic promotion of a block device is how you get two writers. There is no quorum here, no fencing protocol, no application-level coordination — just a disk with two copies. An automatic failover on a transient network blip, with the old instance still running and still writing, is data corruption rather than resilience. Requiring a decision is the conservative and correct choice.
The standby being unreadable prevents the obvious mistake
If the standby replica could be mounted read-only, people would mount it, and some of them would serve stale reads from it believing they were current. Blocking all I/O until failover makes the single-writer model enforceable rather than advisory, and it is why the design does not need a fencing story.
Key Architecture Decisions
| Decision | Take | Why |
|---|---|---|
| Stateless web and app tiers | Auto Scaling groups, as before | Multi-AZ volumes are unsupported there and unnecessary |
| Databases that cluster natively | Keep the native replication | It fails over automatically; this does not |
| Single-writer workloads with no clustering | This is the target; adopt deliberately | The alternative is building block replication yourself |
| Budgeting it | Two storage copies, a standby instance, and a reservation | Capacity in the standby zone is not guaranteed otherwise |
| Multi-volume workloads | Use instance-level failover | Crash-consistent and all-or-nothing across the set |
| Vertical scaling on these instances | Plan a detach and reattach | ModifyInstanceAttribute is blocked while attached |
| Deciding when to fail over | Wire ARC zonal autoshift notifications in | It is the zone-level signal, and it notifies rather than acts |
| Testing the failover | Not with Fault Injection Service | FIS is on the unsupported list |
The audit worth running
- Every stateful instance that is not in an Auto Scaling group and holds data you cannot lose — that set is the candidate list, and it is probably longer than anyone expects.
- For each candidate, whether the application can tolerate the inter-zone write latency, measured rather than assumed.
- For each adopted volume, whether a capacity reservation exists in the standby zone. Without one the failover works and the recovery may not.
- Every runbook that currently says the Auto Scaling group will handle it, for workloads that are about to stop being in one.
Closing Thought
Twelve posts into Auto Scaling and this is the first one where the interesting thing is a boundary rather than a behaviour. Everything the series covered — health checks, lifecycle hooks, warm pools, refresh, maintenance policies, lifetimes, protection, termination policies, suspended processes, standby — exists to make a fleet of interchangeable instances survive things. Not one of it applies to a volume that has to survive a zone with its data intact.
What AWS has shipped is not an extension of that model but an alternative to it, for the workloads the model was never able to hold. The exclusion list is the clearest statement of intent in either product's documentation: this is for the instance you named.
The finding I would act on is the capacity reservation. A ten-second disk failover with no instance to attach to is a worse outcome than no failover at all, because it arrives with the confidence of having worked. AWS says plainly that capacity is not guaranteed unless you reserve it, and that sentence is the difference between a design and a hope.
Official AWS Reference
- Amazon EBS Multi-AZ volumes — the full unsupported list including Auto Scaling groups, Spot Instances, Multi-Attach, Fast Snapshot Restore, AWS Fault Injection Service, managed instances and
CreateReplaceRootVolumeTask, that EBS does not fail over automatically, the sub-10-second failover design point, that the standby replica serves no I/O until failover and what a pre-attached standby instance can and cannot do, the mount-start-redirect steps after a failover, that replication happens entirely within the EBS layer and needs no standby instance, the crash-consistent all-or-nothing instance-level failover, the 64-volume limit and Nitro support with thep6e-gb300exclusion, theModifyInstanceAttributerestriction, that EC2 capacity is not guaranteed unless reserved and the static-stability best practice, the ARC zonal autoshift observer notifications, and that conversion back to single-AZ is impossible - Auto Scaling groups — further reading on the compute model this volume type excludes; no claims in this post are drawn from it
- Zonal autoshift — further reading on the zone-level signal the documentation recommends for deciding when to fail over; no claims in this post are drawn from it
- Use static stability to prevent bimodal behavior — further reading, linked from the EBS page, on why standby capacity should be provisioned ahead of an event; no claims in this post are drawn from it
Comments