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?

Google
Statistics & Math
Software Engineer
Google
November 29, 2026
Software Engineer
Onsite
Statistics & Math
Medium

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
order statistics
exponential distribution
harmonic numbers
tail latency
hedged requests
How to Approach This
  1. Define your hypotheses (H0 and H1) clearly before performing any test.
  2. Calculate required sample size BEFORE running an experiment, using power analysis.
  3. Remember the Central Limit Theorem: sample means become approximately normal with large n.
  4. Watch for Simpson's paradox. Always segment data by key dimensions.
  5. 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 Questions
Sample Answer
Clarify

Leaf times X1..XnX_1..X_n i.i.d. Exponential with rate λ=0.1\lambda = 0.1 per ms (mean 10 ms), n=100n = 100. Network and root processing are ignored. We want E[max⁡Xi]E[\max X_i] and E[X(95)]E[X_{(95)}], the time until 95 h...

Approach

Order the arrivals. While jj servers are still pending, the time until the next arrival is the minimum of jj independent exponentials, which by memorylessness is Exponential(jλj\lambda). So the gaps...


Submit Your Answer
Markdown supported