hash_ring

Implements consistent hashing in Python (using md5 as hashing function)
Download

hash_ring Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • Amir Salihefendic
  • Publisher web site:
  • http://www.amix.dk/

hash_ring Tags


hash_ring Description

Implements consistent hashing in Python (using md5 as hashing function) hash_ring implements consistent hashing that can be used when the number of server nodes can increase or decrease (like in memcached).Consistent hashing is a scheme that provides a hash table functionality in a way that the adding or removing of one slot does not significantly change the mapping of keys to slots.Example:Basic example of usage (for managing memcached instances):memcache_servers = ring = HashRing(memcache_servers)server = ring.get_node('my_key')The code should be clean and simple. Feel free to concat the author if you detect bugs. Requirements: · Python


hash_ring Related Software