We Are Impatient: Algorithms for Geographically Distributed Load Balancing with (Almost) Arbitrary Load Functions

Piotr Skowron, Krzysztof Rzadca

Abstract

In geographically distributed systems, communication latencies are non-negligible. The perceived processing time of a request is composed of the routing time and the actual processing time at the server. We consider a broad class of convex, twice-differentiable load functions, allowing for heterogeneous systems and empirically-derived performance models. We introduce centralized and decentralized algorithms for optimal load balancing, establishing the first known convergence bounds for these general cases. Our decentralized approach, based on pairwise gossip, is robust to failures and achieves local optimality at each step.

Introduction

In the modern landscape of global web services, user patience is a finite resource. Research suggests that even a 250ms increase in latency can significantly drive users away to competitors. In geographically distributed systems—such as Content Delivery Networks (CDNs) or global cloud infrastructures—the total response time is the sum of two distinct components: network latency (the time to route a request) and processing time (the time the server takes to execute the task).

Traditional load-balancing research often falls into two traps: either ignoring communication costs entirely or relying on idealized mathematical models (like M/M/1 queues) that fail to capture the messy reality of server behavior under stress. This paper addresses these gaps by proposing algorithms that handle significant network latencies and support "almost arbitrary" load functions derived from real-world empirical data.

The Model: Flexibility through Convexity

The authors model a system of $m$ servers where each server $i$ has a load function $f_i(l)$. This function describes the average processing time as a function of the load $l$. Unlike previous work that requires specific queuing formulas, this model only requires that $f_i(l)$ be:

  1. Convex: Increasing the load does not decrease the processing time.
  2. Twice-differentiable: The function is smooth enough for gradient-based optimization.

This flexibility allows engineers to use performance curves obtained directly from stress-testing hardware, rather than forcing their system to fit a theoretical model.

Algorithmic Approaches

The paper introduces two primary methods to achieve an optimal distribution of requests.

1. Centralized Algorithm

The centralized approach iteratively identifies the "most unbalanced" pair of servers. A pair is considered unbalanced if moving a unit of load from one to the other would reduce the total system time, accounting for the change in network latency. By utilizing a Minimum Cost Flow subroutine, the algorithm ensures that for any given distribution of load, the network routing is always optimal.

2. Decentralized Algorithm (MinE)

For systems requiring high resilience and scalability, the authors propose MinE, a gossip-based decentralized algorithm. In this model, each server periodically selects a random peer and rebalances their combined load to minimize their joint contribution to the system's total processing time. This "any-time" algorithm requires no global knowledge, making it highly robust to individual server failures.

Key Theoretical Insights

The core of the paper's contribution lies in its formal proofs regarding the "communication-balanced" state. A system reaches this state when, for any two servers, the time saved by shifting load is strictly less than the additional network latency incurred by the move.

Furthermore, the authors provide the first known theoretical convergence bounds for this general class of load functions:

  • Centralized Efficiency: The algorithm is polynomial in the total load, capable of halving the relative error in $O(m^5 \log m)$ time.
  • Decentralized Speed: The gossip-based approach reaches a target error level $e_d$ in an expected time complexity of $O(m^3)$.
  • Local Optimality: The authors prove that each pairwise step in the decentralized algorithm is the best possible local optimization.

Limitations and Future Directions

While the model is robust, it operates under certain assumptions:

  • High Bandwidth: It assumes that network costs are dominated by latency (distance) rather than congestion or bandwidth limits.
  • Divisible Load: Requests are treated as continuous values, which may not perfectly represent systems with very large, atomic tasks.
  • Static Latency: The model assumes network latencies are constant. While the algorithms can be re-run if conditions change, they do not natively model high-frequency network jitter.

Future work will involve validating these theoretical bounds against real-world workloads and non-standard load functions in experimental environments.

Conclusion

By moving beyond rigid queuing models, this research provides a practical framework for balancing load in global systems. The ability to use empirical stress-test data combined with proven convergence bounds offers a significant step forward for engineers building responsive, geographically distributed services.

Summary updated

BibTeX
@inproceedings{skowron2015we,
  author = {Piotr Skowron and Krzysztof Rzadca},
  title = {{We Are Impatient: Algorithms for Geographically Distributed Load Balancing with (Almost) Arbitrary Load Functions}},
  booktitle = {HiPC},
  year = {2015},
  url = {https://openreview.net/forum?id=rfg4iwhYS9},
}
Figure