Alibaba Cloud Elasticsearch supports multiple data migration methods, including Logstash, reindex, Object Storage Service (OSS), and Data Online Migration. You can migrate data between Alibaba Cloud Elasticsearch instances, migrate data from a self-managed Elasticsearch cluster, or migrate data from a third-party Elasticsearch service. This topic compares each method's applicable scenarios and limitations to help you select the best option.
-
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. -
Data Transmission Service (DTS) does not support data synchronization between two Elasticsearch instances.
-
The migration duration depends on the volume of data to be migrated, the number of indexes, and the load on the source and target clusters. An exact duration cannot be estimated in advance. For the same volume of data, OSS snapshots are typically faster than the other migration methods. Before you perform the actual migration, run a trial migration with a small number of indexes to estimate the overall migration window.
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 |
Zero-downtime upgrades from Alibaba Cloud Elasticsearch V2 to V3, with data migration and endpoint preservation. |
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 |
|
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. |