FlipHash:一种常数时间的一致性范围哈希算法
FlipHash: A Constant-Time Consistent Range-Hashing Algorithm
AI总结:
本文提出FlipHash,一种常数时间、低内存的一致性范围哈希算法,在资源顺序索引场景下保证均匀分布和最小重映射,并在理论与实验中优于对数复杂度的Jump Consistent Hash。
摘要:
一致性范围哈希是分布式系统中使用的一种技术,可直接使用或作为一致性哈希的子程序,通常用于在可变数量的资源上实现均匀且稳定的数据分布。我们提出了FlipHash,一种具有常数时间复杂度和低内存需求的一致性范围哈希算法。与Jump Consistent Hash类似,FlipHash适用于资源可以顺序索引的应用场景。在此条件下,它确保键在资源间均匀哈希,并且改变资源数量只会导致键从被移除的资源重新映射或映射到新增的资源,而绝不会在保留的资源之间发生混洗。FlipHash的差异化优势在于其低计算成本,实现了常数时间复杂度。我们证明FlipHash在理论上以及在实践设置的实验中均优于Jump Consistent Hash的成本,后者的时间复杂度与资源数量成对数关系。
英文摘要:
Consistent range-hashing is a technique used in distributed systems, either directly or as a subroutine for consistent hashing, commonly to realize an even and stable data distribution over a variable number of resources. We introduce FlipHash, a consistent range-hashing algorithm with constant time complexity and low memory requirements. Like Jump Consistent Hash, FlipHash is intended for applications where resources can be indexed sequentially. Under this condition, it ensures that keys are hashed evenly across resources and that changing the number of resources only causes keys to be remapped from a removed resource or to an added one, but never shuffled across persisted ones. FlipHash differentiates itself with its low computational cost, achieving constant-time complexity. We show that FlipHash beats Jump Consistent Hash's cost, which is logarithmic in the number of resources, both theoretically and in experiments over practical settings.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。