我们已经开始研究从主/从到 SolrCloud 的当前搜索。我有几个与动态扩展节点相关的问题。请帮忙。

  • 将现有分片迁移到新节点的最佳方法是什么?它只是在新节点上手动创建一个核心,如下所示还是有另一种方法?
    localhost:8888/solr/admin/cores?action=CREATE&name=testcollection_shard1_replica1&collection=testcollection&shard=shard1&collection.configName=collection1
  • How to create new replica dynamically? is just creating a new core as below or there is another way?

    localhost:8888/solr/admin/cores?action=CREATE&name=testcollection_shard1_replica2&collection=testcollection&shard=shard1&collection.configName=collection1
  • How to add a brand new shard to collection dynamically? is it just creating a new core with new shard name on a new node as below? will on newly created shard documents be distributed automatically? or this is not the right way and we should use shard splitting?

    localhost:8888/solr/admin/cores?action=CREATE&name=testcollection_shard2_replica1&collection=testcollection&shard=shard2&collection.configName=collection1

  • 非常感谢您的帮助!!

    -乌梅什

    最佳答案

  • 要将现有分片移动到新节点,只需在新节点上添加新副本并等待复制完成。之后,您可以使用 UNLOAD command 关闭旧节点或将其从集群中删除。
  • 要动态创建新副本,您提到的收集命令是唯一的方法。
  • 要创建新的分片,您唯一能做的就是拆分现有的分片。请注意,您的收藏不平衡。拆分后的分片会将哈希范围分开,但所有其他未拆分的分片仍具有与以前相同的哈希范围。
  • 关于Solr:将现有或新拆分的分片迁移到新节点,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/18894470/

    10-16 18:11