In modern distributed systems, "stragglers"—individual servers that take significantly longer than average to complete a task—are a major bottleneck. A common strategy to combat this is sending redundant requests: instead of asking one server for a piece of data, you ask three and take whichever response arrives first. While this sounds like a win for speed, it increases the total load on the system.
In their paper, "When Do Redundant Requests Reduce Latency?", Nihar B. Shah and his colleagues at UC Berkeley provide the first rigorous analytical framework to determine when this trade-off actually pays off.
TL;DR
Redundancy is a powerful tool for bypassing slow servers, but it can easily backfire by overwhelming the system with extra work. This paper proves that the benefit of redundant requests depends entirely on the statistical "heaviness" of service time distributions and the cost of canceling redundant tasks.
What Problem Does This Paper Address?
Engineers building large-scale systems (like Google’s search backend or Amazon’s EC2) have long observed that the tail latency—the delay experienced by the slowest 1% of requests—is often dominated by a few slow machines. Sending clones of a request to multiple servers can mitigate this, but it creates a fundamental tension:
- Individual Gain: A single request finishes faster because it only needs the minimum time of its multiple copies.
- System Pain: The total number of jobs in the system increases, potentially leading to longer queues and higher overall latency.
While many empirical studies have shown that redundancy helps in some cases and hurts in others, there was no clear theoretical rule for why. This paper aims to provide those rules.
Methods
The authors utilize a mathematical model based on the "MDS queue" (Maximum Distance Separable), which generalizes how requests are served in distributed storage and compute clusters. They analyze two main architectures:
- Centralized Buffer: All incoming requests wait in one common queue before being assigned to idle servers.
- Distributed Buffers: Each server has its own local queue, and requests must be assigned to specific servers upon arrival.
To move beyond simple toy models, they define two broad classes of probability distributions for service times:
- Heavy-everywhere: Distributions where the longer you have already waited, the longer you are likely to continue waiting (e.g., a mixture of exponential distributions).
- Light-everywhere: Distributions where waiting longer means you are closer to completion (e.g., a uniform distribution or a shifted exponential).
The researchers used coupling techniques—a sophisticated way to compare two different stochastic systems side-by-side—to prove which redundancy policies are optimal under various conditions.
Key Insights and Ideas
- Memoryless is the Tipping Point: If service times are perfectly memoryless (exponential) and canceling redundant jobs is instantaneous and free, sending requests to all available servers is always the best strategy.
- The "Heaviness" Rule: If service times are "heavy-everywhere," redundancy is highly effective. Because these distributions are prone to extreme stragglers, the benefit of escaping a slow server outweighs the cost of the extra load.
- The Danger of "Light" Distributions: If service times are "light-everywhere," redundancy is actually harmful at high system loads. In these systems, a job that has been running for a while is likely almost done; starting a new copy is just wasteful.
- The Cost of Cancellation: In the real world, "killing" a redundant request isn't always instant or free. The paper proves that if there is any non-zero "removal cost," having no redundancy at all becomes the optimal strategy as the system load increases.
Key Results
The paper’s findings are summarized in a comprehensive taxonomy (Table I in the paper), but the simulation results provide the most intuitive view:
- Heavy-tailed Benefits: In systems with heavy-everywhere service times, increasing redundancy ($r$) consistently lowers average latency across all arrival rates. Average latency in a heavy-everywhere system
- The Crossover Point: For light-everywhere distributions, redundancy helps when the system is idle but causes latency to skyrocket as the arrival rate ($\lambda$) increases, eventually performing much worse than a system with no redundancy ($r=1$). Average latency in a light-everywhere system
Limitations and Future Work
While this work provides a solid theoretical foundation, the authors note several areas for further exploration:
- Scheduling Policies: The analysis focuses on First-Come, First-Served (FCFS). Other policies, like Processor Sharing or Shortest-Job-First, might yield different optimal redundancy levels.
- Heterogeneity: The model assumes all servers and requests are statistically identical (i.i.d.). In reality, some servers might be permanently slower than others, or some requests might be inherently more complex.
- Adaptive Policies: The paper mostly looks at fixed redundancy levels. A major open question is how to design adaptive policies that change the number of redundant requests in real-time based on current system load.
Summary updated