← All incidents
Incident dossier · Rank #18 · magnitude 7.5

AWS Kinesis OS Thread-Limit Cascade — US-EAST-1 (Nov 25, 2020)

Amazon Web Services 2020-11-25 11h 0m to substantial restoration Software

Summary

A small addition of capacity to the Kinesis Data Streams front-end fleet in US-EAST-1 pushed every server past an operating-system maximum thread-count limit. Because each front-end server creates OS threads for every other server in the fleet, the added hosts made the per-server thread count breach the OS ceiling; cache construction failed and servers were left with useless shard-maps, unable to route requests. Kinesis errored and slowed, and because many AWS services depend on Kinesis, CloudWatch, Cognito, Lambda, EventBridge and customer workloads cascaded down. Recovery was throttled by slow membership propagation and restart contention, so full Kinesis restoration took roughly 17 hours.

Users affected
Not publicly quantified by AWS; broad impact across many AWS customers in US-EAST-1 whose applications depend on Kinesis and dependent services (CloudWatch, Cognito, Lambda, EventBridge/CloudWatch Events, and downstream ECS/EKS provisioning and AWS Auto Scaling).
Duration
11h 0m — First customer-visible errors 05:15 PST → majority of downstream issues resolved 16:15 PST
Financial
Not published by AWS for this event. (The ~$34M Parametrix estimate belongs to the separate Dec 7, 2021 US-EAST-1 outage and does not apply here.)
Scope
Major regional multi-service outage
Site
AWS US-EAST-1 (Kinesis Data Streams front-end fleet) · Ashburn, USA, us-east-1
Services down
Amazon Kinesis Data Streams, Amazon CloudWatch (metrics and alarms), Amazon Cognito (User Pools), AWS Lambda (invocation error rates), Amazon EventBridge / CloudWatch Events, Amazon ECS / EKS (provisioning and scaling delays, via EventBridge), AWS Auto Scaling (metric-dependent policy delays)

How the defences failed

How the defences failed — AWS4 failure modes in the order the sequence of events first shows them, 1 latent conditions with no moment in the record, ending in the outcome: Kinesis down 18.5 h, 4 services hit.LATENT — IN PLACE BEFORE THE EVENTFM-03 · RPN 162Front-end fleet not in cellsS9 · O3 · D6ACTIVE — IN THE ORDER THE RECORD SHOWS THEMFM-01 · RPN 504Thread cap hit on every serverS9 · O7 · D8FM-02 · RPN 392No thread-use alarmS7 · O7 · D8FM-04 · RPN 504Slow front-end cold restartS8 · O7 · D9FM-05 · RPN 192Dependents buffer unboundedS8 · O3 · D8OUTCOMEKinesis down 18.5 h, 4 services hitLEGENDMedium or low priorityHigh priorityNext failure in the record
How the defences failed — AWS4 failure modes in the order the sequence of events first shows them, 1 latent conditions with no moment in the record, ending in the outcome: Kinesis down 18.5 h, 4 services hit.LATENT — BEFORE THE EVENTFM-03 · RPN 162Front-end fleet not in cellsS9 · O3 · D6ACTIVE — RECORD ORDERFM-01 · RPN 504Thread cap hit on every serverS9 · O7 · D8FM-02 · RPN 392No thread-use alarmS7 · O7 · D8FM-04 · RPN 504Slow front-end cold restartS8 · O7 · D9FM-05 · RPN 192Dependents buffer unboundedS8 · O3 · D8OUTCOMEKinesis down 18.5 h, 4 services hitLEGENDMedium or low priorityHigh priorityNext failure in the record
Every failure mode of the FMEA below. Active modes run in the order the sequence of events first shows them — record order, not a proof of cause; latent modes were in place before the event. Red outline: high priority. Dashed: no published corrective action.
Magnitude sub-scores (0–10)Magnitude sub-scores (0–10)Users 8Users affected (0–10) — breadth of the user/customer population impacted. — scored 8/10.Financial 7Financial impact (0–10) — direct + consequential cost. — scored 7/10.Duration 5Outage duration (0–10), from the measured duration by fixed bands: <1 h 3 · 1–4 h 4 · 4–12 h 5 · 12–24 h 6 · 1–3 d 7 · 3–7 d 8 · 7–30 d 9 · >30 d 10; no customer downtime 1. — scored 5/10.Blast 9Blast radius (0–10) — how wide the fault propagated across systems/regions. — scored 9/10.
Magnitude 7.5 = blast 9×0.35 + users 8×0.25 + financial 7×0.20 + duration 5×0.20 (sub-scores 0–10 · weighted composite)

High blast radius: a single control-plane data service (Kinesis) took down at least five dependent AWS services plus customer workloads in the busiest AWS region. Duration: ~11 h from the first customer-visible errors to the majority of downstream services recovering; full Kinesis recovery took ~17 h. User and financial magnitudes are inferred as large but are NOT quantified by AWS for this event; scores reflect scope of dependent services, not a published cost/user figure.

All 10 impact metrics
Capacity-addition (trigger) window63 min (02:44–03:47 AM PST)
Detection lag (breach to first alarm)~1h28m (03:47 to 05:15 AM PST)
Time to confirmed root cause~5h52m after breach (03:47 to 09:39 AM PST)
Constrained restart ratea few hundred servers per hour
Recovery span (restart start to full recovery)12h16m (10:07 AM to 10:23 PM PST)
Total Kinesis outage duration~18h36m from breach (03:47 AM to 10:23 PM PST)
Thread scaling relationshipO(N): threads per server proportional to fleet size
Downstream services impacted6+ (Cognito, CloudWatch, Lambda, EventBridge, ECS, EKS)
Cognito recovery time02:18 PM PST
CloudWatch full recovery10:31 PM PST

