ZooKeeper 集成集群中的最大服务器数? [英] Maximum servers in a ZooKeeper ensemble cluster?

查看:66
本文介绍了ZooKeeper 集成集群中的最大服务器数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

用例:池中有 100 台服务器;我想在每个服务器上启动一个 ZooKeeper 服务,服务器应用程序(ZooKeeper 客户端)将使用 ZooKeeper 集群(读/写).那么就没有单点故障.

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

此解决方案是否适用于此用例?性能怎么样?

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

如果池中有 1000 台服务器怎么办?

What if there are 1000 Servers in the pool?

推荐答案

如果您只是想避免单点故障,那么您只需要 3 个服务器.在 3 节点集合中,可以容忍单个故障,其余 2 个节点构成法定人数.您拥有的服务器越多,写入性能就越差.如果 ZK 甚至可以处理它,那么 100 个服务器就是这个极限了.

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

但是,拥有那么多客户完全没有问题.Zookeeper 有超过 1000 个客户端的活跃部署.如果您发现需要更多服务器来处理读取负载,您可以随时添加 Observers.我强烈建议您加入列表服务.这是快速回答您的问题的绝佳方式,而且可能比任何人在 SO 上提供的详细信息都要多.

However, having that many clients is no problem at all. Zookeeper has active deployments with many more than 1000 clients. If you find that you need more servers to handle your read load, you can always add Observers. I highly recommend you join the list serve. It is an excellent way to quickly have your questions answered, and likely in much more detail than anyone will give you on SO.

这篇关于ZooKeeper 集成集群中的最大服务器数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