首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用Finagle的Memcached集群

使用Finagle的Memcached集群
EN

Stack Overflow用户
提问于 2012-09-26 01:29:41
回答 1查看 860关注 0票数 0

如何构建memcached服务器集群并使用finagle访问它。ct看起来像是ServerSet和ZooKeeper可以用来构建集群。但我有几个问题。

1将密钥分发到集群中的memcached服务器的算法是什么?2 finagle如何检测memcached服务器故障,以及故障转移是如何完成的。看起来一切都是从客户端完成的。在服务器端不需要做任何事情。

谢谢

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-09-27 08:08:28

  1. 用于分发密钥的默认算法是Ketama算法。对于检测不同类型故障的不同算法,您不能更改算法:

代码语言:javascript
复制
- failFast: if there's a disconnection, we evict the server from the pool and start a background process to reconnect to it
- retries: if the failed to do an action, we can retry a specific number of try (potentially using exponential backoff)
- timeout (different levels), no need to explain
- balancing: based on the least number of pending requests per hosts

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/12588111

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档