Sequence of events

  1. TRIGGER A 'relatively small addition of capacity' begins to be added to the Kinesis front-end fleet — the trigger, explicitly not the root cause.
  2. TRIGGER Capacity addition finishes; the larger fleet pushes every server past the OS max-thread limit — 'the new capacity had caused all of the servers in the fleet to exceed the maximum number of threads allowed by an operating system configuration.'
  3. CASCADE Failure mechanism engages fleet-wide: 'cache construction was failing to complete and front-end servers were ending up with useless shard-maps,' disabling authentication, throttling and request-routing.
  4. DETECTION Automated monitoring raises the first alarms for elevated Kinesis error rates — the sensor detects the symptom, not the underlying thread-limit breach, roughly 90 minutes after the breach. CloudWatch Events/EventBridge errors also begin at 5:15 AM.First responder
  5. MITIGATION Engineers narrow the root cause to candidate failures that would require a full front-end fleet restart.Operations lead
  6. DETECTION Root cause confirmed: the new capacity caused all servers to exceed the OS-configured maximum thread count — the 'confirmation of the fire's origin.'
  7. RECOVERY Controlled, throttled restart of the front-end fleet begins; first servers take traffic again. Restart deliberately slow because too-fast recovery would overwhelm shard-map/metadata retrieval and re-trigger failure.Service recovery lead
  8. MITIGATION Cognito remediation deployment begins to reduce reliance on the backlogged Kinesis Data Stream buffers that were blocking Cognito webservers.Service recovery lead
  9. MITIGATION Engineers act to mitigate Lambda memory contention — metric buffering that could not drain to Kinesis had 'caused memory contention on the underlying service hosts used for Lambda function invocations' — resolving the increased error rates.Operations lead
  10. IMPACT CloudWatch shows 'increased error rates and latencies for the PutMetricData and PutLogEvents APIs'; ECS and EKS, which use EventBridge for internal workflows, see delays provisioning new clusters and scaling existing ones.
  11. RECOVERY 'By 2:18 PM PST Cognito was operating normally' after authentication failures clear.
  12. RECOVERY Majority of EventBridge, ECS and EKS event-processing and cluster-provisioning issues resolved.
  13. MITIGATION De-energisation/isolation analogue: the added capacity is removed and the fleet restarted under the existing OS limit; AWS deliberately defers raising the limit 'without further testing,' adding only 'a few hundred per hour.'
  14. RESTORED Amazon Kinesis fully recovered — end of the ~18.5-hour 'burn' from the 3:47 AM breach.
  15. RESTORED CloudWatch metrics and alarms (PutMetricData / PutLogEvents) fully recovered.
  16. RECOVERY Structural remediation committed: greatly accelerate cellularization of the front-end fleet 'to match what we've done with the back-end,' move to 'larger CPU and memory servers, reducing the total number of servers,' add thread-consumption alarming, radically improve cold-start time, and raise OS thread limits after testing.

Response by role

7 roles/5 recorded actions/28 playbook actions across 5 failure modes/no recorded action: Incident commander, Change owner, Communications lead, Customer

What each role did

Roles the sequence of events shows acting; every entry quotes its source line. Select a time to jump to it.

Role
Detect
Contain
Recover
First responderAWS Kinesis on-call engineers — automated alarms fired first, individuals not named
  • Alarms fire at 05:15, about 90 minutes after the breach, on the symptom not the thread limit
no record
no record
Operations leadAWS engineers diagnosing and mitigating — not individually named
no record
no record
Service recovery leadAWS Kinesis, Cognito, Lambda and CloudWatch recovery engineers — not named
no record

Role by role

Recorded actions / playbook actions per role. A role with 0 recorded actions does not appear in the sources.

AWS Kinesis on-call engineers — automated alarms fired first, individuals not named — Meets the first alarm: on-shift technician or security in a facility, on-call engineer in a service.

On the record

  1. Alarms fire at 05:15, about 90 minutes after the breach, on the symptom not the thread limitAutomated monitoring raises the first alarms for elevated Kinesis error rates

Playbook analyst guidance by failure mode, not a record of what happened

Detect
  • FM-01Alarm on thread count per front-end server against the OS maximum during and after every capacity changeSRE incident mgmtImprovement #3
  • FM-04Track servers restored per hour against a target, and page when the rate stallsSRE incident mgmt
  • FM-02Page on the first Kinesis front-end error spike and open the thread count graph for the fleet firstSRE incident mgmtLesson #2
  • FM-05Alarm on dependent service buffer depth and host memory contention when Kinesis puts begin to failSRE incident mgmt
  • FM-03Show per-cell error rates on the dashboard to separate a cell fault from a fleet-wide oneSRE incident mgmt

No incident commander is named in the record — Owns every decision until formally relieved: site duty manager on scene, or the declared IC of a service incident.

On the record

No action by this role appears in the sources.

Playbook analyst guidance by failure mode, not a record of what happened

Contain
  • FM-01Hold the OS limit change until it is tested; restart under the existing limitChange management
  • FM-04Defer raising the OS limit mid-incident until it is tested, and say so on the bridgeChange management
  • FM-02Call the incident at the first alarm instead of waiting for diagnosis, and open a bridge with the dependent service teamsSRE incident mgmt

AWS Kinesis team adding capacity to the front-end fleet — not named — Authored or approved the change, deployment or configuration push that started the event.

On the record

No action by this role appears in the sources.

Playbook analyst guidance by failure mode, not a record of what happened

Prevent
  • FM-01Before adding front-end capacity, compute the per-server thread count for the new fleet size and check it against the OS limitChange managementLesson #1
  • FM-01Move to larger CPU and memory servers so fewer servers are needed and peer threads per server fallCorrection of errors #2
  • FM-04Radically improve cold-start time so restart is not capped at a few hundred servers per hourCorrection of errors #5
  • FM-02Add fine-grained thread-consumption alarms to the front-end fleet before further scalingCorrection of errors #3
  • FM-05Add back-pressure to Cognito, Lambda and CloudWatch buffers so a Kinesis backlog does not block webservers or use host memoryCorrection of errors #6
  • FM-03Cellularize the front-end fleet to match the back-end so a limit breach hits one cellCorrection of errors #1
  • FM-03Move large tenants like CloudWatch to a separate front-end fleetChange managementImprovement #4

