Abstract
We study the fault-tolerant variant of the online bin packing problem. Similar to the classic 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 different loads, it is required 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. We study a general setting in which bins might fail while the input is still being revealed. Our main contribution is an algorithm, named Harmonic-Stretch, which maintains fault-tolerant packings under this general setting. We prove that Harmonic-Stretch has an asymptotic competitive ratio of at most 1.75. This is an improvement over the best existing asymptotic competitive ratio 2 of an algorithm by Li and Tang [TPDS 2020], which works under a model in which bins fail only after all items are packed.
Introduction
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.
The Harmonic-Stretch Algorithm
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. This 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.
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. This 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.
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, simplifying edge cases and allowing the algorithm to treat a cluster of small items as a single, predictable block.
Key Results
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. This is a significant improvement over the previous best competitive ratio of 2 (achieved by the Harmonic-Shifting algorithm). 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.
Discussion
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