[英]How to migrate only 1 index from ElasticSearch cluster to OpenSearch cluster?
I have a ElasticSearch cluster which has many indexes, and each index serves an independent purpose and is heavy size.我有一个 ElasticSearch 集群,它有很多索引,每个索引都有独立的用途,而且很大。
I have a OpenSearch Cluster and want to migrate only 1 index from the ES cluster to the OS cluster.我有一个 OpenSearch 集群,只想将 1 个索引从 ES 集群迁移到操作系统集群。
All the migration strategies from ES to OS i found on the inte.net migrates all the indexes.我在 inte.net 上找到的从 ES 到 OS 的所有迁移策略都会迁移所有索引。 Migrating all the indexes will be a time consuming and redundant.
迁移所有索引将是一项耗时且多余的工作。
Is there a better way to migrate only 1 required index?有没有更好的方法只迁移 1 个必需的索引?
You could set up manual snapshots to s3 and restore the specific index as below您可以设置手动快照到 s3 并恢复特定索引,如下所示
curl -XPOST 'domain-endpoint/_snapshot/my-snapshot-repo/2020-snapshot/_restore' -d '{"indices": "my-index"}' -H 'Content-Type: application/json'
Note: You need to register OS with same snapshot repo of ES for _restore to work and there will be little data loss between time of snapshot and restore commands run注意:您需要使用与 ES 相同的快照存储库注册 OS 才能使 _restore 工作,并且在快照时间和运行恢复命令之间几乎不会丢失数据
Ref: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-snapshots.html#managedomains-snapshot-restore参考: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-snapshots.html#managedomains-snapshot-restore
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.