AWS us-east-1 DynamoDB DNS Outage
A race between two copies of DNS automation left DynamoDB's address empty, and recovery set off a 15-hour chain of failures.
- Severity
- History books
- Difficulty
- advanced
- Companies
- Amazon Web Services
- Tech
- DynamoDB, DNS, Route 53, EC2, Network Load Balancer, Lambda
- Root cause
- latent bug, dependency cascade
The story
Quick (1 min)
On 19–20 October 2025, Amazon's biggest cloud region (us-east-1 in Northern Virginia) had a long outage. Apps and websites around the world that rely on it broke for hours.
It began with DynamoDB, a database many AWS services depend on. DynamoDB uses automation to keep its DNS records (its "address book" entry) up to date. Two copies of that automation raced each other. One overwrote a new plan with an old one, the other deleted the old one, and DynamoDB's address ended up empty. Nothing could find DynamoDB.
DNS was fixed in about three hours, but the systems that launch new servers had piled up so much backed-up work that they jammed, and then load balancers started failing health checks. Full recovery took about 14.5 hours.
The lesson: concurrency bugs in automation can be catastrophic, and recovery itself needs to be tested at scale.
Keep reading to the end to earn XP.Read. XP earned.
Engineer (2 min)
DynamoDB's DNS automation. Two components manage hundreds of thousands of DNS records:
- DNS Planner builds regional "plans" (which load balancers, which weights) from health and capacity.
- DNS Enactor applies plans to Route 53 using transactions. It runs redundantly in three AZs, each independently.
The race (11:48 PM PDT, 19 Oct):
- Enactor A picked up a plan and checked once that it was newer than the current one. Then it hit unusually high delays, retrying endpoint after endpoint.
- Meanwhile the Planner produced many newer plans, and Enactor B applied a much newer one quickly.
- B finished and ran clean-up, deleting plans "significantly older" than the one it just applied.
- At that moment, A, whose "is my plan newer?" check was now stale, applied its old plan to
dynamodb.us-east-1.amazonaws.com. - B's clean-up then deleted that old plan, now the active one. All IP addresses for the regional endpoint were removed, and the inconsistent state blocked any further automatic updates.
DynamoDB recovery. Root cause found by 12:38 AM; DNS restored at 2:25 AM; clients recovered as cached records expired by 2:40 AM. Operators had to step in manually.
EC2 congestive collapse. DropletWorkflow Manager (DWFM) holds leases on the physical hosts ("droplets") and checks in using DynamoDB. Leases timed out during the outage. Afterwards DWFM tried to re-lease the whole fleet at once, and work timed out before it finished and was re-queued, a congestive collapse with no established recovery procedure. Engineers throttled work and selectively restarted hosts (from 4:14 AM).
Network and NLB. A backlog in Network Manager meant new instances launched without network connectivity. NLB health checks then flapped, triggering automatic AZ DNS failover that removed capacity, until 2:09 PM.
Interview takeaway: "check then act" with stale checks is a race. Use conditional writes on versions, and design recovery to cope with a backlog.
Keep reading to the end to earn XP.Read. XP earned.
Deep dive (3 min)
Three distinct impact periods (PDT, from AWS's summary)
- DynamoDB: 11:48 PM (19 Oct) to 2:40 AM (20 Oct). API errors, and no new connections from customers or internal AWS services.
- EC2 launches: 2:25 AM to 10:36 AM launches failed ("insufficient capacity" / "request limit exceeded"). Some new instances lacked connectivity until 1:50 PM.
- NLB: 5:30 AM to 2:09 PM. Increased connection errors on some load balancers.
Event start 11:48 PM on 19 Oct, end 2:20 PM on 20 Oct.
Detailed timeline
- 11:48 PM: the race empties the DynamoDB regional endpoint's DNS record. Global tables keep working in other regions, but replication to and from us-east-1 lags.
- 12:38 AM: DNS state identified as the source.
- 1:15 AM: temporary mitigations let some internal services reach DynamoDB and repair key internal tooling.
- 2:25 AM: all DNS information restored. 2:32 AM: global table replicas caught up. 2:40 AM: cached records expire and clients reconnect.
- 2:25 AM onward: DWFM tries to re-establish leases with droplets across the whole fleet, can't finish before timeouts, and re-queues work. Congestive collapse.
- 4:14 AM: incoming work throttled; selective DWFM host restarts. 5:28 AM: leases established with all droplets.
- 5:28 AM: Network Manager starts working through a backlog of network state. 6:21 AM: propagation latency rises, and new instances launch without connectivity.
- 6:52 AM: monitoring detects NLB health check failures. Flapping checks overload the health subsystem and trigger AZ DNS failover, removing capacity.
- 10:36 AM: network propagation normal; EC2 launches working. 11:23 AM: throttles start being relaxed.
- 1:50 PM: all EC2 APIs and launches normal. 2:09 PM: NLB recovered.
Other services hit (examples from AWS's summary)
Lambda (until 2:15 PM), STS (with a second wave from NLB issues), IAM console sign-in, Amazon Connect, Redshift, Fargate and more.
The heart of the race
"The check that was made at the start of the plan application process, which ensures that the plan is newer than the previously applied plan, was stale by this time due to the unusually high delays in Enactor processing."
AWS's changes
- Disabled the DynamoDB DNS Planner and DNS Enactor automation worldwide. Before re-enabling, AWS will fix the race and add protections against applying incorrect plans.
- NLB: a velocity control limiting how much capacity a single NLB can remove when health check failures cause AZ failover.
- EC2: a test suite that exercises the DWFM recovery workflow at scale, and throttling of incoming work based on queue size.
Keep reading to the end to earn XP.Read. XP earned.
Failure replay
Step by step, what broke and what it hit next. Showing the key steps. Switch to Engineer or Deep dive for every step.
- 11:48 PMDNS Enactor Adegraded
Enactor A checks its plan is newest, then gets badly delayed retrying endpoints. Its check goes stale.
Affects: DynamoDB DNS record
- 11:48 PMDNS Enactor Bhealthy
Enactor B applies a much newer plan, then starts cleaning up old plans.
Affects: DynamoDB DNS record
- 11:48 PMDynamoDB DNS recorddown
A overwrites the record with its old plan; B deletes that old plan. The regional endpoint now has no IP addresses.
Affects: DynamoDB
- 11:48 PMDynamoDBdown
Customers and internal AWS services can't resolve DynamoDB, and new connections fail.
Affects: EC2 DWFM, Customers
- 2:25 AMDynamoDBrecovering
Operators restore DNS by hand. Clients reconnect as cached records expire by 2:40 AM.
Affects: EC2 DWFM
- 2:25–5:28 AMEC2 DWFMfailing
Host leases expired during the outage. Re-leasing the whole fleet at once times out and re-queues, a congestive collapse.
Affects: Network Manager
- 5:28–10:36 AMNetwork Managerdegraded
A backlog of network state means new instances launch without connectivity.
Affects: Load balancers
- 6:52 AM–2:09 PMLoad balancersfailing
NLB health checks flap on half-configured instances and trigger AZ failover, removing healthy capacity.
Affects: Customers
- 2:20 PMCustomersrecovering
Throttles are lifted and services drain backlogs. The event ends about 14.5 hours after it began.
Impact
- Who was affected
- Customers and AWS services in us-east-1 depending on DynamoDB, EC2 launches, NLB, Lambda, STS, IAM sign-in, Connect, Redshift and more; existing EC2 instances stayed healthy.
- How long
- About 14.5 hours overall (11:48 PM PDT 19 Oct to 2:20 PM PDT 20 Oct); DynamoDB itself was impaired for about 3 hours.
- Cost
- not disclosed
Lessons
- "Check then act" races are deadly in redundant automation; use atomic conditional writes on version numbers.
- Clean-up jobs that delete state need extra safeguards, such as never deleting the currently active version.
- Automation should fail safe; an empty DNS record should be impossible to apply.
- Recovery workflows (re-leasing a whole fleet) need scale testing and throttling based on queue size.
- Health-check-driven failover needs velocity limits so flapping checks don't remove too much capacity.
Quiz
What emptied DynamoDB's regional DNS record?
The answer is A race between two DNS Enactors, one applying a stale plan and the other deleting it as old. A delayed Enactor overwrote a newer plan with an old one, which the other Enactor's clean-up then deleted, removing all IPs.
Check answer
A race between two DNS Enactors, one applying a stale plan and the other deleting it as old. A delayed Enactor overwrote a newer plan with an old one, which the other Enactor's clean-up then deleted, removing all IPs.
Why didn't the "is my plan newer?" check prevent the overwrite?
The answer is It was done once at the start and became stale because of unusually long delays. Time passed between the check and the write, so the check no longer reflected reality.
Check answer
It was done once at the start and became stale because of unusually long delays. Time passed between the check and the write, so the check no longer reflected reality.
Why did new EC2 launches keep failing after DynamoDB recovered?
The answer is DWFM was overwhelmed re-establishing leases with the whole fleet and fell into congestive collapse. Lease work kept timing out and being re-queued until engineers throttled work and restarted hosts.
Check answer
DWFM was overwhelmed re-establishing leases with the whole fleet and fell into congestive collapse. Lease work kept timing out and being re-queued until engineers throttled work and restarted hosts.
What did AWS do with the DNS Planner and Enactor automation?
The answer is Disabled it worldwide until the race is fixed and extra protections are added. AWS disabled the automation worldwide and will fix the race and add protections before re-enabling.
Check answer
Disabled it worldwide until the race is fixed and extra protections are added. AWS disabled the automation worldwide and will fix the race and add protections before re-enabling.
Interview prep
Try answering out loud before you open the model answer.
- system design
Three redundant workers apply versioned DNS plans. Explain how AWS's October 2025 race happened, and design the system so it can't.
Show model answer
Each worker checked once, at the start, that its plan was newer than the applied one, then took a long time applying it. A fast worker applied a newer plan and deleted old plans, while the slow worker overwrote with its stale plan, which was then deleted, leaving the record empty. Fixes: make each write a conditional, atomic compare-and-set on a version number ("apply only if current version < mine"), checked at write time rather than up front. Never let clean-up delete the active plan. Validate plans before applying (reject empty record sets). Or elect a single leader with fencing tokens so only one worker writes at a time.
A strong answer hits:
- Time-of-check vs time-of-use race
- Conditional writes or compare-and-set on versions
- Clean-up must never delete active state
- Validation and leader election with fencing
How did your answer compare? - system design
After a dependency recovers, your fleet manager tries to re-establish leases with every host and collapses under the load. How do you design recovery to avoid congestive collapse?
Show model answer
Treat recovery as a load problem. Rate-limit work admission based on queue depth (AWS's follow-up). Prioritise finishing in-flight work over starting new work. Use timeouts that grow or are relative to load, so work isn't thrown away just before completion. Batch and spread the re-lease process with jitter. Shed lower-priority requests such as new launches until core state is rebuilt. Test this recovery path at full fleet scale regularly, since AWS had no established procedure for it.
A strong answer hits:
- Admission control based on queue size
- Avoid redoing timed-out work endlessly
- Prioritise and batch recovery with jitter
- Scale-test the recovery workflow
How did your answer compare? - debugging
Load balancer health checks start flapping during recovery and automatic failover removes healthy capacity. What's going on and how do you stop it?
Show model answer
Health checks are measuring the wrong thing. AWS's NLB checked new instances before their network config had propagated, so healthy targets looked unhealthy and then healthy again. Flapping overloaded the checker and triggered AZ failover. Short term: disable automatic failover or raise thresholds to stop capacity loss. Long term: velocity limits on how much capacity can be removed, hysteresis on health state, and make sure instances only join once they're fully configured.
A strong answer hits:
- Flapping checks on half-configured targets
- Disable or limit automatic failover during incidents
- Velocity limits and hysteresis
- Readiness gating before adding to service
How did your answer compare?
Go deeper
- Official postmortemSummary of the Amazon DynamoDB Service Disruption in the Northern Virginia (US-EAST-1) RegionAmazon Web Services, link checked 2026-11-25