AWS engineers diagnosing and mitigating — not individually named — Technical lead who diagnoses and drives the fix; the subject-matter expert at the keyboard or the switchboard.

On the record

  1. Narrow the cause to candidates that need a full fleet restart, at 07:51Engineers narrow the root cause to candidate failures that would require a full front-end fleet restart.
  2. Mitigate Lambda memory contention from undrained metric buffers at 10:36Engineers act to mitigate Lambda memory contention

Playbook analyst guidance by failure mode, not a record of what happened

Detect
  • FM-02Check server resource ceilings (threads, memory, file handles) against any change made in the last few hoursSRE incident mgmt
Contain
  • FM-01Stop the capacity addition and remove the added servers once thread counts approach the limitChange management
  • FM-04Throttle restarts so shard-map and metadata retrieval is not overwhelmed and the failure re-triggeredSRE incident mgmt
  • FM-05Deploy a Cognito change that tolerates Kinesis errors without exhausting buffersImprovement #5
  • FM-05Clear Lambda memory contention from metric buffers that cannot drain to KinesisSRE incident mgmt
  • FM-03Add capacity to one cell only first and hold the rest until the thread count is confirmedChange management

AWS Kinesis, Cognito, Lambda and CloudWatch recovery engineers — not named — Restores customer service: failover, workload moves, capacity, backlog drain.

On the record

  1. Start a deliberately slow restart at 10:07 so shard-map retrieval is not overwhelmedControlled, throttled restart of the front-end fleet begins
  2. Deploy a Cognito change at 10:15 to cut reliance on backlogged Kinesis buffersCognito remediation deployment begins

Playbook analyst guidance by failure mode, not a record of what happened

Recover
  • FM-01Restart the front-end fleet in throttled batches and check each batch builds its shard-mapITIL 4
  • FM-04Bring servers back in rate-limited batches and watch membership propagation, which can take up to an hourITIL 4Lesson #5
  • FM-02Confirm the thread alarm is wired and firing on a test fleet before the recovery is called completeITIL 4
  • FM-05Confirm Cognito, CloudWatch PutMetricData, EventBridge and ECS/EKS provisioning each return to normal in turnITIL 4
  • FM-03Restart the affected cell first and check it before restarting othersITIL 4

AWS status and support communications — not in this sequence of events — Status page, customer notices, regulators and press; one voice, timed updates.

On the record

No action by this role appears in the sources.

Playbook analyst guidance by failure mode, not a record of what happened

Recover
  • FM-05Post status through a channel that does not depend on Cognito, and use the backup toolSRE incident mgmtImprovement #7

Customers of Kinesis, Cognito, CloudWatch, ECS and EKS in US-EAST-1 — The tenant or service user: their own redundancy, backups and continuity plan.

On the record

No action by this role appears in the sources.

Playbook analyst guidance by failure mode, not a record of what happened

Recover
  • FM-04Retry Kinesis puts with backoff while the fleet is restored so the retries do not add loadSRE incident mgmt

Failure mode & effects analysis (FMEA)

The Amazon Kinesis Data Streams front-end fleet in US-EAST-1 — its shard-map coordination design and OS thread limit, the capacity-addition change that triggered the breach, the alarming on that fleet, its fault-domain boundary and cold-restart path, and the AWS services that buffer data through Kinesis. Analysed retrospectively from the official AWS post-event summary held in this dossier. Every corrective action is recorded as committed by AWS; none is recorded as completed, so each revised score is a claim about the action, not a confirmed outcome.

5 failure modes/3 high priority/5 of 5 with a published action/total RPN 1754 → 952 (−46%)

RPN = S × O × D, worst first. Thin bar: after the published action.
FM-01504 → 216
FM-04504 → 288
FM-02392 → 196
FM-05192 → 144
FM-03162 → 108
Severity × occurrence. Lines bound the medium and high zones.
1122334455667788991010Occurrence →Severity →FM-03 The front-end fleet is not cellularized, so the thread-limit breach reaches every server at the same moment (S9 O3 D6)03FM-01 Per-server thread demand crosses the OS-configured maximum on every server at once after a small capacity addition, and shard-map construction fails (S9 O7 D8)01FM-05 Buffers toward Kinesis back up with no back-pressure ceiling, so dependents block or exhaust host memory and fail in turn (S8 O3 D8)05FM-04 Restart throughput is capped at a few hundred servers per hour, because shard-map rebuild is metadata-heavy and a faster restart would re-trigger the failure (S8 O7 D9)04FM-02 No alarm exists on thread consumption, so the first signal is downstream error rates and the cause takes hours to identify (S7 O7 D8)02
Caught only after impactD ≥ 8
4 of 5
Actions that cut occurrenceO lowered
2
Actions that cut detectionD lowered
1
Actions that cut severityS lowered
2
FM-01 Per-server thread demand crosses the OS-configured maximum on every server at once after a small capacity addition, and shard-map construction failsFront-end shard-map coordination and OS thread limit 9·7·8 504 216
Function
Build each front-end server's shard-map so it can authenticate, throttle and route requests to the right back-end shards
Effect
Front-end servers end up with useless shard-maps and cannot route; Kinesis errors and slows across US-EAST-1 for about 18.5 hours from the breach
Cause
Each front-end server creates one OS thread per peer, so thread count grows in proportion to fleet size, against an OS thread limit not dimensioned for that growth
Prevention in place
None recorded; the limit had never been checked against the fleet's growth
Detection in place
None at the breach; the first alarm was on Kinesis error rates about 88 minutes later
S 9
Region-wide outage of a foundational data service that at least six other AWS services depend on, with no customer workaround: the rubric's 9. Not 10: one region, no hazard to people.
O 7
Adding capacity is routine work, and with thread count tied to fleet size every addition moved the fleet toward the ceiling; scored just under 'frequent' because the ceiling is only crossed once the fleet is large enough.
D 8
Nothing checked thread headroom before or during the capacity addition; the breach was seen only through Kinesis error-rate alarms after impact, 'detected after impact by internal monitoring'.

