Skip to content

Upgrade the OpenSearch Version

Move a Managed OpenSearch service to a newer OpenSearch version. The versions you can choose are listed by exo dbaas type show opensearch, see OpenSearch Version Lifecycle.

Before You Upgrade

  • An upgrade cannot be reverted, because downgrades are not supported. Test it first on a fork of the service, created with --opensearch-fork-from-service.
  • If your indexes use k-NN fields, an index that fails the version check blocks the upgrade with 403 Forbidden. The error lists the affected indexes.
  • OpenSearch 3.x cannot read indexes created on OpenSearch 1.x. Reindex them before you move a service from 2.x to 3.x.

Upgrade from the Portal

  1. Open the service in the Portal.
  2. In the menu at the top right of the service page, select Upgrade.
  3. Select the target version, then select Upgrade.

Upgrade with the API

echo '{"version":"TARGET_VERSION"}' | \
  exo api update-dbaas-service-opensearch SERVICE_NAME -z ZONE

Parameters:

  • TARGET_VERSION: the target version, as a string, for example "3.6".
  • SERVICE_NAME: name of the service.
  • ZONE: zone the service runs in, for example ch-gva-2.

During the Upgrade

The upgrade creates a new instance of the service, migrates the data to it, and switches over, which involves downtime. Make sure your application reconnects.

Related Pages

Last updated on