ABSTRACT
A fundamental problem in distributed computing is the distribution of requests to a set of uniform servers without a centralized controller. Classically, such problems are modelled as static balls into bins processes, where m balls (tasks) are to be distributed to n bins (servers). In a seminal work, [Azar et al.; JoC'99] proposed the sequential strategy Greedy[d] for n = m. When thrown, a ball queries the load of d random bins and is allocated to a least loaded of these. [Azar et al.; JoC'99] showed that d=2 yields an exponential improvement compared to d=1. [Berenbrink et al.; JoC'06] extended this to m ⇒ n, showing that the maximal load difference is independent of m for d=2 (in contrast to d=1).
We propose a new variant of an infinite balls into bins process. In each round an expected number of λ n new balls arrive and are distributed (in parallel) to the bins and each non-empty bin deletes one of its balls. This setting models a set of servers processing incoming requests, where clients can query a server's current load but receive no information about parallel requests. We study the Greedy[d] distribution scheme in this setting and show a strong self-stabilizing property: For any arrival rate λ=λ(n) < 1, the system load is time-invariant. Moreover, for any (even super-exponential) round t, the maximum system load is (w.h.p.) O(1 over 1-λ•logn over 1-λ) for d=1 and O(log n over 1-λ) for d=2. In particular, Greedy[2] has an exponentially smaller system load for high arrival rates.
- M. Adler, P. Berenbrink, and K. Schröder. Analyzing an infinite parallel job allocation process. In Proceedings of the 6th Annual European Symposium on Algorithms, ESA '98, pages 417--428, London, UK, UK, 1998. Springer-Verlag. ISBN 3-540-64848-8. URL http://dl.acm.org/citation.cfm?id=647908.740138. Google ScholarDigital Library
- M. Adler, S. Chakrabarti, M. Mitzenmacher, and L. Rasmussen. Parallel randomized load balancing. Random Structures & Algorithms, 13 (2): 159--188, 1998. ISSN 1098-2418. 10.1002/(SICI)1098--2418 URL http://dx.doi.org/10.1002/(SICI)1098--2418(199809)13:2<159::AID-RSA3>3.0.CO;2-Q. Google ScholarDigital Library
- A. S. Alfa. Algorithmic analysis of the bmap/d/k system in discrete time. Adv. in Appl. Probab., 35 (4): 1131--1152, 12 2003. 10.1239/aap/1067436338. URL http://dx.doi.org/10.1239/aap/1067436338.Google ScholarCross Ref
- Y. Azar, A. Z. Broder, A. R. Karlin, and E. Upfal. Balanced allocations. SIAM Journal on Computing, 29 (1): 180--200, 1999. 10.1137/S0097539795288490. Google ScholarDigital Library
- L. Becchetti, A. E. F. Clementi, E. Natale, F. Pasquale, and G. Posta. Self-stabilizing repeated balls-into-bins. In G. E. Blelloch and K. Agrawal, editors, Proceedings of the 27th ACM on Symposium on Parallelism in Algorithms and Architectures, SPAA 2015, Portland, OR, USA, June 13-15, 2015, pages 332--339. ACM, 2015. ISBN 978-1-4503-3588-1. 10.1145/2755573.2755584. URL http://doi.acm.org/10.1145/2755573.2755584. Google ScholarDigital Library
- P. Berenbrink, A. Czumaj, T. Friedetzky, and N. D. Vvedenskaya. Infinite parallel job allocation (extended abstract). In phProceedings of the Twelfth Annual ACM Symposium on Parallel Algorithms and Architectures, SPAA '00, pages 99--108, New York, NY, USA, 2000. ACM. ISBN 1-58113-185-2. 10.1145/341800.341813. URL http://doi.acm.org/10.1145/341800.341813. Google ScholarDigital Library
- P. Berenbrink, A. Czumaj, A. Steger, and B. Vöcking. Balanced allocations: The heavily loaded case. SIAM Journal on Computing, 35 (6): 1350--1385, 2006. 10.1137/S009753970444435X. Google ScholarDigital Library
- P. Berenbrink, A. Czumaj, M. Englert, T. Friedetzky, and L. Nagel. Multiple-choice balanced allocation in (almost) parallel. In A. Gupta, K. Jansen, J. Rolim, and R. Servedio, editors, Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques, volume 7408 of Lecture Notes in Computer Science, pages 411--422. Springer Berlin Heidelberg, 2012. ISBN 978-3-642-32511-3. 10.1007/978-3-642-32512-0_35. URL http://dx.doi.org/10.1007/978-3-642-32512-0_35.Google Scholar
- P. Berenbrink, K. Khodamoradi, T. Sauerwald, and A. Stauffer. Balls-into-bins with nearly optimal load distribution. In Proceedings of the Twenty-fifth Annual ACM Symposium on Parallelism in Algorithms and Architectures, SPAA '13, pages 326--335, New York, NY, USA, 2013. ACM. ISBN 978-1-4503-1572-2. 10.1145/2486159.2486191. URL http://doi.acm.org/10.1145/2486159.2486191. Google ScholarDigital Library
- P. Berenbrink, T. Friedetzky, P. Kling, F. Mallmann-Trenn, L. Nagel, and C. Wastell. Self-stabilizing balls & bins in batches. CoRR, abs/1603.02188, 2016. URL http://arxiv.org/abs/1603.02188.Google Scholar
- A. Czumaj. Recovery time of dynamic allocation processes. In Proceedings of the Tenth Annual ACM Symposium on Parallel Algorithms and Architectures, SPAA '98, pages 202--211, New York, NY, USA, 1998. ACM. ISBN 0-89791-989-0. 10.1145/277651.277686. URL http://doi.acm.org/10.1145/277651.277686. Google ScholarDigital Library
- A. Czumaj and V. Stemann. Randomized allocation processes. In Foundations of Computer Science, 1997. Proceedings., 38th Annual Symposium on, pages 194--203, Oct 1997. 10.1109/SFCS.1997.646108. Google ScholarDigital Library
- G. Fayolle, V. Malyshev, and M. Menshikov. Topics in the Constructive Theory of Countable Markov Chains. Cambridge University Press, 1995. ISBN 9780521461979. URL https://books.google.ca/books?id=lTJltFEnnHcC.Google Scholar
- G. H. Gonnet. Expected length of the longest probe sequence in hash code searching. J. ACM, 28 (2): 289--304, Apr. 1981. ISSN 0004-5411. 10.1145/322248.322254. URL http://doi.acm.org/10.1145/322248.322254. Google ScholarDigital Library
- B. Hajek. Hitting-time and occupation-time bounds implied by drift analysis with applications. Advances in Applied Probability, 14 (3): 502--525.Google ScholarCross Ref
- A. Kamal. Efficient solution of multiple server queues with application to the modeling of atm concentrators. In INFOCOM '96. Fifteenth Annual Joint Conference of the IEEE Computer Societies. Networking the Next Generation. Proceedings IEEE, volume 1, pages 248--254 vol.1, Mar 1996. 10.1109/INFCOM.1996.497900. Google ScholarDigital Library
- N. K. Kim, M. L. Chaudhry, B. K. Yoon, and K. Kim. A complete and simple solution to a discrete-time finite-capacity bmap/d/c queue. 2012.Google Scholar
- D. A. Levin and Y. Perres. Markov Chains and Mixing Times. American Mathematical Society, December 2008. ISBN 978-0-8218-4739-8.Google ScholarCross Ref
- M. Mitzenmacher. The power of two choices in randomized load balancing. IEEE Trans. Parallel Distrib. Syst., 12 (10): 1094--1104, 2001. 10.1109/71.963420. URL http://doi.ieeecomputersociety.org/10.1109/71.963420. Google ScholarDigital Library
- Y. Peres, K. Talwar, and U. Wieder. The (1 β)-choice process and weighted balls-into-bins. In Proceedings of the 21st Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), SODA '10, pages 1613--1619, Philadelphia, PA, USA, 2010. Society for Industrial and Applied Mathematics. ISBN 978-0--898716--98--6. Google ScholarDigital Library
- M. Raab and A. Steger. "balls into bins" - A simple and tight analysis. In M. Luby, J. D. P. Rolim, and M. J. Serna, editors, Randomization and Approximation Techniques in Computer Science, Second International Workshop, RANDOM'98, Barcelona, Spain, October 8-10, 1998, Proceedings, volume 1518 of Lecture Notes in Computer Science, pages 159--170. Springer, 1998. ISBN 3-540-65142-X. 10.1007/3-540-49543-6_13. URL http://dx.doi.org/10.1007/3--540--49543--6_13. Google ScholarDigital Library
- K. Sohraby and J. Zhang. Spectral decomposition approach for transient analysis of multi-server discrete-time queues. In INFOCOM'92. Eleventh Annual Joint Conference of the IEEE Computer and Communications Societies, IEEE, pages 395--404. IEEE, 1992. Google ScholarDigital Library
- V. Stemann. Parallel balanced allocations. In Proceedings of the Eighth Annual ACM Symposium on Parallel Algorithms and Architectures, SPAA '96, pages 261--269, New York, NY, USA, 1996. ACM. ISBN 0-89791-809-6. 10.1145/237502.237565. URL http://doi.acm.org/10.1145/237502.237565. Google ScholarDigital Library
- K. Talwar and U. Wieder. Balanced allocations: A simple proof for the heavily loaded case. In J. Esparza, P. Fraigniaud, T. Husfeldt, and E. Koutsoupias, editors, Automata, Languages, and Programming, volume 8572 of Lecture Notes in Computer Science, pages 979--990. Springer Berlin Heidelberg, 2014. ISBN 978-3-662-43947-0. 10.1007/978-3-662-43948-7_81. URL http://dx.doi.org/10.1007/978--3--662--43948--7_81.Google Scholar
Index Terms
- Self-stabilizing Balls & Bins in Batches: The Power of Leaky Bins [Extended Abstract]
Recommendations
Load balancing with dynamic set of balls and bins
STOC 2021: Proceedings of the 53rd Annual ACM SIGACT Symposium on Theory of ComputingIn 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 that are ...
Self-Stabilizing Repeated Balls-into-Bins
SPAA '15: Proceedings of the 27th ACM symposium on Parallelism in Algorithms and ArchitecturesWe study the following synchronous process that we call repeated balls-into-bins. The process is started by assigning n balls to n bins in an arbitrary way. Then, in every subsequent round, one ball is chosen according to some fixed strategy (random, ...
Balanced allocations with heterogenous bins
SPAA '07: Proceedings of the nineteenth annual ACM symposium on Parallel algorithms and architecturesBalls-into-bins processes are a useful and common abstraction for many load-balancing related problems. A well known paradigm for load balancing in distributed or parallel servers is the "multiple choice paradigm" where an item (ball) is put in the less ...
Comments