何时使用集合与分片?

When to use collection vs shard?

我对分片和集合有点困惑。我们可以为新分片创建一个新的 table 索引,并且可以像集合一样完成。

When to make a new shard and When make a new collection.

集合是SolrCloud集群中一个完整的逻辑索引。例如,您可能拥有三个不同的集合,分别称为用户、书籍和人物。

在逻辑层面上,整个索引称为集合。这可能分布在集群中的许多节点上。

碎片是整个集合的一部分。即一个集合由一个或多个碎片组成。

When to use collection ?

Generally, users will create multiple Collections to separate logical units of data that will not be intermingled, similar to a database in the relational world. Collections are generally isolated from one another and do not typically communicate with each other. Also each Collections will each have their own unique schema.xml to define the types for their index.

When to use a shard?

If you feel your index is too big to be stored on one node . it can be divided into different shards and can be stored on different nodes on a cluster.

在此处阅读更多相关信息:https://thinkbiganalytics.com/solrcloud-terminology/