AlgoViz

The Google Cloud outage of 2025

medium 30 min

On June 12, 2025 a policy record with blank fields was copied to every Google Cloud region within seconds.

See it run

Replay the crash and the herd, then the repaired design. Three regions stand for all.

Operations

The failure

One record, every region, from Google's incident report.

Step 1 of 7

Two weeks before

Policy changePolicy tablesin each regionControl, region Anew code, unusedControl, region Bnew code, unusedControl, region Cnew code, unused

New quota checks run in no region, because no policy uses them.

Step 1: Two weeks before

insert(policy)                     # blank fieldsreplicate_everywhere(policy)       # seconds# in each region:p = table.read(policy_id)limit = p.limit.value              # null pointer# crash, restart, read again
Shows
Crash loop
Costs
API requests fail

The regions are separate. The record is not.

In the real world

The same the google cloud outage of 2025 doing real jobs. Pick one and step through it.

Minutes since the start, from the report.

Step 1 of 4

2 minutes

Policy changePolicy tablesin each regionControl, region Acrash loopControl, region Bcrash loopControl, region Ccrash loop

Engineers triage. All regions fail in the same way.

Step 1: 2 minutes

Common mistakes

The bugs interviewers watch for, with the fix beside each.

  • Global data in seconds

    critical

    The borders of regions do not stop a record.

    Wrong
    replicate(policy, all_regions)
    Right
    for group in groups:    apply(policy, group); wait_and_check(group)
  • Using an optional field without a check

    critical

    Blank values arrive one day.

    Wrong
    limit = policy.limit.value
    Right
    limit = policy.limit.value if policy.limit else last_good
  • Restart without a random wait

    major

    All tasks meet at the database.

    Wrong
    while not load(): pass
    Right
    while not load(): sleep(random(0, window)); window *= 2
  • New path without a flag

    major

    It can only be on everywhere or off everywhere.

    Wrong
    run_new_checks(policy)
    Right
    if flag("new_checks", project): run_new_checks(policy)

Interview tips

  • How to explain it

    • Code staged, data not.
    • Blank fields, null pointer, crash loop.
    • Switch in 40 minutes, then a herd.
  • Numbers worth knowing

    • May 29 and June 12, 2025.
    • 2, 10, 25, 40 minutes.
    • About 2 h 40 min in us-central1.
  • FLAG

    • Flags off, limited steps.
    • Absent values handled.
    • Gradual restart.
  • Do not say

    • The network failed.
    • All machines stopped.
    • Fail open always.