Corrective action

  • Move the front-end fleet to larger CPU and memory servers, cutting the number of servers and so the per-server thread count Correction of errors #2
  • Raise the OS thread-count limit once it has been load tested Correction of errors #4

After action: S9 · O3 · D8 → RPN 216. Fewer, larger servers shrink the fleet size that drives thread count, and a tested higher limit adds headroom, so a routine capacity addition should no longer reach the ceiling (O 7→3). The O(N) coupling itself remains, so severity and detection are unchanged. Both actions are recorded as committed, not completed, so the reduction is a claim about the action, not a confirmed outcome.

Who acts — playbook

Prevent
  • Change owner Before adding front-end capacity, compute the per-server thread count for the new fleet size and check it against the OS limitChange managementLesson #1
  • Change owner Move to larger CPU and memory servers so fewer servers are needed and peer threads per server fallCorrection of errors #2
Detect
  • First responder Alarm on thread count per front-end server against the OS maximum during and after every capacity changeSRE incident mgmtImprovement #3
Contain
  • Operations lead Stop the capacity addition and remove the added servers once thread counts approach the limitChange management
  • Incident commander Hold the OS limit change until it is tested; restart under the existing limitChange management
Recover
  • Service recovery lead Restart the front-end fleet in throttled batches and check each batch builds its shard-mapITIL 4

Evidence

  • Sequence of events #22020-11-25 03:47 AM PST — Capacity addition finishes; the larger fleet pushes every server past the OS max-thread limit — 'the new capacity had caused all of the servers in the fleet to exceed the maximum number of threads allowed by an operating system configuration.'
  • Sequence of events #32020-11-25 ~03:47 AM PST — Failure mechanism engages fleet-wide: 'cache construction was failing to complete and front-end servers were ending up with useless shard-maps,' disabling authentication, throttling and request-routing.
  • Metric #7Thread scaling relationship: O(N): threads per server proportional to fleet size
  • Root cause“the total threads each server must maintain is directly proportional to the number of servers in the fleet”
  • Reference #1 · official-postmortem“exceed the maximum number of threads allowed by an operating system configuration”
FM-04 Restart throughput is capped at a few hundred servers per hour, because shard-map rebuild is metadata-heavy and a faster restart would re-trigger the failureFront-end cold-restart path 8·7·9 504 288
Function
Bring the whole front-end fleet back into service quickly after a fleet-wide failure
Effect
Recovery span of 12 h 16 min from first restart (10:07 AM) to full Kinesis recovery (10:23 PM PST)
Cause
Expensive shard-map construction at fleet scale, membership propagation of up to an hour, and an OS limit that could not be raised mid-incident without further testing
Prevention in place
None recorded
Detection in place
None before the incident; the restart rate was learned during it
S 8
This mode sets the duration of the outage: hours of full outage of a major service is the rubric's 8.
O 7
Whenever a fleet-wide restart is needed the cap applies; the condition was present the whole time.
D 9
Nothing in the dossier shows the restart rate had been measured before the incident needed it.

Corrective action

  • Radically improve cold-start time for the front-end fleet Correction of errors #5

After action: S8 · O4 · D9 → RPN 288. A faster cold start makes a throttled, hours-long restart less likely to set the outage duration (O 7→4). Severity is held at 8 because the dossier gives no target restart time. Recorded as committed, not completed, so the reduction is a claim about the action, not a confirmed outcome.

Who acts — playbook

Prevent
  • Change owner Radically improve cold-start time so restart is not capped at a few hundred servers per hourCorrection of errors #5
Detect
  • First responder Track servers restored per hour against a target, and page when the rate stallsSRE incident mgmt
Contain
  • Operations lead Throttle restarts so shard-map and metadata retrieval is not overwhelmed and the failure re-triggeredSRE incident mgmt
  • Incident commander Defer raising the OS limit mid-incident until it is tested, and say so on the bridgeChange management
Recover
  • Service recovery lead Bring servers back in rate-limited batches and watch membership propagation, which can take up to an hourITIL 4Lesson #5
  • Customer Retry Kinesis puts with backoff while the fleet is restored so the retries do not add loadSRE incident mgmt

On the record at this failure

  • Service recovery lead Start a deliberately slow restart at 10:07 so shard-map retrieval is not overwhelmed

Evidence

  • Sequence of events #72020-11-25 10:07 AM PST — Controlled, throttled restart of the front-end fleet begins; first servers take traffic again. Restart deliberately slow because too-fast recovery would overwhelm shard-map/metadata retrieval and re-trigger failure.
  • Sequence of events #132020-11-25 (throughout) — De-energisation/isolation analogue: the added capacity is removed and the fleet restarted under the existing OS limit; AWS deliberately defers raising the limit 'without further testing,' adding only 'a few hundred per hour.'
  • Metric #4Constrained restart rate: a few hundred servers per hour
  • Metric #5Recovery span (restart start to full recovery): 12h16m (10:07 AM to 10:23 PM PST)
  • Contributing factor #5Fragile, expensive recovery path: because shard-map construction is metadata-heavy at fleet scale, servers could only be restored 'at the rate of a few hundred per hour,' and the OS limit could not be safely raised mid-incident 'without further testing,' extending the outage (aws.amazon.com/message/11201).
FM-02 No alarm exists on thread consumption, so the first signal is downstream error rates and the cause takes hours to identifyFront-end fleet alarming 7·7·8 392 196
Function
Warn operators before the fleet runs out of the resource it is about to exhaust
Effect
First alarm 1 h 28 min after the breach; root cause confirmed 5 h 52 min after the breach, delaying the start of recovery
Cause
Monitoring covered the symptom (Kinesis error rates) but not the limiting resource (thread count against the OS limit)
Prevention in place
None recorded
Detection in place
Automated alarms on elevated Kinesis error rates at 05:15 AM PST
S 7
This mode lengthens the outage by delaying diagnosis rather than causing it; hours of added delay on a major service is scored as 'major degradation', below FM-01 so the same outage is not counted twice at full weight.
O 7
The missing alarm was a standing condition, present for any approach to the thread limit.
D 8
Internal monitoring did fire, but only on the symptom and after impact: the rubric's 8.

