Documentation ¶
Overview ¶
Package main provides simple consistenthash commandline utility.
Demo:
$ seq -f node-%.f 1 100 > /tmp/nodes $ consistenthash < /tmp/nodes apple node-42 $ consistenthash < /tmp/nodes banana node-48 $ consistenthash < /tmp/nodes chocolate node-2
Modify /tmp/nodes and confirm that the result rarely changes.
Click to show internal directories.
Click to hide internal directories.