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

问题描述

我是SolrCloud(4.X)的新手,有人可以详细说明ZoorCloud中动物园管理员的角色和职责吗?Zookeper在向Solr进行搜索/添加请求方面又是如何工作的?

I am new to SolrCloud(4.X), Can anybody explain in detail about roles and responsibility of zookeeper in SolrCloud?Also how does zookeper work in regards to search/add request to Solr?

推荐答案

Zookeepers是用于SolrCloud配置的中央存储库.您可以将其视为分布式文件系统,集群中的所有Solr节点都可以访问它.因此,如果您更改任何配置文件,则只需要通知或将其上传到Zookeeper,而不是在集群中的每个节点上.

Zookeepers are a central repository for SolrCloud configuration. You can consider it as a distributed filesystem which can be accessed by all Solr nodes in the cluster. So if you change any config file you just need to inform or upload it to Zookeeper and not on every node in the cluster.

Zookeeper的另一重要职责是密切关注集群中所有Solr节点的状态.如果任何节点出现故障,并且对该节点有搜索请求,Zookeeper会将其路由到备用副本节点.

One more important responsibility of Zookeeper is to keep an eye on the state of all Solr nodes in the cluster. If any node goes down and a search request comes in for that node, Zookeeper routes it to an alternative replica node.

在SolrCloud中更新任何文档时,动物园管理员将您的更新请求委托给保存文档的云中适当的节点

When you are updating any document in SolrCloud, it is zookeeper who delegates your update request to the appropriate node in the cloud holding the document

有关详细信息,您应该阅读以下内容, https://cwiki.apache.org/confluence/display/ZOOKEEPER/ProjectDescription

For in depth details you should be reading this,https://cwiki.apache.org/confluence/display/ZOOKEEPER/ProjectDescription

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

09-11 08:12