Corrective action

  • Add fine-grained alarming for thread consumption Correction of errors #3

After action: S7 · O7 · D4 → RPN 196. An alarm on the limiting resource would show the fleet approaching the ceiling with time to act (D 8→4). It does not remove the condition, so O is unchanged. Recorded as committed, not completed, so the reduction is a claim about the action, not a confirmed outcome.

Who acts — playbook

Prevent
  • Change owner Add fine-grained thread-consumption alarms to the front-end fleet before further scalingCorrection of errors #3
Detect
  • First responder Page on the first Kinesis front-end error spike and open the thread count graph for the fleet firstSRE incident mgmtLesson #2
  • Operations lead Check server resource ceilings (threads, memory, file handles) against any change made in the last few hoursSRE incident mgmt
Contain
  • Incident commander Call the incident at the first alarm instead of waiting for diagnosis, and open a bridge with the dependent service teamsSRE incident mgmt
Recover
  • Service recovery lead Confirm the thread alarm is wired and firing on a test fleet before the recovery is called completeITIL 4

On the record at this failure

  • First responder Alarms fire at 05:15, about 90 minutes after the breach, on the symptom not the thread limit

Evidence

  • Sequence of events #42020-11-25 05:15 AM PST — Automated monitoring raises the first alarms for elevated Kinesis error rates — the sensor detects the symptom, not the underlying thread-limit breach, roughly 90 minutes after the breach. CloudWatch Events/EventBridge errors also begin at 5:15 AM.
  • Sequence of events #62020-11-25 09:39 AM PST — Root cause confirmed: the new capacity caused all servers to exceed the OS-configured maximum thread count — the 'confirmation of the fire's origin.'
  • Metric #2Detection lag (breach to first alarm): ~1h28m (03:47 to 05:15 AM PST)
  • Metric #3Time to confirmed root cause: ~5h52m after breach (03:47 to 09:39 AM PST)
  • Contributing factor #2Observability/maintenance gap: no fine-grained alarming existed for thread consumption; AWS commits to add 'fine-grained alarming for thread consumption' only as a post-incident action, meaning operators had no early warning as the fleet approached the OS thread limit (aws.amazon.com/message/11201).
FM-05 Buffers toward Kinesis back up with no back-pressure ceiling, so dependents block or exhaust host memory and fail in turnAWS services that buffer data through Kinesis (Cognito, Lambda, CloudWatch, EventBridge) 8·3·8 192 144
Function
Keep serving their own requests while Kinesis is impaired
Effect
Cognito authentication fails until 2:18 PM; Lambda error rates rise from host memory contention; CloudWatch PutMetricData and PutLogEvents error until 10:31 PM; EventBridge delays stall ECS and EKS cluster provisioning and scaling
Cause
Unbounded buffering toward Kinesis in dependent services, with no recorded degraded mode
Prevention in place
None recorded
Detection in place
Error rates in each dependent service after Kinesis impact began
S 8
Turns one service's outage into a multi-service regional outage lasting hours: the rubric's 8. Not 9, because the region-wide Kinesis outage itself is scored in FM-01.
O 3
Needs Kinesis to be impaired first, which is infrequent.
D 8
The dependent failures were seen and mitigated by AWS engineers only after they produced error rates: 'detected after impact by internal monitoring'.

Corrective action

  • Add back-pressure and graceful degradation so a Kinesis backlog no longer blocks webservers or exhausts host memory Correction of errors #6
  • Cognito webservers tolerate Kinesis errors without exhausting buffers; CloudWatch persists 3 hours of metrics locally Improvement #5

After action: S6 · O3 · D8 → RPN 144. If dependents degrade instead of failing, a Kinesis outage stays confined to Kinesis and its direct users (S 8→6). The COE item is recorded as 'Committed / implied by remediation' and the improvement names only Cognito and CloudWatch, not Lambda or EventBridge, so the reduction is a claim about the action, not a confirmed outcome.

Who acts — playbook

Prevent
  • Change owner Add back-pressure to Cognito, Lambda and CloudWatch buffers so a Kinesis backlog does not block webservers or use host memoryCorrection of errors #6
Detect
  • First responder Alarm on dependent service buffer depth and host memory contention when Kinesis puts begin to failSRE incident mgmt
Contain
  • Operations lead Deploy a Cognito change that tolerates Kinesis errors without exhausting buffersImprovement #5
  • Operations lead Clear Lambda memory contention from metric buffers that cannot drain to KinesisSRE incident mgmt
Recover
  • Service recovery lead Confirm Cognito, CloudWatch PutMetricData, EventBridge and ECS/EKS provisioning each return to normal in turnITIL 4
  • Communications lead Post status through a channel that does not depend on Cognito, and use the backup toolSRE incident mgmtImprovement #7

On the record at this failure

  • Service recovery lead Deploy a Cognito change at 10:15 to cut reliance on backlogged Kinesis buffers
  • Operations lead Mitigate Lambda memory contention from undrained metric buffers at 10:36

