Upgrading Search with OpenSearch Cluster Software
Upgrade the software version of an OpenSearch cluster.
Upgrade Methods
You can upgrade your OpenSearch cluster to a newer software version to access new features and functionality. OpenSearch supports several concurrent versions, so you can keep your OpenSearch cluster up-to-date with the latest enhancements. This topic describes the upgrade methods, considerations, and supported upgrade paths.
Choose one of the following methods to upgrade your OpenSearch cluster:
- Clone and upgrade: (Recommended) Create a clone of your OpenSearch cluster and upgrade the cloned cluster to the required version. Use this approach to minimize risk and downtime, and to test the upgrade before switching production traffic to the new cluster.
- Direct upgrade: Upgrade your existing OpenSearch cluster to the required version in place. Use this method for small or non-critical clusters where brief downtime is acceptable. This option is also known as "in-place upgrade."
- Snapshot and restore: Use this method for a clean migration to a new OpenSearch cluster version, especially when you need to change configurations such as instance type, region, or architecture during the upgrade. For instructions, see Upgrading with Snapshot and Restore.
Upgrading with Snapshot and Restore
Upgrade by restoring a snapshot to a new cluster with the required software version.
Limitations and Considerations for Upgrades
Review the following upgrade limitations and considerations:
- After you start a direct upgrade, you can't stop or cancel the process. We recommend that you create a backup before starting the upgrade.
- You can only upgrade to a newer OpenSearch software version. You can't downgrade to an older version.
- If any index in your cluster uses the RAG pipeline, upgrading directly to version 3.2.0 fails. Use the snapshot and restore method as a workaround. RAG is fully supported on OpenSearch version 3.2.0.
Software Upgrade Paths
You can upgrade an OpenSearch cluster to a newer version, but only one major version at a time. The recommended upgrade path is outlined in the following table:
| Current Version | Upgraded Version |
|---|---|
| 1.x | 2.19.1 |
| 2.x | 2.19.1 |
| 2.19.1 | 3.2.0 |
| 2.19.1 | 3.6.0 |
| 2.19.1 | 3.9 |
Versions 1.2.4 and 2.3.0 are deprecated, so you can upgrade them both directly to a version listed in the preceding table. 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 a major or minor version upgrade for a cluster.
Upgrading the Current Cluster
To upgrade the current cluster, set the
--is-cloneparameter tofalse:oci opensearch cluster upgrade \ --opensearch-cluster-id cluster_ocid \ --desired-software-version desired_software_version \ --original-cluster-display-name original_cluster_display_name \ --upgrade-type [MAJOR | MINOR] \ --is-clone falseThe
--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.
Cloning the Cluster and Applying the Upgrade
To create a clone of the cluster and apply the upgrade to the clone, set the
is-cloneparameter totrue:oci opensearch cluster upgrade \ --opensearch-cluster-id cluster_ocid \ --desired-software-version desired_software_version \ --original-cluster-display-name original_cluster_display_name \ --upgrade-type [MAJOR | MINOR] \ --is-clone trueRun the UpgradeOpenSearchCluster operation to perform a major or minor version upgrade for a cluster.
Upgrading the Current Cluster
In the request body, set
isClonetofalse. The following JSON fragment shows this field:"isClone": falseCloning the Cluster and Applying the Upgrade
In the request body, set
isClonetotrue. The following JSON fragment shows this field:"isClone": true
OpenSearch Breaking Changes
For information on OpenSearch deprecations associated with version 3.x, including upgrades and deprecations, see the following OpenSearch site:
https://docs.opensearch.org/latest/breaking-changes/#300
The site also lists information about other OpenSearch versions.
Archive Settings
OpenSearch 3.x versions rename the deprecated settings with the prefix archived. All archived settings are removed during upgrade. The deprecated settings are:
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