SolrCloud:基于Solr和Zookeeper的分布式搜索

时间:2022-11-04 08:48:13
SolrCloud是基于Solr和Zookeeper的分布式搜索方案,已经进入Solr的代码库,成为下个Release(估计是4.0)的分布式部署方案。
Cloud使用Zookeeper作为配置中心,存储关于分布式的节点信息。
各个节点之间依然使用HTTP连接来获取查询结果。
前提:索引已经创建完毕,并且分成片,即Shard。
 
以下是官方对 SolrCloud的介绍:

SolrCloud is the set of Solr features that take Solr's distributed search to the next level, enabling and simplifying the creation and use of Solr clusters.

  • Central configuration for the entire cluster
  • Automatic load balancing and fail-over for queries
  • Cluster state and layout stored in central system.

Zookeeper is integrated and used to coordinate and store the configuration of the cluster.

That is what has been done so far on trunk.

A second initiative has recently begun to finish the distributed indexing side of SolrCloud.