All Products
Search
Document Center

Elasticsearch:Migrate self-managed Elasticsearch data to Alibaba Cloud using the online migration tool

Last Updated:Feb 26, 2026

To improve migration speed and smoothness, Alibaba Cloud Elasticsearch provides an online migration tool based on node fusion. This tool efficiently and seamlessly migrates data from your self-managed Elasticsearch cluster—deployed on ECS in an IDC—to a fully managed Alibaba Cloud Elasticsearch cluster. This topic describes how to migrate data using the online migration tool.

Background information

The node fusion migration solution merges your self-managed Elasticsearch cluster with your Alibaba Cloud Elasticsearch cluster into one large cluster. After merging, it performs a grayscale migration of your self-managed Elasticsearch data in the following order: replica shard migration, master node migration, and primary shard migration. After data migration completes, switch your business data requests—such as queries and writes—from your self-managed Elasticsearch domain name to the Alibaba Cloud Elasticsearch domain name. Use Alibaba Cloud Elasticsearch for all subsequent services. At the same time, isolate your self-managed Elasticsearch using network controls and stop it from serving traffic. After you verify that your business data is accurate, unpublish your self-managed Elasticsearch. For details, see the steps below.

Important

During migration, you can roll back replica shard migration. You cannot roll back master node or primary shard migration. Proceed with caution.

Limits

  • Region limits: Cross-region migration is not supported. Your self-managed Elasticsearch ECS instance must be in the same region as your Alibaba Cloud Elasticsearch cluster.

  • Network limits: Cross-VPC migration is not supported. Your self-managed Elasticsearch ECS instance must be in the same VPC as your Alibaba Cloud Elasticsearch cluster.

  • Version limits: You can migrate self-managed Elasticsearch data only to these Alibaba Cloud Elasticsearch versions: 6.7, 6.8, 7.10, 7.17, 8.13, 8.15, and 8.17.

    • If your self-managed Elasticsearch version matches one of the supported Alibaba Cloud Elasticsearch versions, migrate to the same version. For example, migrate self-managed Elasticsearch 6.7 to Alibaba Cloud Elasticsearch 6.7.

    • If your self-managed Elasticsearch version does not match any supported Alibaba Cloud Elasticsearch version, choose the lowest supported Alibaba Cloud Elasticsearch version that is higher than your self-managed version. For example, migrate self-managed Elasticsearch 8.5 to Alibaba Cloud Elasticsearch 8.13.

      Note

      Cross-major-version migration is not supported—for example, from 7.x to 8.x.

  • Other limits:

    • You can migrate data only to Alibaba Cloud Elasticsearch instances deployed in Cloud-native new control plane (v3) mode.

    • Your self-managed Elasticsearch cluster indexes must have replicas. We recommend taking a local snapshot of the cluster.

Prerequisites

Self-managed Elasticsearch side

  • You have deployed a self-managed Elasticsearch cluster on ECS. This cluster serves as the source cluster for migration.

    Note

    The ECS security group must allow the specified CIDR block to access the ECS instance through ports 9200 and 9300.

    • Port 9200: The HTTP API port for Elasticsearch. Clients—including browsers, applications, and Kibana—use this port to interact with the Elasticsearch cluster.

    • Port 9300: The TCP communication port for Elasticsearch. Nodes within the cluster use this port to communicate with each other.

  • Your self-managed Elasticsearch cluster indexes have replicas.

  • You have prepared a decrypted P12 file. A P12 file stores public and private keys and includes a digital certificate. You will use this file later to ensure normal communication between nodes during migration.

  • (Optional) If your self-managed Elasticsearch has no authentication enabled, enable X-Pack Security by setting xpack.security.enabled: true to secure data during migration.

Alibaba Cloud Elasticsearch side

You have created an Alibaba Cloud Elasticsearch cluster. This cluster serves as the destination cluster to receive migrated data from your self-managed Elasticsearch. To ensure smooth migration, confirm that your Alibaba Cloud Elasticsearch cluster:

  • Is deployed in Cloud-native new control plane (v3) mode.

  • Is in the same region and VPC as your self-managed Elasticsearch ECS instance.

  • Uses a version that matches your self-managed Elasticsearch version.

    Note

    Contact Alibaba Cloud Elasticsearch technical support to perform cross-version migration.

  • Has instance specifications and node counts that are at least equal to those of your self-managed Elasticsearch cluster.

  • Uses the same username and password as your self-managed Elasticsearch cluster.

  • If your self-managed Elasticsearch uses custom plugins—for example, the elasticsearch-knn plugin for similarity search—install the same plugins on your Alibaba Cloud Elasticsearch cluster. For plugin-related operations, see Plugin configuration.

  • Has cloud-based cluster features—such as cluster configuration and dictionaries—that meet your business expectations and are reachable over the network.

Procedure

