本文介绍了如何计算集群所需的Zookeeper服务器数量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一个公式来计算我需要的Zookeeper服务器的数量?假设一个群集可能正在运行50、500或5000个服务器,如何将这些数字转换为要启动的Zookeeper服务器数量?

Is there a formula to calculate the number of zookeeper servers I need? Say a cluster may have 50, 500, or 5000 servers running, how do I convert those numbers into how many zookeeper server I want to start?

换句话说,对于zk服务器可以处理的工作量有什么好的估计?是基于存储的大小,仲裁获得的QPS还是其他指标?

To put it another way, what's a good estimate for the workload a zk server can handle? Is it based on the size of the storage, or QPS the quorum receives, or some other metrics?

推荐答案

ZooKeeper服务器集合(集群)可以处理的工作量主要取决于应用程序执行的写入次数.这不取决于ZooKeeper集成客户端的数量.

The workload an ensemble (cluster) of ZooKeeper servers can handle, is primarily dependent on the number of writes your application performs. It's not dependent on the number of clients to the ZooKeeper ensemble.

集合中的ZooKeeper服务器数量将对写入性能产生影响,而较少的数量(最佳值为3)则更快.但是,您希望拥有3台以上的ZooKeeper服务器,以便能够 roll 您的ZooKeeper服务器而不会造成停机.例如,您可以重新启动一台服务器,并且在5个ZooKeeper集成中仍然可以避免崩溃.

The number of ZooKeeper servers in the ensemble will have an effect on the write performance where having fewer (optimal is 3) is faster. However, you would like to have more than 3 ZooKeeper servers in order to be able to roll your ZooKeeper servers without downtime. As an example you can restart one server and still survive a crash with a 5 ZooKeeper ensemble.

另请参阅吞吐量示例: https://wiki.apache.org/hadoop/ZooKeeper/性能

See also throughput example here: https://wiki.apache.org/hadoop/ZooKeeper/Performance

这能回答您的问题吗?

这篇关于如何计算集群所需的Zookeeper服务器数量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-23 18:35