开发者

with memcache, can you add/remote nodes on the fly?

开发者 https://www.devze.com 2023-01-05 16:15 出处:网络
with memcache, can you add/remote nodes 开发者_JAVA技巧on the fly? if a node goes down, does it redistribute automatically?Memcached daemons themselves do not have any knowledge of one another. Node

with memcache, can you add/remote nodes 开发者_JAVA技巧on the fly?

if a node goes down, does it redistribute automatically?


Memcached daemons themselves do not have any knowledge of one another. Node management is handled completely at the client level. Most client implementations rely on consistent hashing of keys to determine which server in a ring the values reside on. Many of the client libraries will failover to other nodes in the ring when a node becomes unavailable.

I am not aware of any memcached clients that attempt to provide clustering or high availability.


No, But you can try Hazelcast. Also it doesn't state yet with version 1.8.5 it does support memcache protocol. The next release will have all documentation about it.

So you can replace your Memcached servers with Hazelcast. And Hazelcast does support adding and removing nodes on the fly.

0

精彩评论

暂无评论...
验证码 换一张
取 消