Evidence

  • Sequence of events #82020-11-25 10:15 AM PST — Cognito remediation deployment begins to reduce reliance on the backlogged Kinesis Data Stream buffers that were blocking Cognito webservers.
  • Sequence of events #92020-11-25 10:36 AM PST — Engineers act to mitigate Lambda memory contention — metric buffering that could not drain to Kinesis had 'caused memory contention on the underlying service hosts used for Lambda function invocations' — resolving the increased error rates.
  • Sequence of events #102020-11-25 (daytime) — CloudWatch shows 'increased error rates and latencies for the PutMetricData and PutLogEvents APIs'; ECS and EKS, which use EventBridge for internal workflows, see delays provisioning new clusters and scaling existing ones.
  • Metric #8Downstream services impacted: 6+ (Cognito, CloudWatch, Lambda, EventBridge, ECS, EKS)
  • Contributing factor #6Unbounded downstream buffers: dependent services (Cognito, Lambda, CloudWatch) buffered data toward Kinesis with no back-pressure ceiling, so Cognito webservers 'begin to block on the backlogged Kinesis Data Stream buffers' and Lambda metric buffering 'caused memory contention on the underlying service hosts used for Lambda function invocations' — turning one service's outage into a multi-service cascade (aws.amazon.com/message/11201).
FM-03 The front-end fleet is not cellularized, so the thread-limit breach reaches every server at the same momentFront-end fleet fault domain 9·3·6 162 108
Function
Confine a resource exhaustion to part of the fleet
Effect
Routing fails fleet-wide rather than for a fraction of streams
Cause
Front-end fleet not partitioned into cells, unlike the back-end
Prevention in place
None recorded for the front end; the back end was already cellularized
Detection in place
Error-rate alarms at onset of customer impact
S 9
The single fault domain is what makes the breach region-wide for Kinesis, so it carries FM-01's severity.
O 3
Losing the whole fleet needs a fleet-wide trigger such as FM-01's breach first, an unusual combination; held low so the event is not double-counted.
D 6
The fleet-wide failure was visible to monitoring once impact began, but nothing in the architecture contained it: 'detected at onset, not prevented'.

Corrective action

  • Greatly accelerate cellularization of the front-end fleet to match the back-end Correction of errors #1

After action: S6 · O3 · D6 → RPN 108. With cells, a breach of this kind would stop one cell rather than the fleet (S 9→6). Recorded as committed (medium-term), not completed, so the reduction is a claim about the action, not a confirmed outcome.

Who acts — playbook

Prevent
  • Change owner Cellularize the front-end fleet to match the back-end so a limit breach hits one cellCorrection of errors #1
  • Change owner Move large tenants like CloudWatch to a separate front-end fleetChange managementImprovement #4
Detect
  • First responder Show per-cell error rates on the dashboard to separate a cell fault from a fleet-wide oneSRE incident mgmt
Contain
  • Operations lead Add capacity to one cell only first and hold the rest until the thread count is confirmedChange management
Recover
  • Service recovery lead Restart the affected cell first and check it before restarting othersITIL 4

Evidence

  • Contributing factor #3No failure-isolation barrier: the front-end fleet was not cellularized, so the limit breach hit 'all of the servers in the fleet' at once instead of being confined to a cell — accelerating cellularization is named as the medium-term fix, confirming it was absent (aws.amazon.com/message/11201).
  • Root cause“the front-end fleet was not cellularized”
  • Technical deep-dive“cellularization "to isolate the effects of failure within a service,"”
Scoring rubric and method

Scales adapted from IEC 60812:2018 and AIAG-VDA. RPN = S × O × D. High: S ≥ 9 with O ≥ 4 or D ≥ 7, or RPN ≥ 300. Medium: RPN ≥ 120 or S ≥ 7. Severity overrides the product: 9 × 2 × 9 = 162 would otherwise hide a region-wide outage nothing could catch. Quotes are checked verbatim against this dossier; a revised score needs a published action. RZ analyst assessment, not an operator document.

Severity

10Hazard to people, or loss of the facility / several regions
9Region-wide or provider-wide outage of a foundational service, no workaround
8Full outage of a major service for hours
7Major degradation of a major service
6Partial outage confined to one zone or one service
5Customer-visible degradation
4Limited customer impact
3Internal impact only
2Negligible
1No effect

Occurrence

10Near certain: the cause is present in normal operation
8Frequent: routine work exercises the cause
6Occasional: a foreseeable slip or condition, weakly guarded
4Infrequent: needs an unusual combination
2Remote: guarded by design
1Eliminated by design

Detection

10No control could detect it
9Detected only through customer impact
8Detected after impact by internal monitoring
6Detected at onset, not prevented
4Detected before impact with time to act
2Automated interlock almost certainly stops it
1Certain to be stopped

Root cause and contributing factors

The specific "ignition source" was not a physical component but an operating-system configuration limit: the maximum number of threads permitted per process on every server in the Amazon Kinesis front-end fleet in US-EAST-1. AWS states plainly that "the new capacity had caused all of the servers in the fleet to exceed the maximum number of threads allowed by an operating system configuration" (aws.amazon.com/message/11201).
Full root-cause narrative
The precise failure mechanism is architectural: each front-end server maintains a cache called a "shard-map" ("a cache of information, including membership details and shard ownership for the back-end clusters"), and it populates that cache by opening OS threads to its peers — "each front-end server creates operating system threads for each of the other servers in the front-end fleet." Because "the total threads each server must maintain is directly proportional to the number of servers in the fleet," the design is O(N) thread-per-peer. When capacity was added, N grew, and every server's required thread count crossed the OS ceiling. Cache construction could no longer complete, so "cache construction was failing to complete and front-end servers were ending up with useless shard-maps." A front-end server with a useless shard-map cannot perform its core job — it "handles authentication, throttling, and request-routing to the correct stream-shards on the back-end clusters" — so the entire front end lost the ability to route records. The trigger and the root cause are explicitly separated by AWS: the event was triggered by "a relatively small addition of capacity that began to be added to the service at 2:44 AM PST, finishing at 3:47 AM PST." The capacity add was routine and small; it merely exposed the latent defect. The latent root cause is the design decision to scale coordination threads linearly with fleet size, combined with an OS thread limit that had never been dimensioned against the fleet's growth trajectory, and — critically — the absence of any instrumentation that would have caught the fleet approaching that ceiling. AWS concedes this maintenance/observability gap in its remediation, committing to add "fine-grained alarming for thread consumption": such alarming did not exist beforehand, so operators had no early-warning telemetry on the single resource that failed. There was also no failure-isolation barrier — the front-end fleet was not cellularized, so a limit breach hit "all of the servers in the fleet" at once rather than being contained to a cell. In physical-forensic terms mapped to this software incident: there was no combustion, no maintenance-worn part, and no aged equipment with a make/model/chemistry. The equivalent "latent defect left uninspected" is the un-alarmed, un-load-tested proximity of thread consumption to the OS limit as the fleet scaled — a capacity/observability lapse rather than a mechanical wear lapse.

