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.

  1. Create a snapshot of your current OpenSearch cluster.

    For instructions, see Creating a Cluster Backup.

  2. Create a new OpenSearch cluster with the required software version.
  3. Restore the snapshot in the new OpenSearch cluster.

    For instructions, see Restoring a Backup from a Cluster.

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
Note

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

    1. On the Clusters list page, find the OpenSearch cluster that you want to work with. If you need help finding the list page or the cluster, see Listing Clusters.
    2. From the Actions menu for the OpenSearch cluster, select Upgrade.
    3. On the Upgrade panel, select one of the following options:
      • Upgrade current cluster: Upgrades the version of this cluster. Major version upgrades might have downtime.
      • Create a clone and apply upgrade to clone: Use this feature to apply the upgrade to a clone so you can run tests. We recommend selecting this option for major upgrades to avoid any production traffic downtime because of any issues with the upgrade.
    4. Select the software version from the Available software versions list. The current version is initially displayed.
    5. Select Upgrade.
  • 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-clone parameter to false:

    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 false

    The --original-cluster-display-name parameter 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-clone parameter to true:

    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 true
  • Run the UpgradeOpenSearchCluster operation to perform a major or minor version upgrade for a cluster.

    Upgrading the Current Cluster

    In the request body, set isClone to false. The following JSON fragment shows this field:

    "isClone": false

    Cloning the Cluster and Applying the Upgrade

    In the request body, set isClone to true. 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_size
  • thread_pool.test.min_queue_size
  • index.store.hybrid.mmap.extensions
  • knn.plugin.enabled
  • index.knn.algo_param.ef_construction
  • index.knn.algo_param.m
  • index.knn.space_type
  • plugins.sql.delete.enabled
  • opendistro*
  • plugins.sql.pagination.api