Has anyone tried to use ZooKeeper?

I'm currently viewing memcached as a way to coordinate a group of servers, but on the way through Apache ZooKeeper . It looks interesting, and Yahoo uses it, so it should not be bad, but I have never heard of this before, so I am a little skeptical. Has anyone else tried? Any comments or ideas?

+6
caching memcached apache-zookeeper
source share
3 answers

ZooKeeper and Memcached have different goals. You can use memcached to coordinate the servers, but you will have to do most of this work yourself. Memcached only allows coordination in that it caches a common data search that will be used by multiple clients. Reading ZooKeeper documentation has a lot more attention. ZooKeeper seems to provide server clustering support, which is not the same as caching memcached clusters.

Check out the Linux Brad Fitzpatrick magazine article on memcached for a better understanding of what I mean.

+10
source share

For an overview of what Zookeper is capable of, check out the following presentation from the creators. It is capable of much more (creating a queue, selecting the main processes among a group of peer nodes, distributed configurations with high performance, rendezvous points for unrelated processes, determining whether processes continue, etc.).

http://zookeeper.sourceforge.net/index.sf.shtml

To answer your question, if β€œcoordination” is what you are looking for, Zookeeper is much better targeted than memcached.

+5
source share

Zookeeper is great for coordinating server data. He does a good job of ordering each transaction and ensures that transactions occur in order. However, the first time you enter it, the documentation sucks; this is a very "high level" without sufficient concrete examples or explanations of how to handle certain events correctly. One of the included examples (starting with version 3.3.3) had its own errors.

Your code should also be aware of event interactions and interactions. With a massively distributed architecture, acting on "events" you can inadvertently create a panic that may not be desirable for your environment (disastrous effect).

+1
source share

All Articles