Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何构建 memcached 服务器集群并使用 finagle 访问它。ct 貌似ServerSet和ZooKeeper可以用来搭建集群。但我有几个问题。
1 将密钥分发到集群中的 memcached 服务器的算法是什么。我可以改变它吗?2 finagle如何检测memcached服务器故障以及故障转移是如何完成的。看起来一切都是从客户端完成的。在服务器端不需要做任何事情。
谢谢
用于分发密钥的默认算法是 Ketama 算法。查看代码 您不能轻易更改算法。
有不同的算法可以检测不同类型的故障: