← All incidents
Incident dossier · Rank #47 · magnitude 4.5

AWS Tokyo 2019: Cooling Control Failover Bug Overheats Part of a Zone

Amazon Web Services 2019-08-23 5h 54m to substantial restoration Coolingconfig-error

Summary

On 23 August 2019 a bug in third-party cooling-control software hung the control system of an AWS Tokyo zone during a host failover. Air-handler PLCs hung too, so part of the hall lost cooling and even the manual purge failed. Servers overheated from 12:36 JST; cooling was back at 15:21 and most instances by 18:30.

Users affected
A small percentage of EC2 servers in one Tokyo zone and the services on them (RDS, Redshift, ElastiCache, WorkSpaces); Region-wide Auto Scaling launch errors for 90 minutes.
Duration
5h 54m — First server shutdowns 12:36 JST → vast majority recovered 18:30 JST (5 h 54 min)
Financial
Not disclosed
Scope
Part of one Availability Zone, with a Region-wide API effect
Site
AWS ap-northeast-1 Availability Zone facility (not named) · Tokyo, Japan, ap-northeast-1
Services down
Amazon EC2, Amazon EBS, EC2 RunInstances (idempotency token), EC2 Auto Scaling

How the defences failed

How the defences failed — AWS4 failure modes in the order the sequence of events first shows them, 0 latent conditions with no moment in the record, ending in the outcome: Part of a zone overheats · 5 h 54 min.ACTIVE — IN THE ORDER THE RECORD SHOWS THEMFM-01 · RPN 147BMS failover bugS7 · O3 · D7FM-02 · RPN 192AHU PLCs hangS8 · O3 · D8FM-03 · RPN 192Purge fails tooS8 · O3 · D8FM-04 · RPN 72Auto Scaling blockedS6 · O3 · D4OUTCOMEPart of a zone overheats · 5 h 54 minLEGENDMedium or low priorityNext failure in the record
How the defences failed — AWS4 failure modes in the order the sequence of events first shows them, 0 latent conditions with no moment in the record, ending in the outcome: Part of a zone overheats · 5 h 54 min.ACTIVE — RECORD ORDERFM-01 · RPN 147BMS failover bugS7 · O3 · D7FM-02 · RPN 192AHU PLCs hangS8 · O3 · D8FM-03 · RPN 192Purge fails tooS8 · O3 · D8FM-04 · RPN 72Auto Scaling blockedS6 · O3 · D4OUTCOMEPart of a zone overheats · 5 h 54 minLEGENDMedium or low 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 5Users affected (0–10) — breadth of the user/customer population impacted. — scored 5/10.Financial 4Financial impact (0–10) — direct + consequential cost. — scored 4/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 4Blast radius (0–10) — how wide the fault propagated across systems/regions. — scored 4/10.
Magnitude 4.5 = blast 4×0.35 + users 5×0.25 + financial 4×0.20 + duration 5×0.20 (sub-scores 0–10 · weighted composite)

Small share of one zone, plus Region-wide Auto Scaling errors. Duration (5): 5 h 54 min from first shutdowns to most instances back, inside the 4–12 h band.

All 6 impact metrics
First server shutdowns12:36 JST, 23 Aug 2019
Cooling restored15:21 JST, 2 hours 45 minutes after the first shutdowns
Idempotency-token / Auto Scaling errors13:21 → 14:51 JST (1 hour 30 minutes)
Launches in the zone failinguntil 16:05 JST
Vast majority recovered18:30 JST, 5 hours 54 minutes after the first shutdowns
Share of servers affecteda small percentage of EC2 servers in one zone

