Maximum servers in a ZooKeeper ensemble cluster?

Use case: 100 servers in the pool; I want to start the ZooKeeper service on each server and the servers (ZooKeeper client) will use a ZooKeeper cluster (read / write). Then there is no single point of failure.

Is this possible for this use case? What about performance?

What if there are 1000 servers in the pool?

+4
source share
2 answers

If you are just trying to avoid a single point of failure, you only need 3 servers. In a 3 node ensemble, one failure can be tolerated with the remaining 2 nodes forming a quorum. The more servers, the worse the write performance. And 100 servers is the extreme of this, if ZK can even handle it.

However, having a large number of customers is not a problem. Zookeeper has active deployments with many more than 1000 customers. If you find that you need more servers to handle the load, you can always add Observers . I highly recommend you join the list . This is a great way to quickly answer your questions and probably in much more detail than anyone else will give you on SO.

+3
source

Maybe zookeeper is the wrong tool?

Hazelcast does what you want, I think. You can hundreds of peers, and if the owner is lost, a new one is selected from all peers.

You do not need to use all the nuts. You can just use maps or just work pools or just synchronization primitives or just messaging, etc.

+2
source

All Articles