Outage2 Jun 2019

Google Cloud Network Control Plane Outage

Maintenance automation meant for one site shut down network control jobs across several sites at once.

Severity
Front-page news
Difficulty
advanced
Companies
Google
Tech
Google Cloud, BGP, Cluster management, Network control plane
Root cause
network control plane, latent bug, config pushed globally

The story

Quick (1 min)

On Sunday 2 June 2019, Google Cloud's network in several US regions became badly congested for 3 to 4.5 hours. Cloud customers, plus Google services like G Suite, saw errors, slowness and lost connections.

A routine maintenance job started at one data centre. The automation was supposed to pause software only at that one site, but a bug let it pause software at other sites too, including the software that controls Google's network.

The network is built to keep running for a while without its controller. After a few minutes, routes between sites were withdrawn and capacity collapsed. Fixing it was slow because the congested network also broke the tools engineers needed to fix it.

The lesson: maintenance automation needs hard limits on how much it can touch at once.

Keep reading to the end to earn XP.Read. XP earned.

Engineer (2 min)

Background. Google's machines are split into logical clusters, each run by cluster management software. The network control plane runs as jobs under several instances of that software, so losing one instance shouldn't matter. The software also automates maintenance: jobs are labelled to either move or stop when maintenance hits their machines.

Three things combined:

  1. Network control plane jobs in the affected regions were configured to stop during maintenance.
  2. The cluster manager instances running them were eligible for a rare maintenance event type.
  3. The maintenance software had a bug that let it deschedule multiple independent clusters at once, even in different physical locations.

The trigger (11:45 PT). A maintenance event started at one location. The automation listed the logical clusters to deschedule there, and those clusters also ran network control jobs at other locations. Everything in scope was stopped.

Fail static, then fail. The network was designed to fail static and keep forwarding without the control plane for a while. It ran normally for several minutes. Then BGP routing between the affected locations was withdrawn, and network capacity dropped sharply. User impact began between 11:47 and 11:49.

Slow recovery:

  • Engineers were alerted within 2 minutes, but debugging tools competed for the congested network. Backup plans included travelling to secure facilities and lowering the priority of less critical traffic.
  • Root cause was found at 13:01 and the automation halted.
  • With all control plane instances stopped, configuration data had been lost and had to be rebuilt and redistributed. It began rolling out at 14:03. Capacity returned from 15:19, with full service at 16:10.

Interview takeaway: automation needs blast-radius limits, control planes should persist their config, and incident tooling must work when the network doesn't.

Keep reading to the end to earn XP.Read. XP earned.

Deep dive (2 min)

