我有一个索引中大约有1亿个文档,我想使用reindex API将其迁移到新的集群。我想以节流的方式进行迁移。
我尝试使用request_per_seconds到 100000,但完成整个过程需要几个小时。Q.1我可以使用request_per_seconds到 1000000 来减少处理时间吗?Q.2有没有更好的方法可以用来以节流方式更好地重新建立索引?
我有一个索引中大约有1亿个文档,我想使用reindex API将其迁移到新的集群。我想以节流的方式进行迁移。
我尝试使用request_per_seconds到 100000,但完成整个过程需要几个小时。Q.1我可以使用request_per_seconds到 1000000 来减少处理时间吗?Q.2有没有更好的方法可以用来以节流方式更好地重新建立索引?
1条答案
按热度按时间t5zmwmid1#
重建索引支持切片滚动以并行化重建索引过程。这种并行化可以提高效率,并提供一种将请求分解为较小部分的方便方法。
https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html#docs-reindex-automatic-slice
您还可以阅读有关优化速度的建议,例如:
链接:
https://www.elastic.co/guide/en/elasticsearch/reference/current/tune-for-indexing-speed.html