本文介绍了Solr和Zookeeper配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在生产环境中,是否应该在所有可能的服务器(包括具有Zookeeper的服务器)上安装Solr?谈论外部Zookeeper

In Production environment, should Solr be setup on every server possible including the one having Zookeeper? Talking about External Zookeeper

服务器总数:5

情况1:在所有5台服务器上进行Solr.3个服务器上的Zookeeper.
情况2:Solr在2台服务器上.3个服务器上的Zookeeper.
情况3:Solr在5台服务器上.5个服务器上的Zookeeper.

Case 1:Solr on all 5 servers. Zookeeper on 3 servers.
Case 2:Solr on 2 servers. Zookeeper on 3 servers.
Case 3:Solr on 5 servers. Zookeeper on 5 servers.

最佳做法是什么?使用一个案例比另一个案例有什么优势?我已经读过,最好将Zookeeper放在单独的服务器中.

What is the best practice? What are the advantages of using one case over another? I have read that it's better to have Zookeeper in a separate server.

推荐答案

在同一个节点上同时运行Solr和ZooKeeper是很常见的.ZK确实不需要太多资源.

It is very common to run both Solr and ZooKeeper on the same node. ZK doesn't really require much in the way of resources.

如果ZK数据库和Solr安装位于单独的物理磁盘上,则ZK性能会更好.但是,除非云很大,否则甚至根本没有必要.拥有五台计算机,就不可能是巨大的云.Yuo并没有计划成百上千个收藏,是吗?

If the ZK database and the Solr installation are on separate physical disks, ZK performance would be better. But unless the cloud is enormous, even that shouldn't really be necessary. With five machines, it is unlikely to be an enormous cloud. Yuo're not planning on hundreds or thousands of collections, are you?

要实现真正的最佳运行,ZK将在单独的计算机上运行,​​但是我个人不会这样做,除非我拥有三台真正很小的服务器,而这些服务器并不需要其他东西.

For REALLY optimal operation, ZK would be running on separate machines, but I personally would not do it that way unless I had a trio of really small servers that weren't needed for something else.

具有高可用性的最小的SolrCloud安装将是三台机器,其中一台比其他机器小得多.这两个大型计算机将同时运行Solr和ZK(作为单独的进程),第三个大型计算机将仅运行ZK.如果第三台计算机与其他计算机相同,则也可以同时运行.

The smallest possible SolrCloud installation with high availability would be three machines, one of which is much smaller than the others. The two large machines would run both Solr and ZK (as separate processes), the third would run ZK only. If the third machine is the same as the others, it could run both as well.

与是否要单独运行ZK相比,我将更加关注满足搜索需求所需的Solr服务器总数.

I would be more concerned about the total number of Solr servers that I need to support my search requirements than about whether to run ZK separately.

这篇关于Solr和Zookeeper配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-11 08:12