9ad740fa1e
Add a new object called `Partitioner' which is based on the consistent hashring implementation of tooz.hashring. The coordinator API allows to create such an object and to use it to dispatch objects ownership across several workers. Change-Id: Iae8c861d5b6c15b714f1ec3bd7090d15dd468421
384 B
384 B
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.
../../../examples/partitioner.py