Sequence of events

  1. TRIGGER The datacenter control system that runs the cooling plant is failing away from one of its control hosts.
  2. TRIGGER During the failover a bug in third-party control logic causes excessive interactions with the field devices, and the control system becomes unresponsive.
  3. CASCADE In a small portion of the datacenter the cooling does not go to its safe maximum-cooling mode and instead shuts down, because the PLCs on some air handling units have also stopped responding.
  4. MITIGATION Operators try to bypass the control system and put the affected areas into purge mode to exhaust hot air; purge also fails.Mechanical / cooling engineer
  5. IMPACT Temperatures rise and a small percentage of EC2 servers in one Availability Zone shut down from overheating; instances are impaired and EBS performance degrades.
  6. DETECTION With the control system down, the operations team has minimum visibility into the state of the cooling systems.
  7. CASCADE RunInstances calls targeting the zone, and calls using the idempotency token anywhere in the Region, start returning errors; Auto Scaling launches stop.
  8. MITIGATION The team manually investigates and resets every affected piece of equipment and sets it to maximum cooling.Mechanical / cooling engineer
  9. MITIGATION The unresponsive air-handler PLCs are found and reset.
  10. RECOVERY Engineers resolve the idempotency-token issue; Auto Scaling launches work again.Operations lead
  11. RECOVERY The affected cooling systems are restored and temperatures start to fall.
  12. RECOVERY As temperatures normalise, power is restored to the affected instances.
  13. RECOVERY The EC2 control-plane subsystem in the zone is restored and new launches there succeed.
  14. RESTORED The vast majority of affected instances and volumes have recovered.
  15. IMPACT Instances and volumes on hardware damaged by the power loss and heat take longer; some have to be retired.
  16. IMPACT AWS reports isolated cases where multi-zone applications also saw errors, such as Application Load Balancer used with WAF or sticky sessions returning a high share of Internal Server Errors.Communications lead
  17. MITIGATION AWS disables the control-system failover mode that triggered the bug, trains local operations teams on fast reset, and works on letting purge mode bypass the PLCs.

Response by role

5 roles/4 recorded actions/17 playbook actions across 4 failure modes/no recorded action: Service recovery lead, Vendor / upstream provider

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
Mechanical / cooling engineerAWS datacenter operations team
no record
no record
Operations leadAWS engineers
no record
no record
Communications leadAWS, Post-Event Summary and update
no record
no record

Role by role

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

AWS datacenter operations team — Chillers, CRAH/CRAC, pumps, cooling towers and the thermal envelope of the white space.

On the record

  1. Tried to purge hot air; purge failedOperators try to bypass the control system
  2. Reset equipment by hand to maximum coolingThe team manually investigates and resets every affected piece of equipment

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

Prevent
  • FM-02Test the maximum-cooling fail-safe with the supervisor offline, unit by unitASHRAE TC 9.9Improvement #5
  • FM-03Wire the purge override so it does not pass through the controllers it backs upASHRAE TC 9.9Correction of errors #4
Detect
  • FM-02Alarm on any air handler that stops while supervisory control is downASHRAE TC 9.9Contributing factor #2
  • FM-01Keep temperature readings that do not depend on the control systemASHRAE TC 9.9Lesson #3
Contain
  • FM-02Reset hung controllers and force units to maximum cooling by handUptime OSCorrection of errors #5
  • FM-03Open the area to purge by hard-wired controls as soon as temperatures riseASHRAE TC 9.9Correction of errors #4
Recover
  • FM-01Reset the control system and confirm every device reports stateUptime OSCorrection of errors #3

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

On the record

  1. Fixed the launch path used by Auto ScalingEngineers resolve the idempotency-token issue

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

Prevent
  • FM-04Make sure the token path does not depend on any single zoneSRE incident mgmtContributing factor #5
Detect
  • FM-03Drill the purge override periodically and record whether it actually moves airUptime OSLesson #1
  • FM-04Alert on launch errors by request type, not only overallSRE incident mgmtContributing factor #5
Contain
  • FM-01Disable the failover mode that triggers the fault until the vendor fixes itChange managementCorrection of errors #1
Recover
  • FM-02Power servers back only once inlet temperatures are in rangeASHRAE TC 9.9Correction of errors #5

AWS EC2 and EBS teams — Restores customer service: failover, workload moves, capacity, backlog drain.

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-02Shut down workloads in the hot area before servers trip on temperatureSRE incident mgmtLesson #3
  • FM-04Restore the token path first so Auto Scaling can replace capacitySRE incident mgmtCorrection of errors #6
Recover
  • FM-03Check hardware exposed to heat before returning it to serviceUptime OSContributing factor #6

Third-party control-system and PLC vendors, not named — Third party whose product, service or network sits in the failure path.

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-01Test control-system failover against the full device population before enabling itChange managementLesson #2

AWS, Post-Event Summary and update — Status page, customer notices, regulators and press; one voice, timed updates.

On the record

  1. Updated the summary with multi-zone side effectsAWS reports isolated cases where multi-zone applications also saw errors

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

Recover
  • FM-04Tell customers when Auto Scaling launches work againITIL 4Correction of errors #6

Failure mode & effects analysis (FMEA)

