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. This topic describes how to upgrade the version or kernel of an Elasticsearch cluster and describes the limits on versions that can be upgraded and the supported cluster restart modes.
Limits on cluster versions
The following table lists limits on the versions for an upgrade.
Source version | Destination version | References |
5.5.3 | 5.6.16 | |
5.6.16 | 6.3.2 | |
6.3.2 | 6.7.0 | |
8.X | Latest version |
If the version of your Elasticsearch cluster does not meet the preceding requirements, you cannot upgrade the version. We recommend that you unsubscribe from or release the cluster and purchase a cluster of the desired version.
Cluster restart modes
After you upgrade the version or kernel of the cluster, the system restarts the cluster. The time that is required for the restart depends on the specifications of the cluster, the volume of data stored on the cluster, and the data structure. In most cases, the restart requires about 1 hour. Alibaba Cloud Elasticsearch provides two restart modes. The system selects an appropriate restart mode based on your upgrade scenario.
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. |
|
|
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. The 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 configuration file or code after the upgrade. | V5.6.16 to V6.3.2 |
Precautions
Breaking changes, minor changes, and deprecations may be involved after the upgrade. For more information, see Migration guide.
NoteIf you upgrade your cluster to V8.9 or V8.15, breaking changes are involved. If you upgrade your cluster to an 8.X version other than V8.9 and V8.15, only minor changes are involved. For more information, see Migrating to 8.15 and Migrating to 8.9.
If you use Elasticsearch plug-ins, you must make sure that the version of each plug-in is compatible with the destination version. Otherwise, the plug-ins cannot work as expected.
If you use features such as Logstash, APM, Beats, Fleet/Elastic Agent, Elastic Security, and Enterprise Search, you must make sure that the features are compatible with the destination version.
Before you upgrade the version of your cluster, you must create a snapshot for the cluster to back up all data in the cluster. Once an upgrade failure occurs, you need to restore data from the snapshot.
Before you upgrade the version of your production cluster, we recommend that you perform such an upgrade in the test environment or on a test cluster.
We recommend that you upgrade the version of your production cluster during off-peak hours and do not create indexes during the upgrade.
A version upgrade involves a Kibana version change. Therefore, Kibana may be unavailable during the upgrade.
Procedure
Upgrade an earlier version or the kernel
- Log on to the Alibaba Cloud Elasticsearch console.
- In the left-side navigation pane, click Elasticsearch Clusters.
- Navigate to the desired cluster.
- In the top navigation bar, select the resource group to which the cluster belongs and the region where the cluster resides.
- On the Elasticsearch Clusters page, find the cluster and click its ID.
On the Basic Information page, click Update and Upgrade on the right side.
In the Update and Upgrade dialog box, configure the Operation Type and Destination Version parameters.
Valid values for the Operation Type parameter:
Kernel Patch Update: The system upgrades the kernel of the cluster but does not upgrade the version of the cluster. Only Kernel-enhanced Edition clusters support this operation type. For information about the features in each kernel version, see AliES release notes.
NoteIf the system detects that new kernel features are released, the A new kernel patch is available message appears on the right side of the Version parameter on the Basic Information page of a cluster. You can also click the message to upgrade the kernel of the cluster.
Elasticsearch Version Upgrade: The system upgrades the version of the cluster but does not upgrade the kernel of the cluster.
Click Upgrade Check. Then, the system checks the configuration compatibility, status, snapshots, and basic resources of the cluster.
If exceptions are detected, handle the exceptions as prompted after the check is complete. Then, click Re-check. For more information, see Perform a check before a version upgrade.
The following descriptions provide details of the upgrade check:
Configuration compatibility check
The system checks 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 related instructions and perform the upgrade again. For more information, see Configuration compatibility check and Modify incompatible configurations.
Cluster status check
The system checks whether the cluster is in the Normal state (indicated by the color green) and whether its load is normal. Before the check is performed or if the cluster fails the check, you can check whether the cluster load is normal based on the instructions provided in Cluster status check.
Snapshot check
The system checks whether a snapshot is created for the cluster within the previous hour. If the upgrade fails, you can restore data from the snapshot.
NoteIf no snapshot is created for the cluster within the previous hour, you can click Manual Snapshot in the Update and Upgrade dialog box to trigger snapshot creation. For more information about snapshots, see Data backup overview.
The time that is required to create a snapshot 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, the time that is required to create the first snapshot is long.
After the cluster passes the check, 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.
Upgrade V8.X to the latest version
- Log on to the Alibaba Cloud Elasticsearch console.
- In the left-side navigation pane, click Elasticsearch Clusters.
- Navigate to the desired cluster.
- In the top navigation bar, select the resource group to which the cluster belongs and the region where the cluster resides.
- On the Elasticsearch Clusters page, find the cluster and click its ID.
On the Basic Information page, click Update and Upgrade on the right side.
In the Version Selection step of the Update and Upgrade panel, configure the parameters.
Select Elasticsearch Version Upgrade for Operation Type.
Select the latest version for Destination Version. Only the latest version is available for Destination Version.
Read the risk warning and select the I Have Read and Understand Preceding Risks check box.
Click Next.
In the Upgrade Check step, perform the related operations.
If no snapshot is created for the cluster within the previous hour, click Manual Backup to create a snapshot for the cluster.
If the health status and basic resources of the cluster fail the check, perform a manual check based on the instructions in Perform a check before a version upgrade.
Click Re-check. After all check items pass the check, click Next.
In the Plug-in Configuration step, configure plug-ins based on your business requirements and on-screen instructions.
If Check Passed is displayed in the Plug-in Configuration section, plug-ins are configured.
Click Upgrade. In the message that appears, click OK.
During the upgrade, a business jitter may occur due to node updates. Make sure that you perform a version upgrade during off-peak hours. A version upgrade includes the following stages:
Phased change: After the phased change, confirm the cluster stability and check your business at the earliest opportunity. If an exception occurs, submit a ticket to contact Alibaba Cloud Elasticsearch technical support to perform a rollback.
Full change: If you confirm that the cluster is normal after the phased change, click Full Change to initiate a full change.
After you initiate a full change, rollback is no longer supported.