DxHash: A Scalable Consistent Hash Based on the Pseudo-Random Sequence

Chao Dong, Fang Wang, Dan Feng
7/16/2021
cs.DScs.NI

Official code: ChaosD/DxHash (6 stars, C++, last commit 2023-11-14).

Abstract

Consistent hashing (CH) has been pivotal as a data router and load balancer in diverse fields, including distributed databases, cloud infrastructure, and peer-to-peer networks. However, existing CH algorithms often fall short in simultaneously meeting various critical requirements, such as load balance, minimal disruption, statelessness, high lookup rate, small memory footprint, and low update overhead.

Show full abstract

To address these limitations, we introduce DxHash, a scalable consistent hashing algorithm based on pseudo-random sequences. To adjust workloads on heterogeneous nodes and enhance flexibility, we propose weighted DxHash. Through comprehensive evaluations, DxHash demonstrates substantial improvements across all six requirements compared to state-of-the-art alternatives. Notably, even when confronted with a 50% failure ratio in a cluster of one million nodes, DxHash maintains remarkable processing capabilities, handling up to 13.3 million queries per second.

View on arXivView PDF

Code Implementations(1)

ChaosD/DxHashOfficial100%

The c++ implement of DxHash with some tests

60C++, MakefileAug 13, 20213 years ago

Similar Papers

Cite this paper

@article{dong2021dxhash,
  title  = {DxHash: A Scalable Consistent Hash Based on the Pseudo-Random Sequence},
  author = {Chao Dong and Fang Wang and Dan Feng},
  year   = {2021},
  eprint = {2107.07930},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.07930}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2107.07930.svg)](https://codeofpaper.com/paper/2107.07930)

Discussion