Alibaba Cloud Elasticsearch allows you to upgrade the version or kernel of your Alibaba Cloud Elasticsearch cluster. This ensures that your business is up-to-date. You can upgrade Elasticsearch clusters from V5.6.16 to V6.3.2 or from V6.3.2 to V6.7.0. Upgrades from V5.6.16 to V6.3.2 are unavailable in the Alibaba Cloud Elasticsearch console. If you want to perform such an upgrade, submit a ticket.

Prerequisites

Precautions

When you upgrade the version or kernel of your cluster, the system restarts the cluster. The following table describes the restart modes that are provided by Alibaba Cloud Elasticsearch.
Restart mode Principle Risk and recommendation Scenario
Blue-green restart The system adds nodes of a later version to the cluster, migrates data stored on original nodes to the added nodes, and removes the original nodes from the cluster.
  • An ongoing upgrade cannot be canceled. During the upgrade, you can only read data from or write data to your cluster. Therefore, we recommend that you perform an upgrade during off-peak hours.
  • After the upgrade, the IP addresses of the nodes in the cluster are changed. If you have specified the IP addresses in the configuration file of the cluster or in the code that enables clients to access the cluster, update the configuration file or code after the upgrade.
  • Upgrades from V6.3.2 to V6.7.0
  • Kernel upgrades
Full restart The system disables all nodes in the cluster and restarts the cluster. During an upgrade, the system installs a TLS certificate on your cluster. This may interrupt your services but does not cause data loss. Upgrade duration depends on the specifications of the cluster and the volume of data stored on the cluster. We recommend that you plan the upgrade in advance.
Note A full restart does not change the IP addresses of the nodes in the cluster. Therefore, you do not need to update the IP addresses.
Upgrades from V5.6.16 to V6.3.2

Check items for cluster status

Before you upgrade the version or kernel of your cluster, check whether the cluster is in a normal state and whether its load is normal. You can upgrade the version or kernel of your cluster only when the cluster is in a normal state and its load is normal.
Check item Normal state
Cluster status The cluster is in the Active state (indicated by the color green).
JVM heap memory usage The JVM heap memory usage of the cluster is less than 75%.
Disk usage The disk usage of nodes is less than the value of cluster.routing.allocation.disk.watermark.low.
Replica shards All indexes are configured with replica shards.
Snapshots The cluster created snapshots during the last hour.
Custom plug-ins The cluster does not have custom plug-ins installed.
ECS instances in the zone where the cluster resides The zone where the cluster resides has sufficient ECS instances.
Note When you upgrade the version or kernel of a cluster, the system adds nodes of a later version to the cluster. Then, the system migrates data stored on original nodes to the added nodes and removes the original nodes from the cluster. Therefore, before the upgrade, make sure that the zone where the cluster resides has sufficient ECS instances.
YML configuration file The cluster of a later version is compatible with the YML configuration file in an earlier version.

Procedure

  1. Log on to the Alibaba Cloud Elasticsearch console.
  2. In the left-side navigation pane, click Elasticsearch Clusters.
  3. In the top navigation bar, select a resource group and a region. On the Clusters page, click the ID of the desired cluster.
  4. In the upper-right corner of the Basic Information page, click Update and Upgrade.
  5. In the Upgrade dialog box, select the target version.
    Notice A kernel upgrade does not change the version of the cluster. The kernel upgrade entry is displayed only after the system detects a new kernel version. After the kernel is upgraded, the entry is no longer displayed. For more information about the new features that are provided by the upgraded kernel, see AliES release notes.
  6. Click Precheck.
    Then, the system checks the configuration compatibility, status, snapshots, and basic resources of the cluster.Upgrade precheck
    After the check is completed, handle exceptions as prompted. The following description provides specific instructions on the check items:
    • Configuration compatibility check

      Check whether the later version is compatible with all configurations in the earlier version, especially for major version upgrades such as upgrades from V5.X to V6.X. If the cluster fails the check, the upgrade is terminated. In this case, modify the incompatible configurations based on the instructions provided in Check for and modify incompatible configurations before you perform an upgrade from V5.6 to V6.3 and perform the upgrade again.

    • Cluster status check

      Check whether the cluster is in the Active state (indicated by the color green) and whether its load is normal. Before the check or if the cluster fails the check, you can check whether the cluster load is normal based on the instructions provided in Check items for cluster status.

    • Snapshot check
      Check whether the cluster has created snapshots during the last hour before the upgrade. If the cluster has not created snapshots during the last hour, you can click Create Snapshots in the Upgrade dialog box to trigger snapshot creation
      Notice If the upgrade fails, you can restore data from the snapshots. The time that is required to create snapshots depends on the volume of data stored on the cluster. If the Auto Snapshot feature is disabled for the cluster and the data volume is large, a longer time is required to create the first snapshot.
  7. After the cluster passes the precheck, click Upgrade.
    During the upgrade, you can view the upgrade progress in the Tasks dialog box.
    After the upgrade, you can view the cluster or kernel version on the Basic Information page.