summaryrefslogtreecommitdiff
path: root/doc/source/user/tutorial/hashring.rst
blob: 1e00d1f032470e298e85b9fb942a50ff86881647 (plain)
1
2
3
4
5
6
7
8
9
10
===========
 Hash ring
===========

Tooz provides a consistent hash ring implementation. It can be used to map
objects (represented via binary keys) to one or several nodes. When the node
list changes, the rebalancing of objects across the ring is kept minimal.

.. literalinclude:: ../../../../examples/hashring.py
   :language: python