Load Balancing with Dynamic Set of Balls and Bins
Abstract
In dynamic load balancing, we wish to distribute balls into bins in an environment where both balls and bins can be added and removed. We want to minimize the maximum load of any bin but we also want to minimize the number of balls and bins affected when adding or removing a ball or a bin. We want a hashing-style solution where we given the ID of a ball can find its bin efficiently. We are given a balancing parameter , where . With and the current numbers of balls and bins, we want no bin with load above , referred to as the capacity of the bins. We present a scheme where we can locate a ball checking bins in expectation. When inserting or deleting a ball, we expect to move balls, and when inserting or deleting a bin, we expect to move balls. Previous bounds were off by a factor . These bounds are best possible when but for larger , we can do much better: Let if , if , and if . We show that we expect to move balls when inserting or deleting a ball, and balls when inserting or deleting a bin. For the bounds with larger , we first have to resolve a much simpler probabilistic problem. Place balls in bins of capacity , one ball at the time. Each ball picks a uniformly random non-full bin. We show that in expectation and with high probability, the fraction of non-full bins is . Then the expected number of bins that a new ball would have to visit to find one that is not full is . As it turns out, we obtain the same complexity in our more complicated scheme where both balls and bins can be added and removed.
Keywords
Cite
@article{arxiv.2104.05093,
title = {Load Balancing with Dynamic Set of Balls and Bins},
author = {Anders Aamand and Jakob Bæk Tejs Knudsen and Mikkel Thorup},
journal= {arXiv preprint arXiv:2104.05093},
year = {2021}
}
Comments
Accepted at STOC'21