python-memcache是​​否使用一致的哈希? [英] Does python-memcache use consistent hashing?

查看:80
本文介绍了python-memcache是​​否使用一致的哈希?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用python-memcache库,我想知道是否有人知道从1.44开始该客户端是否使用了一致的哈希.

I'm using the python-memcache library, and I'm wondering if anyone knows if consistent hashing is used by that client as of 1.44.

推荐答案

快速查看源代码:不,不是.如果遇到脱机/完整服务器,它将使用server = hash_key % len(servers)和循环轮询.

From a quick view into the source code: No it does not. It uses server = hash_key % len(servers) and round-robin if offline/full servers are encountered.

这篇关于python-memcache是​​否使用一致的哈希?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