The cooling control chain of the affected Tokyo facility (supervisory control system, air-handler PLCs, purge override) and the EC2 launch path, from AWS's summary.

4 failure modes/0 high priority/3 of 4 with a published action/total RPN 603 → 370 (−39%)

RPN = S × O × D, worst first. Thin bar: after the published action.
FM-02192 → 120
FM-03192 → 80
FM-01147 → 98
FM-04no published action72
Severity × occurrence. Lines bound the medium and high zones.
1122334455667788991010Occurrence →Severity →FM-02 The PLCs hang, and their air handlers shut down instead of going to maximum cooling (S8 O3 D8); FM-03 Purge cannot be activated because it still runs through the hung PLCs (S8 O3 D8)02, 03FM-01 The failover triggers a third-party bug and the control system becomes unresponsive (S7 O3 D7)01FM-04 Launches using the idempotency token fail across the Region (S6 O3 D4)04
Caught only after impactD ≥ 8
2 of 4
Actions that cut occurrenceO lowered
2
Actions that cut detectionD lowered
2
Actions that cut severityblast radius unchanged
0
FM-02 The PLCs hang, and their air handlers shut down instead of going to maximum coolingAir handling unit PLCs 8·3·8 192 120
Function
Hold the air handlers in safe maximum cooling when supervisory control is lost
Effect
No cooling in part of the zone; servers overheat and shut down
Cause
Same software interaction left the PLCs unresponsive
Prevention in place
Fail-safe to maximum cooling on loss of control
Detection in place
Found only during manual investigation
S 8
Servers overheated and some hardware had to be retired: 8.
O 3
Needs FM-01 plus PLC hang: 'remote to infrequent'.
D 8
The hung PLCs were found only by walking the plant.

Corrective action

  • Operator training for fast reset (AWS, done) Correction of errors #3

After action: S8 · O3 · D5 → RPN 120. Trained operators should find and reset hung PLCs faster; occurrence is unchanged until the vendor bug is fixed.

Who acts — playbook

Prevent
  • Mechanical / cooling engineer Test the maximum-cooling fail-safe with the supervisor offline, unit by unitASHRAE TC 9.9Improvement #5
Detect
  • Mechanical / cooling engineer Alarm on any air handler that stops while supervisory control is downASHRAE TC 9.9Contributing factor #2
Contain
  • Mechanical / cooling engineer Reset hung controllers and force units to maximum cooling by handUptime OSCorrection of errors #5
  • Service recovery lead Shut down workloads in the hot area before servers trip on temperatureSRE incident mgmtLesson #3
Recover
  • Operations lead Power servers back only once inlet temperatures are in rangeASHRAE TC 9.9Correction of errors #5

Evidence

  • Sequence of events #3“instead shuts down”
  • Sequence of events #9“The unresponsive air-handler PLCs are found and reset.”
  • Contributing factor #2PLCs on some air handling units also became unresponsive, so the units shut down instead of going to maximum cooling (AWS summary).
FM-03 Purge cannot be activated because it still runs through the hung PLCsPurge mode bypass 8·3·8 192 80
Function
Let operators exhaust hot air quickly when controls malfunction
Effect
The manual override fails; temperatures keep rising
Cause
Override path shares the PLCs with normal control
Prevention in place
Manual bypass of the control system
Detection in place
Found when the operators tried it
S 8
It removed the last defence before servers overheated: 8.
O 3
Fails whenever the PLCs fail: 'remote to infrequent'.
D 8
The dependency was not visible until purge was needed.

Corrective action

  • Purge mode that bypasses the PLCs completely (AWS, in progress) Correction of errors #4

After action: S8 · O2 · D5 → RPN 80. A purge path independent of the PLCs removes the shared dependency; completion in the Tokyo facility is not reported.

Who acts — playbook

Prevent
  • Mechanical / cooling engineer Wire the purge override so it does not pass through the controllers it backs upASHRAE TC 9.9Correction of errors #4
Detect
  • Operations lead Drill the purge override periodically and record whether it actually moves airUptime OSLesson #1
Contain
  • Mechanical / cooling engineer Open the area to purge by hard-wired controls as soon as temperatures riseASHRAE TC 9.9Correction of errors #4
Recover
  • Service recovery lead Check hardware exposed to heat before returning it to serviceUptime OSContributing factor #6

On the record at this failure

Evidence

