You can use various methods, such as Logstash, reindex, Object Storage Service (OSS), and the online migration tool, to migrate data. Scenarios include migrating data between Alibaba Cloud Elasticsearch clusters, from a self-managed Elasticsearch cluster to an Alibaba Cloud Elasticsearch cluster, or from a third-party Elasticsearch cluster to an Alibaba Cloud Elasticsearch cluster. This topic describes the available migration solutions, their use cases, and their limitations to help you select the right solution for your needs.
In October 2020, Alibaba Cloud Elasticsearch updated its network architecture. Clusters created before October 2020 use the original network architecture, whereas clusters created in or after October 2020 use the new network architecture. Operations like reindex, cross-cluster search, and cross-cluster replication are not supported between clusters with different network architectures. To perform these operations, ensure that both clusters use the same network architecture. For clusters in the China (Zhangjiakou) region and regions outside the Chinese mainland, the timing of the network architecture adjustment is uncertain. To verify network connectivity in these regions, submit a ticket to Alibaba Cloud Elasticsearch technical support. Log on to the Alibaba Cloud Elasticsearch console and go to the Basic Information page of the cluster. In the Deployment Mode section, check the network architecture. Cloud Native Control (v3) indicates the new network architecture, and Basic Control (v2) indicates the original network architecture.
You should not migrate system indices that start with a
., such as .monitoring, .kibana, or .security. Otherwise, Kibana may malfunction.
Scenario: Migrate data between Alibaba Cloud Elasticsearch clusters
Migration solution | Use cases | Limitations | Examples |
OSS snapshot |
|
|
|
Logstash |
|
| |
reindex |
| Both Elasticsearch clusters must use the same network architecture. For more information, see Notes. | |
elasticsearch-dump tool | Small datasets with a small number of indexes. | Network connectivity is required among the source Elasticsearch cluster, the target Elasticsearch cluster, and the server where the elasticsearch-dump tool is installed. | |
OSS snapshot and reindex |
| The intermediate version must be compatible with both the source and destination versions. For more information, see Elastic Stack upgrade and migration guide. |
|
online migration tool | For a smooth, high-availability, zero-downtime upgrade from the V2 to V3 cluster architecture. Data is migrated automatically, and the cluster endpoint remains unchanged. |
Scenario: Migrate self-managed Elasticsearch to Alibaba Cloud
Migration solution | Use cases | Limitations | Examples |
online migration tool |
|
| Migrate data from a self-managed Elasticsearch cluster to Alibaba Cloud |
OSS snapshot |
|
| Advanced: Use OSS to migrate a self-managed ES cluster to Alibaba Cloud ES |
Logstash |
|
| |
reindex |
| Both Elasticsearch clusters must use the same network architecture. For more information, see Notes. | Use reindex to migrate data from a self-managed ES cluster to Alibaba Cloud |
elasticsearch-dump tool | Small datasets with a small number of indexes. | The source Elasticsearch cluster, the destination Elasticsearch cluster, and the server where the |
Scenario: Migrate third-party Elasticsearch to Alibaba Cloud
Migration solution | Use cases | Limitations | Examples |
OSS snapshot | Large-scale data migration (GB, TB, or PB). | Migrating incremental data by using OSS snapshots may require you to stop the service. Additionally, you must disable the index when you restore the incremental data on the new cluster. | Migrate indexes from Amazon OpenSearch Service to Alibaba Cloud ES Note This solution relies on the standard Elasticsearch snapshot mechanism and is not limited to a specific cloud provider. For example, you can use the Alibaba Cloud online migration tool to transfer Elasticsearch snapshot data from Tencent Cloud Object Storage (COS) to Alibaba Cloud OSS, and then restore the data from the OSS repository to your Alibaba Cloud Elasticsearch cluster. For instructions, see Back up and restore data manually. You can only restore a snapshot to a cluster of the same or a later version. For more information, see Snapshot and restore compatibility. |
elasticsearch-dump tool | Small datasets with a small number of indexes. | The source Elasticsearch cluster, the target Elasticsearch cluster, and the server where the elasticsearch-dump tool is installed must be able to communicate with each other over the network. |