summaryrefslogtreecommitdiff
path: root/doc/source/user/tutorial/hashring.rst
diff options
context:
space:
mode:
Diffstat (limited to 'doc/source/user/tutorial/hashring.rst')
-rw-r--r--doc/source/user/tutorial/hashring.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/source/user/tutorial/hashring.rst b/doc/source/user/tutorial/hashring.rst
new file mode 100644
index 0000000..1e00d1f
--- /dev/null
+++ b/doc/source/user/tutorial/hashring.rst
@@ -0,0 +1,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