Contributing factors by category

Contributing factors by category — AWSDesign: Threads grow with fleet size; Front-end not in cells; Unbounded downstream buffers. Process: Capacity added at fleet scale; OS limit untested to raise. Equipment: OS thread cap exceeded. People: Alarm 90 min late, cause 6 h. External: Cognito, Lambda, CloudWatch. Effect: Kinesis outage, ~18.5 h.Kinesis outage, ~18.5 hDesignThreads grow with fleet sizeFront-end not in cellsUnbounded downstream buffersEquipmentOS thread cap exceededExternalCognito, Lambda, CloudWatchProcessCapacity added at fleet scaleOS limit untested to raisePeopleAlarm 90 min late, cause 6 h
Each short label stands for a contributing factor or failure mode recorded in this dossier; the full sentences are listed below.
  • Architectural design fault: coordination threads scale O(N) with fleet size — AWS confirms 'each front-end server creates operating system threads for each of the other servers in the front-end fleet' and 'the total threads each server must maintain is directly proportional to the number of servers in the fleet' — so routine horizontal scaling raised every server's thread count toward the OS ceiling simultaneously (aws.amazon.com/message/11201).
  • Observability/maintenance gap: no fine-grained alarming existed for thread consumption; AWS commits to add 'fine-grained alarming for thread consumption' only as a post-incident action, meaning operators had no early warning as the fleet approached the OS thread limit (aws.amazon.com/message/11201).
  • No failure-isolation barrier: the front-end fleet was not cellularized, so the limit breach hit 'all of the servers in the fleet' at once instead of being confined to a cell — accelerating cellularization is named as the medium-term fix, confirming it was absent (aws.amazon.com/message/11201).
  • Detection sensed the symptom, not the cause: alarms fired at 5:15 AM for elevated Kinesis error rates — roughly 90 minutes after the 3:47 AM breach — and the thread-limit root cause was not confirmed until 9:39 AM, a slow path from alarm to diagnosis (aws.amazon.com/message/11201).
  • Fragile, expensive recovery path: because shard-map construction is metadata-heavy at fleet scale, servers could only be restored 'at the rate of a few hundred per hour,' and the OS limit could not be safely raised mid-incident 'without further testing,' extending the outage (aws.amazon.com/message/11201).
  • Unbounded downstream buffers: dependent services (Cognito, Lambda, CloudWatch) buffered data toward Kinesis with no back-pressure ceiling, so Cognito webservers 'begin to block on the backlogged Kinesis Data Stream buffers' and Lambda metric buffering 'caused memory contention on the underlying service hosts used for Lambda function invocations' — turning one service's outage into a multi-service cascade (aws.amazon.com/message/11201).

Analysis

Trigger vs. Root Cause

AWS is unusually explicit in separating the two. The trigger was 'a relatively small addition of capacity' (02:44–03:47 AM PST) — routine, small, and by itself harmless. The root cause was a latent design defect: each front-end server 'creates operating system threads for each of the other servers in the front-end fleet,' so thread count scales O(N) with fleet size and had crept toward a fixed OS maximum. The capacity add simply pushed every server across that ceiling at once. Treating the capacity change as 'the cause' would miss the real hazard, which had been building silently as the fleet grew.

Failure Mechanism: The Shard-Map Cache

The front-end tier 'handles authentication, throttling, and request-routing to the correct stream-shards on the back-end clusters,' and depends on a local 'shard-map' cache of 'membership details and shard ownership.' Building that cache requires a thread per peer. Once the OS thread limit was exceeded, 'cache construction was failing to complete and front-end servers were ending up with useless shard-maps' — a server that cannot build its shard-map cannot route, so the failure was fleet-wide and synchronized rather than a gradual degradation.

Cascade Through Dependent Services

The blast radius followed data dependencies on Kinesis. Cognito webservers began to 'block on the backlogged Kinesis Data Stream buffers,' failing authentication until 2:18 PM. Lambda metric buffering that could not drain 'caused memory contention on the underlying service hosts used for Lambda function invocations.' CloudWatch degraded on PutMetricData/PutLogEvents; EventBridge errors from 5:15 AM propagated to ECS and EKS, which 'make use of EventBridge to drive internal workflows,' delaying cluster provisioning and scaling. Each was the same anti-pattern: an unbounded buffer backing up behind a stalled dependency with no back-pressure.

Recovery Constraints and Remediation

Recovery was slow by necessity: shard-map rebuild is metadata-heavy, so servers could be added only 'a few hundred per hour,' and AWS declined to raise the OS limit mid-incident 'without further testing,' instead removing the added capacity so thread count fell below the limit. Full Kinesis recovery came at 10:23 PM — about 18.5 hours after the breach. Structural fixes named by AWS attack every layer: cellularization for isolation, larger/fewer servers to cut N, thread-consumption alarming for early warning, faster cold-start for quicker recovery, and a tested higher thread limit.

