SolrCloud

物理结构:
三个Solr实例( 每个实例包括两个Core),组成一个SolrCloud。
逻辑结构:
索引集合包括两个Shard(shard1和shard2),shard1和shard2分别由三个Core组成,其中一个Leader两个Replication,Leader是由zookeeper选举产生,zookeeper控制每个shard上三个Core的索引数据一致,解决高可用问题。用户发起索引请求分别从shard1和shard2上获取,解决高并发问题。
core:
每个Core是Solr中一个独立运行单位,提供 索引和搜索服务。一个shard需要由一个Core或多个Core组成。由于collection由多个shard组成所以collection一般由多个core组成。
Master&Slave:
Master是master-slave构中的主结点(通常说主服务器),Slave是master-slave结构中的从结点(通常说从服务器或备服务器)。同一个Shard下master和slave存储的数据是一致的,这是为了达到高可用目的
Logical Concepts
A Cluster can host multiple Collections of Solr Documents. 一个集群可持有多个solr文档集合
A collection can be partitioned into multiple Shards, which contain a subset of the Documents in the Collection. 一个集合可以分区为多个shards(切片), 一个shard包含文档集合的子集
The number of Shards that a Collection has determines: 集合中shard的个数取决于:
The theoretical limit to the number of Documents that Collection can reasonably contain. 集合可以合理包含的文档数量的理论限制。
The amount of parallelization that is possible for an individual search request. 单个搜索请求可能的并行度。
Physical Concepts
A Cluster is made up of one or more Solr Nodes, which are running instances of the Solr server process. 集群由一个或多个Solr节点组成,这些节点运行着Solr服务器进程的实例。
Each Node can host multiple Cores. 每个节点可以持有多个核
Each Core in a Cluster is a physical Replica for a logical Shard. 一个集群的每个核是一个shard的物理副本
Every Replica uses the same configuration specified for the Collection that it is a part of. 每个副本使用为其所属的集合指定的相同配置。
The number of Replicas that each Shard has determines: 每个shard的副本数取决于:
The level of redundancy built into the Collection and how fault tolerant the Cluster can be in the event that some Nodes become unavailable. 集合内建的冗余级别,以及在某些节点不可用时集群的容错能力。
The theoretical limit in the number concurrent search requests that can be processed under heavy load. 在高负载下可处理的并发搜索请求数量的理论限制。