---
title: "Upgrade the OpenSearch Version"
description: "Upgrade an Exoscale Managed OpenSearch service to a newer OpenSearch version from the Portal or the Exoscale API."
url: https://community.exoscale.com/product/dbaas/service-specific/opensearch/how-to/upgrade-version/
product: "OpenSearch"
section: product
last_updated: 2026-11-24
---
> For AI agents: the documentation index is at https://community.exoscale.com/llms.txt. Every page is available as markdown at `<page URL>index.md` or with `Accept: text/markdown`.

# 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](https://community.exoscale.com/product/dbaas/service-specific/opensearch/reference/version-lifecycle/index.md).

## Before You Upgrade

- An upgrade cannot be reverted, because downgrades are not supported. Test it first on a
  [fork](https://community.exoscale.com/product/dbaas/how-to/backups-restore/index.md#forks) 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](https://portal.exoscale.com/).
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

```bash
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

- [OpenSearch Version Lifecycle](https://community.exoscale.com/product/dbaas/service-specific/opensearch/reference/version-lifecycle/index.md)
- [Manage Backups and Restores](https://community.exoscale.com/product/dbaas/how-to/backups-restore/index.md)
- [Manage Maintenance Windows](https://community.exoscale.com/product/dbaas/how-to/maintenance-windows/index.md)

