Failure#f1
Two datacenters chosen to be independent went offline together through a peering point they shared
- Trigger
At 7:57am Pacific Time on Saturday, April 13, according to AWS, a connectivity issue began because a peering point in Northern California was degrading. The two AWS regions PagerDuty used shared that peering point.
Section: The Outage | Near: two of the datacenters shared a common peering
- How it failed
A node in the notification dispatch system failed, and an attempt at 8:13am to bring it back did not succeed. From 8:18am monitoring saw failures across multiple providers for notifications; most still went through, with higher latencies and error rates. At 8:35am the system lost all ability to dispatch, because high network latency kept it from establishing quorum. It reached quorum again at 8:53am and began processing the queued notifications.
Section: The Outage
- Why defences did not hold
The software had been rearchitected over the past year to survive the loss of one entire datacenter, but surviving two failing at once was not specifically built into the design. The three datacenters had been picked to have no dependency among them, yet the team learned only afterwards that two shared a peering point. The post-mortem also found that a misconfiguration of the coordinator service prevented a quick recovery.
Section: Background | Near: a misconfiguration on our coordinator service prevented
- Impact
PagerDuty could not dispatch notifications for 18 minutes, between 8:35am and 8:53am, though the events API was still able to accept events during that time. Before that, notifications were going out with increased latencies and error rates. The post's opening describes the failure as delays in notifications and 500s on API endpoints.
Near: dispatch notifications for 18 minutes between 8:35am | Near: but with increased latencies and error rates | Near: delays in notifications and 500s on our API
- Fix
More logging has been added. In progress: aggregating logs into a single source. Planned: a process watcher to restart failed coordinator processes automatically, most of which were restarted by hand during the outage; a dashboard of inter-host connectivity; training staff on Cassandra and ZooKeeper; and investigating a move off one of the AWS regions.
Section: Short term | Section: Long term