Technical deep-dive
Kinesis's front-end fleet is a stateless-request tier fronting stateful back-end shard clusters. Its role is small but important: it "handles authentication, throttling, and request-routing to the correct stream-shards on the back-end clusters." To route correctly, each front-end server must know which back-end cluster owns which shard, held locally in a "shard-map" cache built from "membership details and shard ownership for the back-end clusters." The cache is populated via a coordination mechanism in which "each front-end server creates operating system threads for each of the other servers in the front-end fleet," and "it takes up to an hour for any existing front-end fleet member to learn of new participants." AWS confirms "the total threads each server must maintain is directly proportional to the number of servers in the fleet." This linear coupling is the structural fault: horizontal scaling, normally a mitigation, here increases per-server load, so the fleet becomes less stable as it grows. The failure was therefore synchronized rather than progressive. A "relatively small addition of capacity" (02:44–03:47 PST) raised N enough that every server's thread requirement crossed the fixed OS limit at essentially the same moment. Past the limit, thread creation for cache construction fails, and "cache construction was failing to complete and front-end servers were ending up with useless shard-maps." With no valid shard-map, routing collapses fleet-wide. Recovery could not be a simple rollback because the shard-map build is itself expensive and metadata-intensive at fleet scale: bringing many servers back at once would hammer the metadata/shard-map retrieval path and re-trigger failure. Hence the throttled restart — "we could only add servers at the rate of a few hundred per hour" — and the deliberate choice not to raise the OS limit mid-incident: "We didn't want to increase the operating system limit without further testing," after which, having removed the added capacity, AWS "determined that the thread count would no longer exceed the operating system limit and proceeded with the restart." That conservatism traded recovery speed for safety, producing the multi-hour tail from first restart (10:07 AM) to full recovery (10:23 PM). The blast radius was defined by which services buffer data through Kinesis. Amazon Cognito used Kinesis Data Streams for analytics, and the backlog caused "Cognito webservers to begin to block on the backlogged Kinesis Data Stream buffers," producing authentication failures until 2:18 PM. CloudWatch "experienced increased error rates and latencies for the PutMetricData and PutLogEvents APIs" (recovered 10:31 PM). Lambda's own metric buffering, unable to drain to Kinesis, grew until "it caused memory contention on the underlying service hosts used for Lambda function invocations, resulting in increased error rates," mitigated at 10:36 AM. CloudWatch Events and EventBridge "experienced increased API errors and delays in event processing starting at 5:15 AM PST"; because "ECS and EKS both make use of EventBridge to drive internal workflows used to manage customer clusters and tasks," they saw delays provisioning new clusters, scaling existing ones, and deprovisioning tasks, mostly resolved by 4:15 PM. Every downstream failure was the same pattern — an unbounded buffer backing up behind a stalled Kinesis — which is why the structural fix AWS names is cellularization "to isolate the effects of failure within a service," plus moving to "larger CPU and memory servers, reducing the total number of servers" to shrink N and thus the thread count directly.

Corrective actions and lessons

Correction of errors

ActionOwnerStatus
Greatly accelerate cellularization of the front-end fleet 'to match what we've done with the back-end' so a limit breach is contained to a single cell rather than the whole fleet.AWS Kinesis service teamCommitted (medium-term)
Move the front-end fleet to 'larger CPU and memory servers, reducing the total number of servers,' which cuts fleet size N and the per-server thread count directly.AWS Kinesis service teamCommitted
Add 'fine-grained alarming for thread consumption' so operators get early warning before the OS thread ceiling is approached.AWS Kinesis service teamCommitted
Raise the operating-system thread-count limit after further load testing, removing the specific ceiling that failed once validated.AWS Kinesis service teamCommitted
Radically improve the cold-start time for the front-end fleet so recovery is not constrained to 'a few hundred per hour.'AWS Kinesis service teamCommitted
Reduce Cognito, CloudWatch, and Lambda coupling to Kinesis by adding back-pressure/graceful degradation so a Kinesis backlog no longer blocks webservers or exhausts host memory.AWS dependent-service teamsCommitted / implied by remediation

Lessons learnt

  • Resource limits that scale with fleet size are latent scaling traps: a thread-per-peer model makes per-host thread usage grow with the whole fleet, so an ordinary, small capacity add can silently push every host over an OS ceiling at once.
  • Alarm on the failing resource, not just its symptoms: with no thread-consumption alarming, the first signal was downstream put/get errors ~1.5 hours after the breach — precious lead time lost to indirect detection.
  • Blast radius follows dependencies: a single data-plane service (Kinesis) coupled to CloudWatch, Cognito, Lambda and EventBridge turned one fleet's failure into a multi-service regional outage.
  • Design dependents to degrade, not die: latent buffering assumptions (Cognito exhausting buffers on upstream errors; CloudWatch metric buffers growing into memory contention that reached Lambda) converted a Kinesis fault into independent secondary failures.
  • Recovery must be planned as carefully as failure: slow membership propagation (up to 1h) and restart contention capped restart at a few hundred servers/hour, so the fix itself took ~12 hours — cold-start speed is a first-class reliability property.
  • Status-communication tooling must not share the failure domain it reports on: the primary dashboard depended on the impaired Cognito, so operators needed a rehearsed, independent backup channel.

Improvements

  • Bound the fault domain via cellularization of the front-end fleet so thread growth (and any similar resource pressure) is contained within a cell rather than the entire fleet.
  • Reduce per-host peer-thread pressure by consolidating onto larger CPU/memory servers and raising the tested OS thread-count limit, giving headroom against fleet-size-driven thread growth.
  • Add fine-grained thread-consumption alarming to detect the actual limiting resource before it manifests as downstream request errors.
  • Isolate high-fan-in tenants by moving large services like CloudWatch to a separate, partitioned front-end fleet and moving the front-end cache to a dedicated fleet.
  • Harden dependents against upstream failure: Cognito webservers now tolerate Kinesis errors without exhausting buffers, and CloudWatch persists 3 hours of metrics locally so alarms survive a Kinesis outage.
  • Make recovery faster and safer by radically improving cold-start time so a throttled, contention-limited restart no longer dominates the outage duration.
  • Decouple operational status communications from the services being reported on, and keep support engineers regularly trained on the independent backup tool.

References and provenance

Quotes are short, attributed, and for provenance only; the analysis is original. Last verified 2026-07-31.

Root access required

The DC Incidents dossier is a root-only module. Sign in with an authorized account to continue.

Back to Home