FM-01 The failover triggers a third-party bug and the control system becomes unresponsiveCooling control system failover 7·3·7 147 98
Function
Keep supervisory control of the cooling plant while moving to another control host
Effect
Supervisory control and operator visibility of cooling are lost
Cause
Bug in third-party control logic during state resync with field devices
Prevention in place
Control system on multiple hosts
Detection in place
None before the event
S 7
On its own the design should fall back to maximum cooling, so 7; the damage came from FM-02.
O 3
Needs a failover plus the bug: 'remote to infrequent'.
D 7
The bug was in vendor code and unseen in prior failovers.

Corrective action

  • Failover mode disabled (AWS, done) Correction of errors #1
  • Vendor root-cause work (in progress) Correction of errors #2

After action: S7 · O2 · D7 → RPN 98. With the triggering failover mode disabled, the known path cannot recur; detection of other bugs is unchanged.

Who acts — playbook

Prevent
  • Vendor / upstream provider Test control-system failover against the full device population before enabling itChange managementLesson #2
Detect
  • Mechanical / cooling engineer Keep temperature readings that do not depend on the control systemASHRAE TC 9.9Lesson #3
Contain
  • Operations lead Disable the failover mode that triggers the fault until the vendor fixes itChange managementCorrection of errors #1
Recover
  • Mechanical / cooling engineer Reset the control system and confirm every device reports stateUptime OSCorrection of errors #3

Evidence

  • Sequence of events #2“the control system becomes unresponsive”
  • Contributing factor #1A bug in third-party control-system logic, triggered by a host failover, made the control system unresponsive (AWS summary).
  • Contributing factor #4With the control system down the operations team had minimum visibility of the cooling plant (AWS summary).
FM-04 Launches using the idempotency token fail across the RegionRunInstances idempotency path 6·3·4 72 —
Function
Let customers and Auto Scaling launch replacement capacity safely
Effect
Auto Scaling cannot replace lost capacity for 90 minutes
Cause
Not detailed in the summary
Prevention in place
Regional API design
Detection in place
Error rates visible from 13:21
S 6
It blocked the standard way to recover capacity elsewhere: 6.
O 3
Needs a zone fault exposing this dependency: 'remote to infrequent'.
D 4
Errors were visible at once; the fix took 90 minutes.

Corrective action

  • Idempotency-token issue fixed during the event (AWS) Correction of errors #6

Who acts — playbook

Prevent
  • Operations lead Make sure the token path does not depend on any single zoneSRE incident mgmtContributing factor #5
Detect
  • Operations lead Alert on launch errors by request type, not only overallSRE incident mgmtContributing factor #5
Contain
  • Service recovery lead Restore the token path first so Auto Scaling can replace capacitySRE incident mgmtCorrection of errors #6
Recover
  • Communications lead Tell customers when Auto Scaling launches work againITIL 4Correction of errors #6

Evidence

  • Sequence of events #7“Auto Scaling launches stop”
  • Metric #3Idempotency-token / Auto Scaling errors: 13:21 → 14:51 JST (1 hour 30 minutes)
  • Contributing factor #5The idempotency-token path of RunInstances failed Region-wide, blocking Auto Scaling launches (AWS summary).
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

TRIGGER: the datacenter control system that drives fans, chillers and air handlers in one Tokyo Availability Zone was failing away from one of its hosts. A bug in third-party control logic made the failover flood the field devices with interactions, and the control system stopped responding. COOLING CHAIN: the design says cooling goes to maximum when the control system fails. In most of the building it did.
Full root-cause narrative
In a small portion, PLCs on some air handling units had also become unresponsive, so the units shut down instead. The operators' manual fallback, purge mode, also ran through those PLCs and failed. Servers in the hot area powered off from 12:36 JST. RECOVERY: without the control system the team had little visibility. They reset equipment by hand, found and reset the air-handler PLCs, and cooling was back at 15:21. Most instances were back by 18:30; some on heat-damaged hardware were retired. LATENT ROOT: the fail-safe and the manual override both depended on the same PLCs, so the same software fault defeated the normal path, the safe default and the bypass.

Contributing factors by category

