Expected Wait for the Slowest of 100 Search Leaf Servers
Last updated: November 29, 2026
Quick Overview
A Search query fans out to 100 leaf servers whose response times are independent exponentials with mean 10 ms, and the root waits for all of them. What is the expected time until the last response, and how much does waiting for the fastest 95 help?
0
0
0 solved
A Search query fans out to 100 leaf servers whose response times are independent exponentials with mean 10 ms, and the root waits for all of them. What is the expected time until the last response, and how much does waiting for the fastest 95 help?
Fan-out tail latency is central to how Google serving systems are built, and interviewers use this to see if a candidate can quantify it. They check order statistics of exponentials, the harmonic number result, and how it motivates partial results or hedged requests.
What the Interviewer Expects
- Use memorylessness to decompose the max into stages
- Derive E[max] = H_n / lambda, about 52 ms for n = 100
- Compute expected time for the k-th fastest
- Show the big gain from dropping the slowest few
- Connect to hedged requests and partial results
Key Topics to Cover
How to Approach This
- Define your hypotheses (H0 and H1) clearly before performing any test.
- Calculate required sample size BEFORE running an experiment, using power analysis.
- Remember the Central Limit Theorem: sample means become approximately normal with large n.
- Watch for Simpson's paradox. Always segment data by key dimensions.
- Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
- What is the expected time of the fastest response among the 100?
- With hedging (send each request to two replicas, take the first), what is the new expected max?
- Why are real latencies usually worse than exponential in the tail?
- How would you choose k to balance quality and latency?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Statistics QuestionsSample Answer
Clarify
Leaf times i.i.d. Exponential with rate per ms (mean 10 ms), . Network and root processing are ignored. We want and , the time until 95 h...
Approach
Order the arrivals. While servers are still pending, the time until the next arrival is the minimum of independent exponentials, which by memorylessness is Exponential(). So the gaps...