Step 1: Create a migration task

  1. Access the online migration tool.

    1. Log on to the Alibaba Cloud Elasticsearch console.

    2. In the navigation pane on the left, click Elastic Stack cloud-native PaaS version > Elasticsearch online migration tool to open the online migration tool.

  2. Click Create to create a migration task and configure parameters.

    image

    Parameter

    Description

    Type

    Select Self-managed Elasticsearch migration to migrate data from your self-managed Elasticsearch cluster to Alibaba Cloud Elasticsearch.

    Destination cluster

    The Alibaba Cloud Elasticsearch instance that receives data from your self-managed Elasticsearch cluster. Select an instance in the same region as your self-managed Elasticsearch ECS instance. After selection, enter the virtual switch ID as prompted.

    Note

    Self-managed ES VPC

    The VPC ID of your self-managed Elasticsearch cluster.

    Self-managed ES ECS IP

    The IP address of any ECS instance hosting a node in your self-managed Elasticsearch cluster.

    Note

    The ECS security group must allow the specified CIDR block to access the ECS instance through ports 9200 and 9300.

    • Port 9200: The HTTP API port for Elasticsearch. Clients—including browsers, applications, and Kibana—use this port to interact with the Elasticsearch cluster.

    • Port 9300: The TCP communication port for Elasticsearch. Nodes within the cluster use this port to communicate with each other.

    Self-managed ES P12 file

    Upload the decrypted P12 file as prompted. A P12 file stores public and private keys and includes a digital certificate. You will use this file later to ensure normal communication between nodes during migration.

    Self-managed ES username

    The username used to log on to your self-managed Elasticsearch cluster.

    Self-managed ES password

    The password used to log on to your self-managed Elasticsearch cluster.

  3. Click OK to complete task creation.

Step 2: Configure and run the migration task

In this step, configure and run the migration task as prompted.

Note

The source cluster is your self-managed Elasticsearch cluster. The destination cluster is your Alibaba Cloud Elasticsearch cluster.

  1. Run migration checks and configure node fusion.

    On the Source and destination cluster settings tab, complete the following steps to check migration feasibility and configure node fusion.

    image

    1. Feasibility check: Before migration, the system automatically checks network connectivity, version compatibility, and resource availability between the source and destination clusters to ensure safe and feasible migration.

      Note

      If the feasibility check fails, adjust configurations as prompted.

    2. Configure node fusion: The system detects configuration parameters from your source cluster—such as number of replica shards, sharding strategy, and user permissions—and adapts them to your destination cluster. This ensures seamless synchronization of configuration parameters, resource allocation, and sharding strategy for smooth migration and efficient operation.

      Note

      This step takes about 20 minutes. Please wait.

  2. Migrate data.

    On the Data migration tab, follow the steps below to complete cluster fusion, replica shard migration, master node migration, and primary shard migration.image

    Action

    Description

    Notes

    Cluster fusion

    The system merges the source and destination clusters into one large cluster. After fusion, total nodes in the cluster = nodes in source cluster + nodes in destination cluster.

    After cluster fusion, Kibana for the destination cluster is temporarily disabled. During migration, continue using Kibana for the source cluster until you complete the business cutover.

    Replica shard migration

    The system migrates index replica shards from source cluster nodes to destination cluster nodes.

    If unexpected failures occur or if migration affects your business, roll back the operation. After rollback, you cannot resume the current migration task. Create a new migration task instead.

    Master node migration

    The master nodes of the merged cluster are migrated from the source cluster to the destination cluster.

    Master node migration starts immediately and cannot be rolled back under any circumstances. Proceed with caution.

    Primary shard migration

    The system migrates primary shards—which store raw data—from source cluster nodes to destination cluster nodes.

    Primary shard migration cannot be rolled back under any circumstances. Proceed with caution.

  3. Switch business traffic and isolate the network.

    In this step, switch your business traffic to the destination cluster and stop the source cluster from serving traffic using network isolation.

    1. Service switchover

      On the Business cutover tab, follow the prompts to update all query and write requests in your business application from the source cluster domain name to the destination cluster domain name. Use the destination cluster for all future services.

    2. Isolate the network.

      After switching business traffic, submit a network isolation request to prevent nodes from the source cluster from joining the destination cluster. This stops the source cluster from serving traffic.

      Note

      When the interface shows Unpublish self-managed cluster nodes, follow the prompt to unpublish self-managed cluster ECS nodes or stop the Elasticsearch process. We recommend stopping the process using kill -15 <ES process PID>. After completing this action, the system continues with network isolation. This process takes about 20 minutes. Please wait.

  4. Complete migration.

    After successful network isolation, the migration task ends. Click Go to instance list to view instance details.

Step 3: Validate data

After the migration task completes, use the Kibana console to access your destination Alibaba Cloud Elasticsearch cluster. Run queries or write operations to verify that the cluster meets your expectations.

What to do next

After migration completes and data validation passes, unpublish your self-managed Elasticsearch cluster.

References