When a rolling upgrade is the right OpenSearch upgrade method
A rolling upgrade is the right method when a self-managed cluster must move to a newer major version without a long outage and the move is a single adjacent step. In a rolling upgrade, you stop and upgrade or replace nodes one at a time while the cluster keeps indexing and searching. OpenSearch documents four upgrade and migration methods: rolling upgrades, snapshot and restore, remote reindexing and Migration Assistant. Each one trades downtime, effort and risk differently, so the choice should be made before any node is touched. The adjacent major version rule is the first filter: rolling upgrades apply only between adjacent major versions, so a cluster several majors behind needs a different path first.
Indices matter as much as the software version. The OpenSearch FAQ states that OpenSearch is wire-compatible with Elasticsearch 7.10, can use indices from Elasticsearch 6.0 through 7.10, and supports rolling upgrades from those versions. Pull the index inventory from the cluster and confirm each index was created by a version the target release can read. Also confirm the source version against the OpenSearch releases page, which describes how long each version stays in maintenance. A version that has left maintenance should be treated as an upgrade priority, not as a stable baseline. Confirm the exact maintenance end dates for your version on that page rather than relying on general rules of thumb.
The decision also has a one-way constraint. OpenSearch nodes cannot be downgraded, so a rolling upgrade has no in-place rollback. If the upgrade must be reverted, the realistic path is a new installation restored from a snapshot, which is why a snapshot in a remote repository should exist before the first node restarts. Choose the rolling upgrade only if your team can accept that recovery means rebuilding, and that the rebuild time depends on your data volume and repository throughput, which you should measure in advance. If a rebuild would breach your recovery objectives, compare the snapshot and restore method, which builds a new cluster and switches traffic to it.
What changes in an OpenSearch major upgrade and what to do about it
This table lists the lifecycle and release facts that affect when and why you upgrade, and the action each one calls for. Read it before choosing a target version, then confirm every breaking change against the release notes for that version. The main takeaway is that the maintenance window and release cadence set your deadline, while breaking changes decide how much preparation the rolling upgrade needs.
| Change | Impact | Action needed |
|---|---|---|
| Version maintenance rule | A version stays in maintenance until the next major version enters maintenance or one year passes, whichever is longer. | Map each cluster's version against this rule and set the upgrade deadline from it. |
| Version 1 end of life | Version 1 reached end of life on May 6, 2025, so it receives no further fixes. | Plan upgrades for any remaining 1.x cluster first, confirming the path in the 1.x to 2.x guidance. |
| Version 2 maintenance | Version 2 is maintained through the 4.0 GA release. | Schedule the move off 2.x against the 4.0 GA date and confirm that date on the releases page. |
| Maintenance releases | Maintenance releases receive bug fixes and security patches but no new features. | Apply patch releases on your normal cycle, and do not treat them as a substitute for a major upgrade. |
| New minor version cadence | A new minor version is targeted about every eight weeks, for example 3.8.0 on August 4, 2026 and 3.9.0 on September 29, 2026. | Pick a target minor version on a schedule your change process can support, and test each one before it reaches production. |
| Breaking changes for your target version | Each major release can remove settings, plugins or behaviors that your cluster or client code depends on. | Read the release notes for your target version and confirm every breaking change against your configuration before the first node restarts. |
| Security plugin changes | Changes to security configuration, roles or authentication backends can block users or admin access after a node restarts. | Confirm Security plugin changes in the target release notes and test login and admin access on a staging cluster first. |
| Install method changes | Packaging, file paths or service settings can differ between the tarball, RPM, Debian, Docker and Kubernetes installs. | Confirm install method changes for your deployment type in the release notes and update automation before the rollout. |
What to prepare before the first node restarts
A rolling upgrade is only safe to start when the rollback path, the compatibility picture and the test evidence are all in place before any node is touched. The five items below connect because each one answers a question the upgrade will force: how to get back, what might break, whether the change was rehearsed, what normal looks like, and who needs to know.
Remote snapshot repository before any change
OpenSearch nodes cannot be downgraded. If the upgrade goes wrong, the only way back is a new installation restored from a snapshot, so a snapshot must exist before the first restart. Register a repository on storage outside the cluster, such as an object store, and confirm that a full snapshot completes and that a test restore works. A snapshot that was never restored is not yet a recovery plan.
Rolling upgrade docsInventory of plugins, clients and Dashboards
Every plugin, client library and Dashboards plugin must have a version that works with the target release. Record the installed version of each plugin on every node, because a mismatch can stop a node from joining the cluster. List each application's client library and each Dashboards plugin with its owner. Confirm compatibility with the vendor or project notes for the target version before scheduling the upgrade.
Test cluster and restored production copy
Run the same target major version on a test cluster and restore a recent snapshot of production data into it. Replay representative queries, indexing jobs and Dashboards views against that copy. Time the rolling process from start to green and note any node that stalls. This rehearsal shows mapping, plugin and client problems before they reach a live cluster that is still serving traffic.
Health baseline and allocation settings
Record cluster health, shard counts, unassigned shards, disk usage and heap pressure before the upgrade starts. Also record the current shard allocation settings, since the procedure changes them during each node restart and they must be restored afterward. A baseline lets you tell a normal state from a degraded one after each node comes back. If the cluster is not green before you begin, fix that first.
Change window and owner communication
Choose a change window that gives the team enough time to finish the full set of nodes and to roll back from the snapshot if needed. Tell application owners which indexing and search paths may slow during each restart, and agree who can stop the upgrade. Name one person who approves each node's move to the next step. Confirm the window and the contacts in writing before the change starts.
The node-by-node upgrade sequence with health checks
This sequence upgrades a running OpenSearch cluster one node at a time, keeping indexing and search available while giving the team a verified rollback point and a clear rule for when to stop.
Confirm the adjacent version path and target
Before anything changes, the team confirms that the current OpenSearch version and the target version are adjacent majors, and that the target is a version the project still maintains. The OpenSearch FAQ documents rolling upgrades from supported Elasticsearch and OpenSearch versions, so the owner also checks the compatibility notes for every plugin and client in use. Output: a written version matrix signed off by the platform owner. Ask the vendor or check the release notes for the exact supported paths before you proceed, because multi-major jumps need a different method.
Take and verify a snapshot in a remote repository
The team takes a full snapshot of all indices and cluster state into a snapshot repository outside the cluster, such as object storage or a remote file store the cluster can reach but does not host. Because nodes cannot be downgraded, this snapshot is the only practical way back: reverting means a new installation restored from it. The owner confirms the snapshot status reports success, lists the expected indices, and that a test restore of a small index works in a separate environment. Output: a snapshot ID and a restore test record.
Record the baseline and disable shard allocation
Before the first restart, the operator records the cluster health status, node list with roles, shard counts, pending tasks and any unassigned shards, so later checks have a known starting point. Then the operator disables shard allocation using the setting the rolling upgrade documentation describes, which stops the cluster from moving shards while a node is away. Exact commands and settings belong in the rolling upgrade documentation and should be copied from there and tested in a non-production cluster first. Output: a saved baseline and confirmation that allocation is disabled.
Stop, upgrade and restart one node
The operator stops one node cleanly, then upgrades its packages or container image to the target version, or replaces it with a new node running the target version and the same configuration and data path. The node is restarted and must rejoin the cluster. The operator checks that the node appears in the node list with the expected version and role. Output: the node reports the target version and has rejoined. If it does not rejoin, stop and follow the stop rule before touching another node.
Re-enable allocation and wait for green
Once the upgraded node has rejoined, the operator re-enables shard allocation so replicas and shards can recover. The cluster will move shards back onto the node and may show yellow while replicas rebuild. The operator waits until cluster health returns to green, and watches for unassigned shards, relocation progress and any disk or memory alerts during recovery. Output: green status and no unassigned shards before the next node is touched.
Repeat by node role in a set order
The team upgrades the remaining nodes one at a time, in an order that protects cluster manager quorum. Dedicated cluster manager nodes are typically handled with care so that a majority stays available, with allocation disabled and re-enabled around each node as in the earlier steps. Data nodes follow, then ingest and coordinating nodes, or the order set in the rolling upgrade documentation for the topology in use. Each node gets the same stop, restart and green check. Output: a per-node log with version, time, health status and any warnings.
Apply the stop rule and finish
The team stops the procedure if a node fails to rejoin, cluster health stays red or yellow beyond the expected recovery, shards remain unassigned, or errors appear in logs that the team cannot explain. In that case, no further nodes are upgraded, allocation state is reviewed with the documentation, and the team decides whether to recover in place or to fall back to the snapshot on a new installation. When every node is upgraded and green, the operator confirms the final version across the cluster and re-checks plugin and client compatibility. Output: a closure record listing the final version, health checks and the snapshot ID kept for rollback.
Why shard allocation and health checks decide the pace
Shard allocation and cluster health set the pace of a rolling upgrade more than the number of nodes does. Each node can only be restarted safely when the cluster can keep every shard available without it. The OpenSearch cluster docs recommend replicas on separate nodes and shard allocation awareness, so that a copy of each primary shard lives in a different failure domain. With that layout, a node that goes down for an upgrade leaves a replica to serve reads and writes while the primary work continues elsewhere. Before you begin, confirm in your own environment that each index has at least one replica, that replicas are not stacked on the same host or zone, and that awareness attributes match how your hardware is actually spread out.
Allocation settings control what happens while the node is away and when it returns. When a node restarts, the cluster decides whether to wait for it to rejoin before rebuilding missing copies elsewhere, and once it rejoins, shards move back and recover from peers. Confirm the cluster-level allocation settings that govern this behavior in the rolling upgrade docs for your target version, and decide deliberately whether to pause allocation during each restart and re-enable it afterward. Recovery traffic competes with indexing and search, so the time a node spends catching up is the main reason one restart cycle takes longer than another. Watch recovery progress and unassigned shard counts rather than assuming the node is ready because the process has started.
Cluster health is the gate for the next restart. Move on only after the cluster reports green, or reports the state you expected before you began, and no shards remain unassigned or relocating. A yellow status during a restart is normal only while the missing replicas are the ones on the node you just upgraded. Mixed-version clusters need extra planning: while some nodes run the old version and some the new, the cluster is in a transitional state that you should keep as short as possible and verify at every step. Do not start a second major version jump or leave the cluster partly upgraded over a weekend without a documented plan, a tested rollback path through snapshots, and a named owner who will watch health.
What makes a rolling upgrade take longer
This table lists the factors that stretch a rolling upgrade across the cluster and the questions to settle before scheduling. Read each row as a driver that multiplies the per-node work, because every node goes through the same stop, upgrade, rejoin and health check cycle.
| Driver | Why it matters | What to confirm |
|---|---|---|
| Node count and roles | Each node is upgraded one at a time, so more nodes mean more cycles. Dedicated cluster manager nodes add sequencing because they must be handled in a deliberate order alongside data nodes. | How many nodes hold each role, and in what order the cluster manager, data, ingest and coordinating nodes will be upgraded |
| Data volume per node | After a node rejoins, shards must recover and replicas must resynchronize before the next node can safely go down. Larger shard counts and heavier indices extend that wait. | Total index size, shard count per node, and how long recovery took in a test run on comparable data |
| Shard allocation during restarts | Allocation settings control whether shards move while a node is out. Leaving reallocation on or off changes both the time to recover and the risk of unassigned shards. | The allocation settings in use, whether replicas exist for every index, and the cluster's current health baseline |
| Plugins and custom configuration | Security, alerting, k-NN and other plugins must match the target version. Custom Security roles, Dashboards configuration and plugin changes add checks and can require fixes before the next node restarts. | Full plugin list with versions, custom Security configuration, Dashboards plugins, and whether any plugin lacks a target-version build |
| Client applications | Clients, ingest pipelines and scripts that call the API may depend on behavior that changed between versions. Each one needs a compatibility check before cutover. | Number of client applications, their client libraries and versions, and which ones use deprecated APIs or removed settings |
| Test environment fidelity | A test cluster with different plugins, data volume or topology can hide problems that appear only in production. The closer the test run is, the more reliable the schedule. | How closely the test cluster matches production in version, plugins, data size, node roles and security configuration |
| Deployment method | Helm, Ansible, packages, containers and the Kubernetes operator each restart and replace nodes differently. Operator-managed clusters wait for health checks on their own, while package-based nodes need manual sequencing. | Which tool manages the cluster today, who runs each step, and whether automation waits for green status between nodes |
Questions teams ask before a rolling upgrade
Can we downgrade OpenSearch if the rolling upgrade fails?
No. OpenSearch nodes cannot be downgraded in place, so reverting means building a new installation and restoring a snapshot into it. That is why the snapshot is the real rollback plan. Take it into a remote repository before the first node is touched, confirm that it restores in a test environment, and record which indices and cluster settings it contains. Plan the rollback window with the same care as the upgrade itself, because restoring a large cluster takes longer than most teams expect and any writes made after the snapshot must be replayed or accepted as lost.
Can we skip a major version during a rolling upgrade?
Rolling upgrades are for adjacent major versions only, so a cluster must step through each major release in order. A jump across several majors needs a different path. The options OpenSearch documents are snapshot and restore into a new cluster, remote reindexing, and Migration Assistant, which can move workloads across several major versions in one step and supports live traffic capture for low or zero downtime. Confirm the supported source and target pairs in the current OpenSearch migrate or upgrade documentation before you commit to a sequence, since supported paths change between releases.
How long does a rolling upgrade take?
No fixed duration applies to every cluster, and the duration depends on four things: the amount of data, the number of nodes, how quickly shards recover after each restart, and how much preparation the team does beforehand. Each node is upgraded, rejoins the cluster, and must return to a healthy state before the next node moves, so the total time grows with node count and with the time spent waiting for recovery. Ask any provider for a schedule built from your cluster's size, shard count, replica settings and change windows, and ask them to show how the schedule accounts for recovery time and rollback rehearsal.
What does a rolling upgrade cost?
The main cost is labor, and it falls into internal engineering time and any partner fees. Internal time covers reading the release notes, testing plugins and client code, building the snapshot repository, rehearsing in a test environment, executing the change windows and verifying results. A partner quote follows from a written scope that lists the clusters, environments, plugins, deliverables and change windows involved. Recurring costs include the snapshot storage and the infrastructure for a test cluster. DeployOpen does not publish prices. Ask any provider for a quote that separates one-time work from recurring support and states what is excluded.
What do we need to provide before the upgrade starts?
The team needs to provide working access to the clusters, the snapshot repositories and their storage credentials, a test environment that resembles production, and agreed change windows. Access should include the cluster endpoints, the admin credentials or API keys used for the upgrade, and read access to node logs and monitoring. The team should also provide a list of client applications, plugins and custom mappings so the upgrade can be checked against them, plus named contacts who can approve a rollback. Confirm these items in writing at the start, because missing access is one of the most common causes of delay in a fixed-scope engagement.
Can our own team run the rolling upgrade without a partner?
Yes, if the team has the skills and enough time to do the work properly. The team needs experience with OpenSearch cluster health, shard allocation, snapshot repositories and the release notes for each version in the path. It also needs time for rehearsal, not only for the production change. A partner can take over planning, the test rehearsal, the rollback plan and the evidence that the change was controlled, while the internal team keeps ownership of the production systems. Decide which of these tasks your team can complete within your change calendar, and treat the rehearsal as a required step rather than an optional one.
How do we know the cluster is safe to move to the next node?
Check cluster health before every node restart and again after the node rejoins. The cluster should report green or the expected yellow state before the next node is stopped, and shard recovery should finish before the next step. Watch for unassigned shards, pending tasks and rising error rates on client requests. Shard allocation should be set to allow replicas to move during the restart, and it should be restored after the last node returns. Document each check with the time, the node name and the health output, because this record is the evidence a reviewer will ask for.
Rolling upgrade or another OpenSearch upgrade method
A rolling upgrade stops and upgrades or replaces nodes one at a time while the cluster keeps indexing and searching. It is the usual choice when your current cluster is on the adjacent major version and you need to keep it live throughout. The work happens in place, so the same cluster, indices and configuration carry through the change.
- Version gap: Confirm that your source version is the adjacent major release. Multi-major jumps are not covered by this path.
- Live service: Searches and writes continue during the process, although capacity drops while nodes are offline.
- Node-by-node checks: Health must return to the expected state before you move to the next node.
- Rollback limits: Nodes cannot be downgraded, so rollback means a new installation restored from a snapshot.
- Plugins and clients: Confirm plugin and client compatibility with the target version before you start.
Before you choose this path, confirm the version gap, your capacity headroom during node restarts and whether your plugins support the target release.
Snapshot and restore builds a new cluster on the target version and loads your data from a snapshot repository. It is often the better choice when a clean build beats a rolling path, such as when your cluster has accumulated configuration drift, when the version gap makes an in-place path awkward, or when you want to test the new cluster in full before cutover. Writes are typically paused or replayed during the cutover window, so plan for that downtime.
- Clean target: The new cluster starts without legacy settings or drift from the old one.
- Compatibility review: Check index version compatibility before restoring, since older indices may need reindexing.
- Testing: Validate queries, dashboards and access controls on the new cluster before cutover.
- Write downtime: Plan how writes are paused, queued or replayed while the final snapshot is taken.
- Repository access: The new cluster must reach the same snapshot repository.
The sibling topic on upgrading with snapshot and restore covers index compatibility and cutover planning in detail.
Migration Assistant is the OpenSearch tooling for moving workloads across several major versions in one step, for example from Elasticsearch 6.8 to OpenSearch 2.19. It can also capture live traffic so that the target stays in step with the source, which supports low or zero downtime cutovers. It suits organizations that cannot run a sequence of rolling upgrades, or that are migrating from Elasticsearch as well as upgrading.
- Multi-version moves: Use it when the source is several major versions behind the target.
- Live traffic capture: Optional capture can keep the target current before cutover, which lowers downtime.
- Validation: Compare results and performance on the target before you switch clients.
- Operational setup: The tooling adds components to plan, run and retire after the move.
- Documentation: Check the current guidance for your source and target pair before you start.
Confirm whether your source and target versions are supported by Migration Assistant and whether live capture fits your traffic pattern.
Remote reindexing copies documents from an existing source cluster into a new target cluster through the reindex API. It is a documented method that works when you want to move selected indices, reshape mappings or pull data across an upgrade boundary without restoring a full snapshot. Because documents are re-indexed, the target applies its current mappings and analyzers, which can change search results.
- Selective moves: Copy only the indices you need, which keeps the scope small.
- Mapping changes: The target uses its own mapping, so review field types and analyzers before you start.
- Throughput: Copy speed depends on source load and network path, so test it on a representative index.
- Consistency: Decide how writes made during the copy are captured and reconciled.
- Verification: Compare document counts and sample query results before cutover.
Confirm the source version and network reachability with your target cluster team before you commit to this method for production indices.
How the upgrade phases and rollback points connect
The procedure starts with confirming the upgrade path and target version, then takes a snapshot to a remote repository before anything changes. A rehearsal on a test cluster comes next, followed by the rolling node loop, where each node is restarted only after the cluster health check passes. If a node fails and cannot be recovered, the only way back is a new installation restored from that snapshot, because nodes cannot be downgraded. Check health after every node and run post-upgrade verification before closing the change.
Upgrade phases, the health gate between nodes and the restore fallback.
How DeployOpen scopes and delivers an OpenSearch upgrade
DeployOpen plans, implements, tests, documents and supports self-hosted open-source platforms inside your own infrastructure, so an OpenSearch rolling upgrade is scoped and run against your cluster, your snapshot repository and your change windows. Engagements are fixed-scope, with the scope, deliverables and timeline agreed in writing before work starts.
How we scope
- Inventory the current OpenSearch version, node roles, plugins, indices and client applications before quoting any work.
- Confirm the starting version is an adjacent major release, so the rolling path is valid for your target.
- Agree in writing which snapshot repository, health thresholds and rollback steps are in the written scope.
How we build
- Verify a fresh snapshot in a remote repository and test restore into a staging cluster before any node is touched.
- Rehearse the node-by-node sequence on a copy of your cluster, including shard allocation settings and health checks between nodes.
- Document each restart step, the expected cluster health state and the stop conditions for the production run.
How we hand over
- Deliver a runbook covering the upgrade order, commands, health checks, and the recovery path through a new installation restored from snapshot.
- Record the verification results, version inventory and any configuration changes made during the upgrade.
- Walk your platform and security teams through the runbook so they can repeat the procedure for later minor and patch releases.
How we support
- Support follow-up issues after the upgrade within the written scope of the engagement.
- Offer ongoing support, upgrades and continuous testing as a retainer for clusters that need regular maintenance.
- Confirm with us and your vendor which OpenSearch version is in maintenance before planning the next upgrade.

