arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.09783cs.DCcs.DScs.NI
收藏

MementoHash:一种有状态、最小内存、性能最优的一致性哈希算法

MementoHash: A Stateful, Minimal Memory, Best Performing Consistent Hash Algorithm

Massimo Coluzzi, Amos Brocco, Alessandro Antonucci, Tiziano Leidi

AI总结:

本文提出 MementoHash 一致性哈希算法,无需预设集群容量且能处理随机故障,在常规场景下实现最优查找性能与最小内存占用,优于 AnchorHash 和 DxHash。

摘要:

一致性哈希在分布式系统和网络应用中被用于将数据均匀且高效地分布到节点集群上。在本文中,我们提出了 MementoHash,一种新颖的一致性哈希算法,它在保持最优性能和最小内存占用的同时,消除了现有最优算法的已知局限性。我们详细描述了该算法,给出了伪代码实现,并正式建立了其坚实的理论保证。为了衡量 MementoHash 的有效性,我们将其在内存占用和查找时间方面的性能与现有最优算法(即 AnchorHash、DxHash 和 JumpHash)进行了比较。与 JumpHash 不同,MementoHash 能够处理随机故障。此外,MementoHash 不需要像 AnchorHash 和 DxHash 那样预先固定集群的总容量,因此可以无限扩展。被移除节点的数量会影响所有被考虑算法的性能。因此,我们考虑了三种不同场景进行实验:稳定场景(无节点被移除)、一次性移除场景(90% 的节点被一次性移除)和增量移除场景。我们报告了在节点数量从十个到一百万个不等的条件下取平均值的实验结果。结果表明,我们的算法在其最佳场景下展现出最优的查找性能和最小的内存占用。在平均场景下,它的表现优于 AnchorHash 和 DxHash;在最坏场景下,它的表现至少与这两种算法相当。然而,MementoHash 的最坏场景发生在超过 70% 的节点失效时,这描述了一种不太可能发生的情况。因此,MementoHash 在集群的正常生命周期中展现出最佳性能。

英文摘要:

Consistent hashing is used in distributed systems and networking applications to spread data evenly and efficiently across a cluster of nodes. In this paper, we present MementoHash, a novel consistent hashing algorithm that eliminates known limitations of state-of-the-art algorithms while keeping optimal performance and minimal memory usage. We describe the algorithm in detail, provide a pseudo-code implementation, and formally establish its solid theoretical guarantees. To measure the efficacy of MementoHash, we compare its performance, in terms of memory usage and lookup time, to that of state-of-the-art algorithms, namely, AnchorHash, DxHash, and JumpHash. Unlike JumpHash, MementoHash can handle random failures. Moreover, MementoHash does not require fixing the overall capacity of the cluster (as AnchorHash and DxHash do), allowing it to scale indefinitely. The number of removed nodes affects the performance of all the considered algorithms. Therefore, we conduct experiments considering three different scenarios: stable (no removed nodes), one-shot removals (90% of the nodes removed at once), and incremental removals. We report experimental results that averaged a varying number of nodes from ten to one million. Results indicate that our algorithm shows optimal lookup performance and minimal memory usage in its best-case scenario. It behaves better than AnchorHash and DxHash in its average-case scenario and at least as well as those two algorithms in its worst-case scenario. However, the worst-case scenario for MementoHash occurs when more than 70% of the nodes fail, which describes a unlikely scenario. Therefore, MementoHash shows the best performance during the regular life cycle of a cluster.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