AWS Tokyo 2019: Cooling Control Failover Bug Overheats Part of a Zone
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
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 shutdowns | 12:36 JST, 23 Aug 2019 |
| Cooling restored | 15:21 JST, 2 hours 45 minutes after the first shutdowns |
| Idempotency-token / Auto Scaling errors | 13:21 → 14:51 JST (1 hour 30 minutes) |
| Launches in the zone failing | until 16:05 JST |
| Vast majority recovered | 18:30 JST, 5 hours 54 minutes after the first shutdowns |
| Share of servers affected | a small percentage of EC2 servers in one zone |
Sequence of events
- TRIGGER The datacenter control system that runs the cooling plant is failing away from one of its control hosts.
- TRIGGER During the failover a bug in third-party control logic causes excessive interactions with the field devices, and the control system becomes unresponsive.
- 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.
- 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
- 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.
- DETECTION With the control system down, the operations team has minimum visibility into the state of the cooling systems.
- CASCADE RunInstances calls targeting the zone, and calls using the idempotency token anywhere in the Region, start returning errors; Auto Scaling launches stop.
- MITIGATION The team manually investigates and resets every affected piece of equipment and sets it to maximum cooling.Mechanical / cooling engineer
- MITIGATION The unresponsive air-handler PLCs are found and reset.
- RECOVERY Engineers resolve the idempotency-token issue; Auto Scaling launches work again.Operations lead
- RECOVERY The affected cooling systems are restored and temperatures start to fall.
- RECOVERY As temperatures normalise, power is restored to the affected instances.
- RECOVERY The EC2 control-plane subsystem in the zone is restored and new launches there succeed.
- RESTORED The vast majority of affected instances and volumes have recovered.
- IMPACT Instances and volumes on hardware damaged by the power loss and heat take longer; some have to be retired.
- 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
- 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
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 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
- Tried to purge hot air; purge failed
Operators try to bypass the control system
- Reset equipment by hand to maximum cooling
The team manually investigates and resets every affected piece of equipment
Playbook analyst guidance by failure mode, not a record of what happened
- 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
Playbook analyst guidance by failure mode, not a record of what happened
- FM-04Make sure the token path does not depend on any single zoneSRE incident mgmtContributing factor #5
- FM-01Disable the failover mode that triggers the fault until the vendor fixes itChange managementCorrection of errors #1
- 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
- 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
- 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
- Updated the summary with multi-zone side effects
AWS reports isolated cases where multi-zone applications also saw errors
Playbook analyst guidance by failure mode, not a record of what happened
- 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.
- 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
- Mechanical / cooling engineer Test the maximum-cooling fail-safe with the supervisor offline, unit by unitASHRAE TC 9.9Improvement #5
- Mechanical / cooling engineer Alarm on any air handler that stops while supervisory control is downASHRAE TC 9.9Contributing factor #2
- 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
- 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
- Mechanical / cooling engineer Wire the purge override so it does not pass through the controllers it backs upASHRAE TC 9.9Correction of errors #4
- Operations lead Drill the purge override periodically and record whether it actually moves airUptime OSLesson #1
- Mechanical / cooling engineer Open the area to purge by hard-wired controls as soon as temperatures riseASHRAE TC 9.9Correction of errors #4
- Service recovery lead Check hardware exposed to heat before returning it to serviceUptime OSContributing factor #6
On the record at this failure
Evidence
- Sequence of events #4“purge also fails”
- Reference #1 · official-postmortem“this also failed”
- Contributing factor #3Purge mode, the manual bypass, still depended on those PLCs and failed (AWS summary).
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
- Vendor / upstream provider Test control-system failover against the full device population before enabling itChange managementLesson #2
- Mechanical / cooling engineer Keep temperature readings that do not depend on the control systemASHRAE TC 9.9Lesson #3
- Operations lead Disable the failover mode that triggers the fault until the vendor fixes itChange managementCorrection of errors #1
- 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
- Operations lead Make sure the token path does not depend on any single zoneSRE incident mgmtContributing factor #5
- Operations lead Alert on launch errors by request type, not only overallSRE incident mgmtContributing factor #5
- Service recovery lead Restore the token path first so Auto Scaling can replace capacitySRE incident mgmtCorrection of errors #6
- 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
| 10 | Hazard to people, or loss of the facility / several regions |
| 9 | Region-wide or provider-wide outage of a foundational service, no workaround |
| 8 | Full outage of a major service for hours |
| 7 | Major degradation of a major service |
| 6 | Partial outage confined to one zone or one service |
| 5 | Customer-visible degradation |
| 4 | Limited customer impact |
| 3 | Internal impact only |
| 2 | Negligible |
| 1 | No effect |
Occurrence
| 10 | Near certain: the cause is present in normal operation |
| 8 | Frequent: routine work exercises the cause |
| 6 | Occasional: a foreseeable slip or condition, weakly guarded |
| 4 | Infrequent: needs an unusual combination |
| 2 | Remote: guarded by design |
| 1 | Eliminated by design |
Detection
| 10 | No control could detect it |
| 9 | Detected only through customer impact |
| 8 | Detected after impact by internal monitoring |
| 6 | Detected at onset, not prevented |
| 4 | Detected before impact with time to act |
| 2 | Automated interlock almost certainly stops it |
| 1 | Certain to be stopped |
Root cause and contributing factors
Full root-cause narrative
Contributing factors by category
- 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
Corrective actions and lessons
Correction of errors
| Action | Owner | Status |
|---|---|---|
| Disable the control-system failover mode that triggered the bug | AWS | Done per the summary |
| Work with third-party vendors to understand the bug in the control system and PLCs | AWS with vendors | In progress at the time of the summary |
| Train local operations teams to identify and reset this situation quickly | AWS | Done per the summary |
| Change control of the affected air handling units so purge mode bypasses the PLCs completely | AWS | In progress; already used in newest designs |
| Manual reset of affected cooling equipment and the air-handler PLCs | AWS operations | Done during the event |
| Fix of the idempotency-token issue in RunInstances | AWS engineers | Done 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.