You can use various methods, such as Logstash, reindex, Object Storage Service (OSS), and Data Online Migration, to migrate data between Alibaba Cloud Elasticsearch instances, migrate Elasticsearch data to Openstore storage, migrate data from a self-managed Elasticsearch cluster to Alibaba Cloud Elasticsearch, or migrate data from a third-party Elasticsearch service to Alibaba Cloud Elasticsearch. This topic compares data migration methods, their applicable scenarios, and their limitations to help you select the right one for your business.
-
In October 2020, Alibaba Cloud Elasticsearch upgraded its network architecture. Instances created before this date use the legacy network architecture, while instances created in or after October 2020 use the new network architecture. Cross-cluster operations, such as remote reindex, cross-cluster search, and cross-cluster replication, are not supported between instances on the new and legacy network architectures. To perform these operations, ensure that both instances use the same network architecture. For instances in the China (Zhangjiakou) and overseas regions, the exact time of the network architecture upgrade varies. To verify network connectivity for cross-cluster operations, submit a ticket to contact Alibaba Cloud Elasticsearch technical support. To check the network architecture of an instance, log on to the Alibaba Cloud Elasticsearch console and find the Basic Information section on the Control Architecture Type page. Cloud-native Control Architecture (v3) indicates the new network architecture, and Basic Control Architecture (v2) indicates the legacy network architecture.
-
Do not migrate system indexes. These indexes are prefixed with a period (
.), such as .monitoring, .kibana, or .security. Migrating these indexes may cause Kibana to fail.
Migration between Alibaba Cloud Elasticsearch instances
|
Migration method |
Applicable scenarios |
Limitations |
Example |
|
OSS snapshot |
|
|
|
|
Logstash |
|
|
|
|
reindex |
|
The two Elasticsearch clusters must use the same network architecture. For more information, see the notes at the beginning of this topic. |
|
|
elasticsearch-dump tool |
Migrating small datasets with a limited number of indexes. |
The source cluster, target cluster, and the server where the elasticsearch-dump tool is installed must have network connectivity. |
|
|
OSS snapshot and reindex |
|
The intermediate version must be compatible with both the source and target versions. For more information, see Elastic version changes and compatibility. |
|
|
Data Online Migration |
For smooth, highly available, and zero-downtime upgrades from an Alibaba Cloud Elasticsearch V2 instance to V3. This method migrates data while preserving the instance endpoint after the upgrade. |
Migration to Openstore storage
|
Migration method |
Applicable scenarios |
Limitations |
Example |
|
OSS snapshot |
Migrating data from a self-managed or Alibaba Cloud Elasticsearch cluster to Openstore hot/cold tiered storage. |
|
Migrate Elasticsearch data to Openstore hot/cold tiered storage |
|
Manual backup |
Migrating data from a self-managed or Alibaba Cloud Elasticsearch cluster to Openstore intelligent hybrid storage. |
The region of the OSS bucket must be the same as the region of the Elasticsearch instance. |
Migrate Elasticsearch data to Openstore intelligent hybrid storage |
Migration from self-managed to Alibaba Cloud Elasticsearch
|
Migration method |
Applicable scenarios |
Limitations |
Example |
|
Data Online Migration |
|
|
Migrate data from a self-managed Elasticsearch cluster to Alibaba Cloud Elasticsearch |
|
OSS snapshot |
|
|
|
|
Logstash |
|
|
|
|
reindex |
|
The two Elasticsearch clusters must use the same network architecture. For more information, see the notes at the beginning of this topic. |
|
|
elasticsearch-dump tool |
Migrating small datasets with a limited number of indexes. |
The source cluster, the target cluster, and the server where the elasticsearch-dump tool is installed must have network connectivity. |
Migration from third-party to Alibaba Cloud Elasticsearch
|
Migration method |
Applicable scenarios |
Limitations |
Example |
|
Logstash |
|
|
Migrate data from Tencent Cloud ES to Alibaba Cloud Elasticsearch |
|
OSS snapshot |
Migrating large datasets (GB, TB, or PB scale). |
Migrating incremental data by using an OSS snapshot may require service downtime. When restoring incremental data on the new cluster, you must close the index. |
Migrate Elasticsearch index data from Amazon OpenSearch Service to Alibaba Cloud Elasticsearch Note
This method is not limited to specific cloud vendors and relies on the Elasticsearch snapshot mechanism. For example, you can use Alibaba Cloud Data Online Migration (Migrate data) to migrate Elasticsearch snapshot data from Tencent Cloud COS to Alibaba Cloud OSS, and then restore the data from the OSS repository. For more information, see Create manual snapshots and restore data from manual snapshots. Elasticsearch snapshot migration supports restoring data only to the same or a later version. For more information, see Version compatibility of data restoration from snapshots. |
|
elasticsearch-dump tool |
Migrating small datasets with a limited number of indexes. |
The source cluster, the target cluster, and the server where the elasticsearch-dump tool is installed must have network connectivity. |