Upgrading Search with OpenSearch Cluster Software
Upgrade a cluster's software version with an inline software upgrade.
Search with OpenSearch supports several concurrent versions of OpenSearch. For existing clusters using older versions, you can upgrade the cluster to use the functionality available in the latest version of OpenSearch.
The upgrade process depends on whether you're doing a major version upgrade or a minor version upgrade. A major version upgrade is indicated by a change in the first number in the build number, for example, 2.19.1 to 3.2.0. A minor version upgrade is indicated by a change in the second number in the build number, for example, 2.11.0 to 2.15.0.
You can upgrade the software version of OpenSearch cluster using the following methods:
- Snapshot and restore: Follow these steps:
- Create a snapshot from your current cluster. For instructions, see Creating a Search with OpenSearch Cluster Backup.
- Create a new cluster of the required software version.
- Restore the snapshot in the new cluster. For instructions, see Restoring a Backup to a New Search with OpenSearch Cluster.
- Direct upgrade: Upgrade your cluster itself to the required version.
- Clone and upgrade : (Recommended) Create a clone of your cluster and upgrade to the required version.
The Direct upgrade and Clone and upgrade methods are described later in this topic.
Consider the following limitations and considerations regarding inline upgrades:
- After the inline upgrade process is started, you can't stop or cancel the process. We recommend that you create a backup of the cluster.
- You can only upgrade a cluster to a newer OpenSearch software version, you can't downgrade to an older OpenSearch software version.
- Upgrading to version 3.2.0 fails if an index with RAG pipeline is present in cluster, current workaround is to use snapshot and restore route for upgrading. RAG is however fully supported on the upgraded 3.2.0 cluster. Work is in progress to address both these issues.
Recommended Upgrade Paths
| Pre Upgrade Version | Post Upgrade Version |
|---|---|
| 1.2.4 | 2.11.0 |
| 2.3.0 | 2.11.0 |
| 2.11.0 | 2.15.0 |
| 2.15.0 | 2.18.0 |
| 2.18.0 | 2.19.1 |
| 2.19.1 | 3.2.0 |
Versions 1.2.4 and 2.3.0 are deprecated, so you can upgrade them both directly to version 2.11.0. For more information, see Search with OpenSearch Supported Versions.
Access the Clusters list in the Console to check whether a cluster is eligible for a software upgrade. Any clusters that are upgrade eligible include the text Upgrade in the Software version column. For instructions on accessing the Clusters list, see Listing Search with OpenSearch Clusters.
Upgrading the Software
Use the oci opensearch cluster upgrade command and required parameters to perform an inline (minor build version) upgrade for a cluster. Configure the
is-cloneparameter asfalseortrueto specify whether you're upgrading the current cluster or are creating a clone of the cluster and am applying the upgrade to the clone.Run the following command to upgrade the current cluster:
oci opensearch cluster upgrade --opensearch-cluster-id cluster_ocid --desired-software-version desired_OpenSearch_version --original_cluster_display_name original_cluster_display_name --upgrade-type [MAJOR | MINOR] --is-clone false [OPTIONS]Run the following command to create a clone and apply the upgrade to the clone:
oci opensearch cluster upgrade --opensearch-cluster-id cluster_ocid --desired-software-version desired_OpenSearch_version --original_cluster_display_name original_cluster_display_name --upgrade-type [MAJOR | MINOR] --is-clone true [OPTIONS]The
original_cluster_display_nameparameter is required to validate that the cluster ID has the same display name.For a complete list of flags and variable options for CLI commands, see the Command Line Reference.
Run the UpgradeOpenSearchCluster operation to perform an inline software upgrade for a cluster.
Deprecations
For information on OpenSearch deprecations associated with upgrading to version 3.x, see the following OpenSearch site:
Archive Settings
OpenSearch 3.x versions rename the deprecated settings with the prefix archived. All archived settings are removed during upgrade. Here is the list of deprecated settings:
thread_pool.test.max_queue_sizethread_pool.test.min_queue_sizeindex.store.hybrid.mmap.extensionsknn.plugin.enabledindex.knn.algo_param.ef_constructionindex.knn.algo_param.mindex.knn.space_typeplugins.sql.delete.enabledopendistro*plugins.sql.pagination.api