Roles of zookeeper in solr cloud

大兔子大兔子 提交于 2019-12-07 03:11:19

问题


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?


回答1:


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.

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.

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

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



来源:https://stackoverflow.com/questions/19043881/roles-of-zookeeper-in-solr-cloud

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!