consistent-hash
consistent-hash copied to clipboard
Consistent hashing algorithm with python
The packaging metadata says BSD ``` setup( name='consistent_hash', version='0.3', author="Yummy Bian", author_email="[email protected]", url="https://github.com/yummybian", packages=['consistent_hash'], platforms=["Any"], license="BSD", keywords='consistent hash hashing', description="Implements consistent hashing with Python.", ) ``` Yet the implementation file...
My question is why the fator value calculated by 'interleave_count = 40'
Pypi version is not Python 3 compatible while this repo is. Someone released https://pypi.python.org/pypi/consistent-hash-git but would feel more confortable using an uploaded version by the author/maintainer.
I have successfully installed the [1.0 package](https://pypi.python.org/pypi/consistent_hash/1.0) using `pip install`, but it is not reported by freeze: ``` $ python -c "import consistent_hash" $ pip freeze |grep consistent_hash $ ```...
## Allows specification of weight by range rather than by integer value. Useful when you need to scale up on a production server without interruption/cache busting. Example: #### Scaling 1....
在使用这个代码时,发现 >>> len(._consistent_hash.keys) 13920 >>> len(._consistent_hash.key_node) 13919 在get_node时,出现KeyError错误 def get_node(self, string_key): """Given a string key a corresponding node in the hash ring is returned. If the hash ring is empty,...