Contributing factors by category — AWSEquipment: AHU PLCs hang; Hardware damaged by heat. Design: Purge runs via PLCs; Token path Region-wide. Process: Operators blind. External: Vendor control bug. Effect: Tokyo zone servers overheat.Tokyo zone servers overheatEquipmentAHU PLCs hangHardware damaged by heatProcessOperators blindDesignPurge runs via PLCsToken path Region-wideExternalVendor control bug
Each short label stands for a contributing factor or failure mode recorded in this dossier; the full sentences are listed below.
  • A bug in third-party control-system logic, triggered by a host failover, made the control system unresponsive (AWS summary).
  • PLCs on some air handling units also became unresponsive, so the units shut down instead of going to maximum cooling (AWS summary).
  • Purge mode, the manual bypass, still depended on those PLCs and failed (AWS summary).
  • With the control system down the operations team had minimum visibility of the cooling plant (AWS summary).
  • The idempotency-token path of RunInstances failed Region-wide, blocking Auto Scaling launches (AWS summary).
  • Heat and power loss damaged some hardware, so some instances and volumes had to be retired (AWS summary).

Analysis

Three layers, one weak point

Normal control, the fail-safe to maximum cooling, and the manual purge all ran through the same air-handler PLCs. When those hung, every layer failed in the affected area. Redundancy at the control-host level did not help, because the failover itself triggered the bug.

Blind operators

The control system was also the operators' window into the plant. Recovery meant walking the floor, checking and resetting equipment one by one, which took about two and three-quarter hours.

Small area, real damage

Only a small share of servers overheated, but some hardware was damaged and instances had to be retired. Heat is not always a clean shutdown.

API side effects

The idempotency-token path failed Region-wide for 90 minutes and blocked Auto Scaling, the tool customers would use to replace capacity.

What the summary does not say

It does not name the control-system vendor or the PLC model, the peak temperature, the number of affected servers, or when the purge bypass was finished.

Technical deep-dive
Building management systems are usually redundant at the server level, but a failover is itself a busy moment: the new host must re-learn the state of every device. Here that resync hit a bug and overwhelmed the devices. The cooling plant's fail-safe (go to maximum cooling on loss of supervisory control) is sound only if the local controllers still act on it. The PLCs on some air handlers had hung, so they neither kept running nor obeyed the purge command. AWS's lasting fix is to wire purge mode around the PLCs entirely, an approach it says its newest designs already use. The API symptoms were a separate path: launches using the idempotency token, which Auto Scaling relies on, failed across the Region for 90 minutes while ordinary launches in other zones worked.

Corrective actions and lessons

Correction of errors

ActionOwnerStatus
Disable the control-system failover mode that triggered the bugAWSDone per the summary
Work with third-party vendors to understand the bug in the control system and PLCsAWS with vendorsIn progress at the time of the summary
Train local operations teams to identify and reset this situation quicklyAWSDone per the summary
Change control of the affected air handling units so purge mode bypasses the PLCs completelyAWSIn progress; already used in newest designs
Manual reset of affected cooling equipment and the air-handler PLCsAWS operationsDone during the event
Fix of the idempotency-token issue in RunInstancesAWS engineersDone during the event, 14:51 JST

Lessons learnt

  • A fail-safe and its manual override must not share the component most likely to fail with the primary path.
  • Control-system failover is a risky moment; test it against the real device population, not a lab.
  • Losing the building management system means losing visibility: keep independent temperature and airflow readings.
  • Operators need a drilled, fast reset procedure for controllers; AWS now expects to reset before customers notice.
  • Multi-zone designs held, but some load-balancer features still showed errors; test multi-zone behaviour under a zone fault.

Improvements

  • Controls: disable the failover mode that triggered the bug (AWS, done).
  • Controls: purge mode that bypasses the PLCs (AWS, in progress).
  • Operations: training for fast identification and reset (AWS, done).
  • Vendor: root cause of the third-party bug (AWS with vendors, in progress).
  • Analyst recommendation (not in the summary): independent temperature monitoring outside the BMS and periodic tests of the cooling fail-safe with the supervisor offline.

References and provenance

  • official-postmortem AWS Post-Event Summary: Summary of the Amazon EC2 and Amazon EBS Service Event in the Tokyo (AP-NORTHEAST-1) Region“The team attempted to activate purge in the affected areas of the datacenter, but this also failed.”https://aws.amazon.com/message/56489/
  • vendor-status AWS Post-Event Summaries index“Summary of the Amazon EC2 and Amazon EBS Service Event in the Tokyo (AP-NORTHEAST-1) Region”https://aws.amazon.com/premiumsupport/technology/pes/

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

Root access required

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

Back to Home