Design Safe Rollout of New Search Index Versions Across Datacenters
Last updated: November 29, 2026
Quick Overview
Design how a search serving fleet switches from one fully built index version to the next across many datacenters without downtime, with quality checks and fast rollback.
Google
System Design
Software Engineer
Software Engineer
System Design Round
System Design
Medium
0
0
0 solved
Design how a search serving fleet switches from one fully built index version to the next across many datacenters without downtime, with quality checks and fast rollback.
A Google onsite question about operations for search infra. The interviewer is checking release engineering judgment: shipping huge data artifacts, keeping serving capacity during swaps, canarying on quality metrics, and rolling back quickly.
What the Interviewer Expects
- Distribute index files ahead of time with checksums
- Swap shards while keeping enough replicas serving
- Ensure a query never mixes shards from two incompatible versions
- Canary with automated quality and latency comparisons
- Keep the previous version on disk for instant rollback
Key Topics to Cover
artifact distribution
canary analysis
rolling updates
version pinning
rollback
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- Can a query hit version N on some shards and N+1 on others?
- How much spare capacity do you need during the rollout?
- Which metrics would gate the canary?
- How do you ship 100 TB to 30 datacenters quickly?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
- Index version is a set of shard files, built offline, ~100 TB total.
- 30 datacenters, each with replicas of every shard.
- No drop in availability, no visible quality regression, rollback in minute...
High-Level Design
- Distribution: builder publishes a manifest (version, shard files, checksums) to a global store. A peer-to-peer distribution system (BitTorrent-style within datacenters) copies files to every le...
Submit Your Answer
Markdown supported