On the Fault-Tolerant Online Bin Packing Problem

Shahin Kamali, Pooya Nikbakht

TL;DR

This paper tackles the fault-tolerant online bin packing problem, a model often used for cloud server consolidation where jobs are replicated to survive up to $f$ simultaneous server failures. The authors introduce the Harmonic-Stretch algorithm, which dynamically handles server failures and recoveries while items are still arriving. It achieves a new state-of-the-art asymptotic competitive ratio of 1.75, improving over the previous best of 2, even while operating in a more realistic and challenging environment.

What Problem Does This Paper Address?

In cloud computing, service providers consolidate client applications (tenants) onto shared servers to minimize operational costs. This is a classic "online bin packing" problem, where items of various sizes arrive one by one and must be packed into the minimum number of fixed-capacity bins.

To prevent service interruptions when servers fail, jobs are replicated. Under the "primary-standby" model, each job of size $x$ gets one primary replica (size $x$, handling active queries) and $f$ standby replicas (size $x/\eta$, where $\eta > 1$, acting as backups). If a server holding a primary replica fails, a standby replica must be promoted to primary, increasing its load from $x/\eta$ to $x$.

Previous algorithms for this problem assumed a simplified, somewhat unrealistic model: all items are packed first, and then up to $f$ servers fail. In reality, packing is an ongoing process, and servers fail and recover while new jobs are still arriving. This paper addresses this gap by designing an algorithm that maintains a valid, fault-tolerant packing even when bins fail and recover dynamically during the online input sequence.

Methods

The authors introduce a new algorithm called Harmonic-Stretch. It consists of two main components: a packing strategy and an adjustment strategy.

  • Item Classification: Unlike previous algorithms that classified items solely based on the size of their standby replicas, Harmonic-Stretch classifies items based on the sizes of both their primary and standby replicas. Items are sorted into 7 primary classes and $\lfloor 6\eta \rfloor + 1$ standby classes.
  • Bin Groups: The algorithm maintains "groups" of bins for each class. Primary and standby replicas are strictly packed into separate bins.
  • Super-replicas: To handle very small items efficiently, the algorithm merges consecutive small items into "super-replicas." These super-replicas are then packed using the same logic applied to regular-sized items.
  • Adjustment Strategy: When a primary bin fails, the algorithm uses an injective mapping to promote standby replicas in non-failed bins to primary status. Standby bins are packed with a specific amount of reserved space. Because the mapping is injective, at most one standby replica per bin is ever promoted at a time, guaranteeing that the reserved space is sufficient and the bin never overflows.

Datasets

Not discussed in the paper. As a theoretical computer science paper, the evaluation relies on mathematical proofs of the algorithm's asymptotic competitive ratio rather than empirical benchmarks on datasets.

Key Insights and Ideas

  • Dual Classification is highly effective: By classifying items based on both primary and standby sizes, the algorithm can pack bins much more tightly than previous methods, directly leading to the improved competitive ratio.
  • Injective mapping guarantees safety: The core challenge of dynamic failures is ensuring that promoting backups doesn't cause a cascade of overloaded servers. By mathematically enforcing an injective mapping from failed primary replicas to available standby replicas, the algorithm ensures a strict upper bound on how much a standby bin's load can expand during a failure event.
  • Super-replicas simplify edge cases: Tiny items often complicate bin packing proofs. Grouping them into super-replicas allows the algorithm to abstract away their complexity, treating a cluster of small items as a single, predictable block.

Key Results

  • Improved Competitive Ratio: The Harmonic-Stretch algorithm achieves an asymptotic competitive ratio of at most 1.75. This means that, in the worst case, it will use no more than 1.75 times the number of bins used by an optimal, offline packing algorithm.
  • State-of-the-Art Performance: This is a significant improvement over the previous best competitive ratio of 2 (achieved by the Harmonic-Shifting algorithm).
  • Stronger Guarantees: Harmonic-Stretch achieves this better ratio despite operating in a strictly harder, more generalized model where failures and recoveries happen dynamically during the packing process.

Limitations and Future Work

The authors note that there is still a gap between their new upper bound and the theoretical limits of the problem. When the parameter $\eta$ is close to 1, existing lower bounds from classic online bin packing apply, meaning no algorithm can achieve a competitive ratio better than 1.54.

For future work, the authors suggest attempting to tighten this gap—either by designing an even more efficient algorithm to push the 1.75 upper bound down, or by proving a higher lower bound specific to the fault-tolerant variant of the problem.

Summary updated

Abstract

We study the fault-tolerant variant of the online bin packing problem. Similar to the classic online bin packing problem, an online sequence of items of various sizes should be packed into a minimum number of bins of uniform capacity. For applications such as server consolidation, where bins represent servers and items represent jobs of various loads, it is necessary to maintain fault-tolerant solutions. In a fault-tolerant packing, any job is replicated into \(f+1\) servers, for some integer \(f>1\), so that the failure of up to f servers does not interrupt service. We build over a practical model, introduced by Li and Tang [SPAA 2017], in which each job of load x has a primary replica of load x and f standby replicas, each of load \(x/\eta \), where \(\eta >1\) is a parameter of the problem. Upon failure of up to f servers, any primary replica in a failed bin should be replaced by one of its standby replicas so that the extra load of the new primary replica does not cause an overflow in its bin.
BibTeX
@inproceedings{kamali2021fault,
  author = {Shahin Kamali and Pooya Nikbakht},
  title = {{On the Fault-Tolerant Online Bin Packing Problem}},
  booktitle = {ALGOCLOUD},
  year = {2021},
  url = {https://openreview.net/forum?id=2GQaIfsm0C},
}

Loading related content...

Figure