局部会合哈希:通过缓存本地候选实现有界负载和最小 churn
Local Rendezvous Hashing: Bounded Loads and Minimal Churn via Cache-Local Candidates
AI总结:
LRH通过缓存本地候选实现有界负载和最小 churn,比多探针一致性哈希快6.8倍,接近平衡状态。
摘要:
一致性哈希是分布式系统的基础,但基于环的方案除非使用许多虚拟节点,否则可能会表现出高峰值到平均负载比率,而多探针方法虽然能提高平衡性,但会以散列内存访问为代价。本文引入了局部会合哈希(LRH),它保留了令牌环,但将最高随机权重(HRW)选择限制在缓存本地的C个不同的物理节点窗口中。LRH通过一次二分查找定位键,使用预计算的下一个不同偏移量精确枚举C个不同的候选者,并选择HRW胜者(可选加权)。查找成本为O(log|R| + C)。在固定拓扑存活变化下,固定候选过滤仅重新映射原胜者已下线的键,从而产生零额外 churn。在基准测试中,当N=5000,V=256(|R|=1.28M),K=50M且C=8时,LRH将最大/平均负载从1.2785降至1.0947,并实现60.05 Mkeys/s,比使用8次探针的一致性哈希(8.80 Mkeys/s)快约6.8倍,接近其平衡状态(最大/平均1.0697)。微基准测试表明,多探针分配受重复环搜索和内存交通主导,而非探针生成算术。
英文摘要:
Consistent hashing is fundamental to distributed systems, but ring-based schemes can exhibit high peak-to-average load ratios unless they use many virtual nodes, while multi-probe methods improve balance at the cost of scattered memory accesses. This paper introduces Local Rendezvous Hashing (LRH), which preserves a token ring but restricts Highest Random Weight (HRW) selection to a cache-local window of C distinct neighboring physical nodes. LRH locates a key by one binary search, enumerates exactly C distinct candidates using precomputed next-distinct offsets, and chooses the HRW winner (optionally weighted). Lookup cost is O(log|R| + C). Under fixed-topology liveness changes, fixed-candidate filtering remaps only keys whose original winner is down, yielding zero excess churn. In a benchmark with N=5000, V=256 (|R|=1.28M), K=50M and C=8, LRH reduces Max/Avg load from 1.2785 to 1.0947 and achieves 60.05 Mkeys/s, about 6.8x faster than multi-probe consistent hashing with 8 probes (8.80 Mkeys/s) while approaching its balance (Max/Avg 1.0697). A microbenchmark indicates multi-probe assignment is dominated by repeated ring searches and memory traffic rather than probe-generation arithmetic.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。