Consistent Hashing with Bounded Loads

被引:0
|
作者
Mirrokni, Vahab [1 ]
Thorup, Mikkel [2 ]
Zadimoghaddam, Morteza [1 ]
机构
[1] Google Res, New York, NY 10001 USA
[2] Univ Copenhagen, Copenhagen, Denmark
关键词
CHORD;
D O I
暂无
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
In dynamic load balancing, we wish to allocate a set of clients (balls) to a set of servers (bins) with the goal of minimizing the maximum load of any server and also minimizing the number of moves after adding or removing a server or a client(1). We want a hashing-style solution where we given the ID of a client can efficiently find its server in a distributed dynamic environment. In such a dynamic environment, both servers and clients may be added and/or removed from the system in any order. The most popular solutions for such dynamic settings are Consistent Hashing [KLL (+)97, SML (+)03] or Rendezvous Hashing [TR98]. However, the load balancing of these schemes is no better than a random assignment of clients to servers, so with n of each, we expect many servers to be overloaded with Theta(log n/log log n) clients. In this paper, we aim to design hashing schemes that achieve any desirable level of load balancing, while minimizing the number of movements under any addition or removal of servers or clients. In particular, we consider a problem with m balls and n bins, and given a user-specified balancing parameter c = 1 + epsilon > 1, we aim to find a hashing scheme with no load above [cm/n], referred to as the capacity of the bins. Our algorithmic starting point is the consistent hashing scheme where current balls and bins are hashed to the unit cycle, and a ball is placed in the first bin succeeding it in clockwise order. In order to cope with given capacity constraints, we apply the idea of linear probing by forwarding the ball on the circle to the first non-full bin. We show that in our hashing scheme when a ball or bin is inserted or deleted, the expected number of balls that have to be moved is within a multiplicative factor of O(1/epsilon(2)) of the optimum for epsilon <= 1 (Theorem 1.2) and within a factor 1 + O(log c c) of the optimum for epsilon >= 1 (Theorem 1.1). Technically, the latter bound is the most challenging to prove. It implies that for superconstant c, we only pay a negligible cost in extra moves. We also get the same bounds for the simpler problem where, instead of a user specified balancing parameter, we have a fixed bin capacity C for all bins, and define c = 1 + epsilon = Cn/m.
引用
收藏
页码:587 / 604
页数:18
相关论文
共 50 条
  • [1] Revisiting Consistent Hashing with Bounded Loads
    Chen, John
    Coleman, Benjamin
    Shrivastava, Anshumali
    THIRTY-FIFTH AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE, THIRTY-THIRD CONFERENCE ON INNOVATIVE APPLICATIONS OF ARTIFICIAL INTELLIGENCE AND THE ELEVENTH SYMPOSIUM ON EDUCATIONAL ADVANCES IN ARTIFICIAL INTELLIGENCE, 2021, 35 : 3976 - 3983
  • [2] Consistent hashing with bounded loads and virtual nodes-based load balancing strategy for proxy cache cluster
    Xiang, Min
    Jiang, Yuzhou
    Xia, Zhong
    Huang, Chunmei
    CLUSTER COMPUTING-THE JOURNAL OF NETWORKS SOFTWARE TOOLS AND APPLICATIONS, 2020, 23 (04): : 3139 - 3155
  • [3] Consistent hashing with bounded loads and virtual nodes-based load balancing strategy for proxy cache cluster
    Min Xiang
    Yuzhou Jiang
    Zhong Xia
    Chunmei Huang
    Cluster Computing, 2020, 23 : 3139 - 3155
  • [4] BOUNDED INDEX EXPONENTIAL HASHING
    LOMET, DB
    ACM TRANSACTIONS ON DATABASE SYSTEMS, 1983, 8 (01): : 136 - 165
  • [5] Web caching with consistent hashing
    Karger, D
    Sherman, A
    Berkheimer, A
    Bogstad, B
    Dhanidina, R
    Iwamoto, K
    Kim, B
    Matkins, L
    Yerushalmi, Y
    COMPUTER NETWORKS-THE INTERNATIONAL JOURNAL OF COMPUTER AND TELECOMMUNICATIONS NETWORKING, 1999, 31 (11-16): : 1203 - 1213
  • [6] Web caching with consistent hashing
    Karger, David
    Sherman, Alex
    Berkheimer, Andy
    Bogstad, Bill
    Dhanidina, Rizwan
    Iwamoto, Ken
    Kim, Brian
    Matkins, Luke
    Yerushalmi, Yoav
    Computer Networks, 1999, 31 (11): : 1203 - 1213
  • [7] SUPERVISED CONSISTENT AND SPECIFIC HASHING
    Wang, Haitao
    Meng, Min
    Chen, Hui
    Wu, JiGang
    2019 IEEE INTERNATIONAL CONFERENCE ON MULTIMEDIA AND EXPO (ICME), 2019, : 1822 - 1827
  • [8] Web caching with consistent hashing
    Karger, D
    Sherman, A
    Berkheimer, A
    Bogstad, B
    Dhanidina, R
    Iwamoto, K
    Kim, B
    Matkins, L
    Yerushalmi, Y
    PROCEEDINGS OF THE EIGHTH INTERNATIONAL WORLD WIDE WEB CONFERENCE, 1999, : 125 - 135
  • [9] APPROXIMATE COUNTING BY HASHING IN BOUNDED ARITHMETIC
    Jerabek, Emil
    JOURNAL OF SYMBOLIC LOGIC, 2009, 74 (03) : 829 - 860
  • [10] A survey and comparison of consistent hashing algorithms
    Coluzzi, Massimo
    Brocco, Amos
    Contu, Patrizio
    Leidi, Tiziano
    2023 IEEE INTERNATIONAL SYMPOSIUM ON PERFORMANCE ANALYSIS OF SYSTEMS AND SOFTWARE, ISPASS, 2023, : 346 - 348