Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 314 Bytes

README.md

File metadata and controls

19 lines (11 loc) · 314 Bytes

hash

Caculate data migration ratio for hash and consistent hash.

Installation

go get stathat.com/c/consistent

go get github.com/hanj4096/hash

Usage

go run ./hash.go -keys 10000000 -nodes 10 -new-nodes 11

go run ./consistent-hash.go -keys 10000000 -nodes 10 -new-nodes 11