summaryrefslogtreecommitdiff
path: root/doc/source/tutorial/partitioner.rst
blob: d8547b86a6a09c4b2704c6e78a75fae149f28b20 (plain)
1
2
3
4
5
6
7
8
9
10
11
=============
 Partitioner
=============

Tooz provides a partitioner object based on its consistent hash ring
implementation. It can be used to map Python objects to one or several nodes.
The partitioner object automatically keeps track of nodes joining and leaving
the group, so the rebalancing is managed.

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