File: hashring.rst

package info (click to toggle)
python-tooz 7.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 932 kB
  • sloc: python: 5,586; sh: 158; makefile: 27
file content (10 lines) | stat: -rw-r--r-- 337 bytes parent folder | download | duplicates (5)
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