Saturday, 15 March 2014

python - Using multiple Clients to access memcache with consistent key distribution with Ketama -



python - Using multiple Clients to access memcache with consistent key distribution with Ketama -

i having problem reading memcache server using different python client 1 used write values memcache.

i have process writes cache pylibmc, using 'ketama' behavior. have different service reads memcache, asynchronously, tornado ioloop. have customized tornado-memcache lookup server using python-ketama module wrapper general purpose c library, libketama.

relevant pylibmc client initialization code:

mc = pylibmc.client(nodes, behaviors={"no_block": true, "tcp_nodelay":true, "ketama": true, "hash": 'md5'})

does have experience doing similar (multiple clients)? seems either hash continuums used 2 clients different or keys beingness hashed/retrieved differently (both clients should using md5).

edit: have since written tests confirm continuum problem.

python memcached tornado libmemcache python-memcached

No comments:

Post a Comment