The Google Cloud outage of 2025
medium 30 minOn June 12, 2025 a policy record with blank fields was copied to every Google Cloud region within seconds.
Video lesson · Chapter 1 of 5
The change that woke an old path
A blank record in 75 seconds
1:15Reel coming soon
Theory
Read or listen first. About 2 min.
What it is
Every call to a Google Cloud API passes a checkpoint. It asks: is this caller allowed, and is there quota left? The program that does this is called Service Control. It runs in each region and reads its policies from a database in the same region.
On May 29, 2025 new code for additional quota checks was rolled out, region by region. No policy used it yet. On June 12 a policy change with unintended blank fields was inserted. Because quota is managed globally, the record was replicated to all regions within seconds. Each Service Control read it, followed a null pointer and crashed, again and again. API requests were answered with 503.
The facts and times on this page are from Google's incident report. Where we add a design idea of our own, we say so.
Why it exists
The code had been released carefully, in stages. The data had not. A stage without the trigger proves nothing, so the real release of the new code was the moment the data arrived, everywhere at once.
It is also a good lesson in repair. An off switch was prepared in advance, and it worked. Then the recovery itself created a new overload, because all tasks came back together.
And it shows the cost of depending on yourself: the status page was down with the outage, so the first public notice came about an hour late.
A short history
May 29, 2025
New quota policy checks are added to Service Control, rolled out region by region, without a feature flag.
June 12, 2025, about 10:45 AM PDT
A policy with blank fields is inserted and replicated worldwide within seconds. Crashes begin.
June 12, 2025, 11:46 AM PDT
First entry on the public Cloud Service Health page.
June 12, 2025, 1:49 PM PDT
End of the main incident in the mini report, about three hours after its start. Some products need longer.
June 13, 2025
Google publishes the full incident report.
Words to know
- Service Control
- The program that checks policy and quota for each API request.
- Control plane
- The part that decides and manages. The data plane does the running work.
- Quota
- How many requests or resources a customer may use.
- Null pointer
- A reference to nothing. Using it without a check ends the program.
- Crash loop
- Start, read the same bad input, crash, start again.
- Feature flag
- A switch that turns new code on for a small group first.
- Red button
- Google's name for the switch that turns a serving path off.
- Herd effect
- Many clients ask at the same moment and overload what they need.
- Fail open
- If a check cannot run, let the request pass.
- Exponential backoff with jitter
- Wait longer after each failure, with a random part.
How it works
Step through the idea, or press Play.
Sleeping code. Released in stages, never used
Understand it
Start here
The blank stamp card
A company runs three parks. Each has turnstiles that look at a rule card before they let a visitor in.
The turnstiles were fine. The card that all of them shared was not.
What happened
The timeline
June 12, 2025, US Pacific time
| When | What happened |
|---|---|
| May 29 | New quota checks released, region by region |
| About 10:45 AM | Policy with blank fields inserted, copied worldwide in seconds |
| 10:49 to 10:51 AM | Start of impact (49 in the mini report, 51 on the page) |
| Within 2 min | Site reliability engineers triage |
| Within 10 min | Cause found, red button being prepared |
| About 25 min | Red button ready to roll out |
| Within 40 min | Red button rollout complete, recovery begins |
| 11:46 AM | First public entry on the health page |
| 12:48 PM | All regions except us-central1 mitigated |
| 1:49 PM | End in the mini report |
| 6:18 PM | Last product fully recovered |
Three lengths of one outage
How it works
The checkpoint for API requests
Google describes management and control planes that are distributed over regions. For each incoming request they make sure that it is authorised and that policy and quota allow it. Service Control is the core of the policy check.
One region
A normal request
| Part | Reach | Speed of change |
|---|---|---|
| Service Control binary | Per region | Region by region, over days |
| Policy table | Per region | Filled by global replication |
| Policy data | Whole world | Seconds |
| Red button | Whole world | Minutes, with a rollout |
The cause
Four things that had to be missing
Error handling
The path did not handle blank fields. A null pointer ended the program.
Feature flag
Without a flag the path could not be enabled for internal projects first. Google writes that a flag would have caught it in staging.
Steps for data
Policy data went to all regions in seconds, with no pause to look.
Backoff
Restarting tasks did not wait for a random time, so they met at the database.
Why the staged code release found nothing
policy = {"id": "quota-7", "limit": None} # a blank fielddef check_then(policy, used): return used < policy["limit"] # fails on Nonedef check_now(policy, used): limit = policy.get("limit") if limit is None: return True, "bad policy, let it pass and report" return used < limit, Noneprint(check_now(policy, 5))The spread
Regional code, global data
Seconds around the world
Reach before detection
Good reasons for global data
- A quota is one number for the whole customer
- A change should count everywhere
- One copy of the truth is simple
What it costs
- A bad record has no border
- Regions are no longer independent
- Rollback needs the same path
The response
Forty minutes to the switch
- 1
Triage: 2 minutes
Alerts came quickly, because every region failed in the same way.
- 2
Cause: 10 minutes
The path was known, and a red button existed for exactly this path.
- 3
Ready: about 25 minutes
The switch was prepared for rollout.
- 4
Done: within 40 minutes
The rollout was complete, and recovery began with smaller regions.
Compare with a fix in code: write, review, build, test and roll out a new binary. A switch that exists is faster than the best patch. Here it was decided when the code was written, two weeks before it was needed.
The herd
Why one region took much longer
When many Service Control tasks restart, each of them reads the policy table. In large regions such as us-central1 they did so together, and the table could not keep up. Reads failed, tasks tried again, and the load stayed. Engineers throttled the creation of tasks and sent traffic to multi-regional databases.
Spreading restarts (our example)
Restart with and without jitter
Impact
Who felt it
Google lists more than 60 Google Cloud products, from IAM, Cloud Storage and BigQuery to App Engine, Cloud Run and Vertex AI, and Workspace products such as Gmail, Calendar, Drive, Docs, Chat and Meet. Customers had intermittent trouble with APIs and user interfaces. Existing streaming and IaaS resources were not impacted. Locations in all parts of the world were affected.
Some products recovered later, because they had a backlog or their own design. The last was Vertex AI Online Prediction, at 6:18 PM. Lists of customers, amounts of money and shares per continent are not in the report, so this page leaves them out.
The status page problem
| Need | What happened | What to do |
|---|---|---|
| Tell customers | First notice after about an hour, the health page was down too | Host status elsewhere |
| Let customers see | Their monitoring on Google Cloud failed as well | A second signal outside |
| Know what to say | Automatic and human messages were late | Prepared texts and owners |
The repair
What Google announced, and what to design
| Announced | Meaning |
|---|---|
| Freeze changes to Service Control and manual policy pushes | No new risk until the repair is done |
| Split it into modules that fail open | One failing check does not block requests |
| Audit globally replicated data | Spread in steps, with time to validate |
| Flags for critical binaries, off by default | New paths start with a small group |
| Better static analysis and tests | Errors are handled |
| Random exponential backoff everywhere | No herds |
| Better and independent communication | People know early |
A policy change in the repaired design
The quota check cannot read its policy. What should a request get?
BreaksCrash or reject everything
- How
- No policy, no service.
- Limit
- A bad record becomes a global outage.
- Choose when
- Only for checks that protect people or data.
WorksAlways let it pass
- How
- Fail open for the whole checkpoint.
- Limit
- Permission checks must not be skipped.
- Choose when
- Only if the check is purely a limit.
StrongDecide per check
- How
- Quota: last good policy, then open. Permission: last good policy, then closed. Both report.
- Limit
- Two behaviours to test, and some abuse is possible while quota is open.
- Choose when
- Any checkpoint with several duties.
For the people who build it
- Handle each optional field
- A flag that is off, and a button that turns it off
- Canary for data
- Backoff and a limit on task starts
Anti-patterns
- Assuming that a field is always filled
- Regional code with instant global data
- Restarts without a pause
- Status on the same platform
Related: fallbacks, circuit breaker, failure models, rate limiting. The same lesson with a file instead of a record: the CrowdStrike outage of 2024.
Summary
The whole topic in one minute.
New code lay unused for two weeks, without error handling and without a feature flag. A policy with blank fields used it for the first time, in all regions within seconds, and Service Control crashed in a loop. Requests to APIs failed, while streaming and infrastructure that already ran were not impacted.
Engineers triaged within 2 minutes, found the cause within 10, and finished rolling out the red button within 40. Small regions recovered first. In us-central1 the restarting tasks overloaded the policy database, because restarts had no random backoff. That region took up to about 2 hours and 40 minutes.
Roll out data in steps, put new paths behind flags that are off, let non-critical checks fail open, spread restarts over time, and keep status and monitoring outside of what they watch.
- Code was released in stages, but its trigger, the data, went everywhere in seconds.
- Blank fields, no error handling, no flag: a crash loop in every region.
- A prepared red button was rolled out within 40 minutes.
- Restarts without random backoff overloaded the table in us-central1.
- Stage the data, decide fail open per check, and keep the status page independent.