Timeline (US/Pacific, from Google's incident report)

  • 11:45: a maintenance event starts at one physical location. Automation deschedules in-scope logical clusters, including network control jobs at several locations.
  • 11:47–11:49: after several minutes of fail-static operation, BGP between affected locations is withdrawn and end-user impact begins.
  • ~11:47: engineers are alerted two minutes after the failure began, and the highest-severity incident process starts. Tools struggle on the congested network.
  • 13:01: root cause identified; the maintenance automation is halted.
  • 14:03: rebuilt network configuration starts rolling out.
  • 15:19: network capacity starts returning.
  • 16:10: full service resumed.

Regions and impact

Affected regions: us-central1, us-east1, us-east4, us-west2, northamerica-northeast1, southamerica-east1. us-west1 and all European and Asian regions did not see regional congestion. Some examples from the report:

  • Compute Engine instances in us-east4, us-west2, northamerica-northeast1 and southamerica-east1 were inaccessible for the duration.
  • us-east1 saw up to 33% packet loss from 11:38 to 12:17.
  • App Engine in the four hardest-hit regions was unavailable; us-central saw a 23.2% drop in requests per second.
  • Cloud Interconnect saw 10% to 100% packet loss in affected regions.
  • Affected services included Compute Engine, App Engine, Cloud Endpoints, Interconnect, VPN, Console, Stackdriver Metrics, Pub/Sub, BigQuery, regional Spanner, regional Cloud Storage, and G Suite in those regions.

Why it was hard to fix

"Debugging the problem was significantly hampered by failure of tools competing over use of the now-congested network."

Configuration lived only in the running control plane, so when all instances stopped in several places it had to be rebuilt during an ongoing network event.

Google's follow-ups

  • Halt the maintenance automation until safeguards stop it descheduling jobs in multiple physical locations at once.
  • Harden cluster management to reject such requests regardless of origin.
  • Reconfigure the network control plane to reject this type of maintenance request.
  • Persist control plane configuration locally, which Google expected to cut recovery time "by an order of magnitude."
  • Extend fail-static duration to leave a longer recovery window.
  • Review and test emergency tooling, including customer communication tools, against network failures, and add this scenario to disaster recovery testing.

Keep reading to the end to earn XP.Read. XP earned.

Failure replay

Step by step, what broke and what it hit next.

  1. 11:45
    Maintenance automationfailing

    A rare maintenance event starts at one site. A bug lets it deschedule clusters that also span other sites.

    Affects: Network control plane

  2. 11:45
    Network control planedown

    Control plane jobs are configured to stop during maintenance, and they stop in several locations at once.

    Affects: Data plane

  3. 11:45–11:48
    Data planedegraded

    The network fails static and keeps forwarding without its controller for several minutes.

  4. 11:47–11:49
    Data planedown

    BGP routing between affected sites is withdrawn and capacity collapses.

    Affects: US cloud regions

  5. 11:49+
    US cloud regionsfailing

    Packet loss, timeouts and unreachable instances hit several US regions plus G Suite.

    Affects: Customers

  6. 11:47–13:01
    Incident toolingdegraded

    Engineers are paged in 2 minutes, but their tools fight for the same congested network.

  7. 13:01
    Maintenance automationrecovering

    Root cause found and the automation halted. The control plane's configuration is gone and must be rebuilt.

    Affects: Network control plane

  8. 14:03–15:19
    Network control planerecovering

    Rebuilt configuration rolls out location by location and capacity starts to return.

    Affects: Data plane

  9. 16:10
    Customershealthy

    Full service resumes after 3 to 4.5 hours, depending on region.

Impact

Who was affected
Google Cloud customers in us-central1, us-east1, us-east4, us-west2, northamerica-northeast1 and southamerica-east1, plus G Suite and other Google services in those regions.
How long
Between 3 hours 19 minutes and 4 hours 25 minutes, depending on region.
Cost
not disclosed

Lessons

  • Automation must enforce blast-radius limits; never let one action touch multiple independent locations.
  • Critical control planes should refuse disruptive maintenance and persist their config so they can restart quickly.
  • Fail-static designs buy time, but only if recovery fits inside the window.
  • Incident tooling must work when the network is degraded.
  • Several harmless misconfigurations plus one bug can add up to a major outage.

Quiz

  1. What started the outage?

    Check answer

    Maintenance automation descheduled network control jobs in multiple physical locations at once. A bug let the maintenance software deschedule independent clusters across locations, including those running the network control plane.

  2. Why didn't impact start the moment the control plane stopped?

    Check answer

    The network is designed to "fail static" and kept running for several minutes without its control plane. The data plane kept forwarding for a few minutes, then BGP routes between the affected locations were withdrawn.

  3. Why did recovery take so long after the root cause was found at 13:01?

    Check answer

    Control plane configuration had been lost and needed to be rebuilt and redistributed across multiple locations. With every control plane instance stopped in several places, config had to be recreated during an ongoing network event.

  4. Which regions did NOT see regional network congestion?

    Check answer

    us-west1 and all European and Asian regions. Google's report says us-west1 and all European and Asian regions did not experience regional congestion.

Interview prep

Try answering out loud before you open the model answer.

  1. system design

    What does it mean for a network data plane to "fail static", and what did Google's June 2019 outage show about its limits?

    Show model answer

    Fail static means the data plane keeps forwarding with its last known state when the control plane disappears, so control plane failures don't immediately break traffic. Google's network ran normally for several minutes after its control plane was descheduled, then BGP routes were withdrawn and capacity collapsed. Limits: fail static only buys time, so recovery has to fit inside that window. Google's recovery took hours because config had to be rebuilt. Its fixes were to extend the fail-static duration and persist control plane config so restarts are fast.

    A strong answer hits:

    • Data plane keeps last-known state without the control plane
    • Only buys a limited window
    • Recovery time must fit inside the window
    • Persisted config shortens recovery
  2. system design

    You're building automation that drains or stops jobs for datacenter maintenance. What safeguards would you include?

    Show model answer

    Hard scope limits: one physical location or failure domain at a time, enforced in the automation and also by the target system rejecting out-of-scope requests (defence in depth). Critical jobs such as network control must be marked never-stop, or move-only. Do pre-flight checks that simulate the impact ("this will deschedule control plane jobs in 3 sites"), add rate limits and canaries, and provide a global stop switch. Test it with failure-injection drills.

    A strong answer hits:

    • Scope limited to a single failure domain
    • Target systems reject out-of-scope requests
    • Critical jobs protected from stop actions
    • Impact preview, rate limits, kill switch
  3. debugging

    During a major network incident your monitoring and debugging tools are failing because they depend on the same network. How should you prepare for this?

    Show model answer

    Plan for it in advance. Run out-of-band management networks and tools that don't depend on production paths. Prioritise traffic classes so incident tooling and control traffic get through congestion; Google lowered the priority of less critical traffic. Keep runbooks offline and have physical fallback locations. Have independent customer communication channels. Practise all of it in disaster recovery tests that simulate network loss.

    A strong answer hits:

    • Out-of-band management access
    • Traffic prioritisation for critical tooling
    • Offline runbooks and fallback locations
    • Disaster recovery drills that include tooling loss

Go deeper