Upgrade OpenSearch with snapshot and restore

Moving a self-managed OpenSearch cluster to a new major version by restoring snapshots into a new cluster. This page covers when that beats a rolling upgrade, index compatibility, write downtime and testing before cutover.

On this page

When an OpenSearch upgrade by snapshot and restore beats a rolling upgrade

Snapshot and restore builds a new OpenSearch cluster and loads it from snapshots taken of the old one, so the old cluster keeps serving traffic until cutover. It fits when a rolling upgrade is hard to test, or when the existing cluster cannot be upgraded in place because its version or index history falls outside the supported path. OpenSearch documents four methods for this work: rolling upgrades, snapshot and restore, remote reindexing and Migration Assistant. The migrate or upgrade guide sets out the full comparison, and it is the first read for anyone choosing between them.

Start the decision with the version path. A rolling upgrade moves one adjacent major version at a time on the same cluster, so a jump of several majors usually means a sequence of upgrades or a different method. Snapshot and restore does not carry the same version step limit in the same way, because the new cluster is built on the target version and only the data is moved. Confirm for your target version which index versions it can read from a snapshot, since indices created by older releases may need reindexing before or after restore. Check the supported source and target pairs in the release documentation for that exact version rather than relying on general rules.

Then weigh the cost of the parallel cluster against what you gain. You will run two clusters for the length of the migration, with matching capacity, security settings, plugins, index templates and snapshot repository access on the new side. The method suits teams that want a clean target and a rehearsal they can repeat, and it is a poor fit when write volume is high and you cannot pause or replay writes at cutover. Ask your partner or internal team to write down the source version, the target version, the index creation dates, the plugin list and the write window you can accept, then compare those against the method limits before choosing.

What changes in an OpenSearch upgrade and what it means for a restore

This table compares each kind of change in an OpenSearch release with what it means when you restore a snapshot into a new cluster. Read each row before choosing a target version, and treat the confirm rows as required checks against the release notes for that version. The main takeaway is that a restore target must be a version that can read your indices, and every other change needs to be tested on the new cluster before cutover.

ChangeImpact on a snapshot restoreAction needed
Apache 2.0 license across OpenSearch softwareRestoring into a new cluster does not change license terms for the software or the snapshot data.Confirm the license terms for every plugin and extension in the target build before deployment.
Lineage from Elasticsearch 7.10 and Kibana 7.10.2Indices created on Elasticsearch 7.10 or earlier versions must be checked for compatibility with the OpenSearch target before restore.Confirm index-version support for your source indices in the release notes for your target version.
Release cadence of a new minor version about every eight weeksEach target minor version may carry different settings, plugin behavior or restore behavior, so a snapshot test run on one minor can differ on the next.Pin the exact target version for rehearsal and cutover, and retest if you change it.
Maintenance policy: bug fixes and security patches onlyA version in maintenance gets no new features, so a restore target chosen for a feature may not be the right line.Choose a target version that is in an active maintenance window, and confirm its end-of-life date before planning.
Version 1 end-of-life on May 6, 2025Clusters on version 1 are past end of life, so restoring their snapshots into a supported release is the path to current security patches.Plan the restore target from a supported version, and check how the source snapshot was taken.
Version 2 maintained through the 4.0 GA releaseVersion 2 remains maintained until 4.0 GA, which affects how long a restore target on version 2 will receive patches.Confirm the 4.0 GA date and the maintenance end date for your chosen line in the releases documentation.
Removed settings and deprecated configurationSettings removed in the target version can stop the restored cluster from starting or from applying your index and cluster configuration.Confirm removed settings in the release notes for your target version and compare them with your current configuration.
Plugin changes, including security and k-NN pluginsSnapshots do not carry plugin binaries, so a restored index can fail to load or query if a plugin is missing or changed.Confirm plugin changes for the target version and install matching plugin versions before restore.

How snapshot and restore moves data into a new cluster

The flow starts on the source cluster, which writes snapshots to a shared repository outside both clusters' trust boundary. The new cluster, running the target version, registers the same repository and restores only the indices it needs. Snapshots are incremental and capture primary shards as they existed when the snapshot started, so writes made after that point are not in the snapshot. Validate the restored indices before clients switch, and plan the cutover window around the final delta.

Snapshot data moves through a shared repository into a new cluster, which is validated before the cutover.

Which indices a new OpenSearch version can read

Before you choose snapshot and restore, you need to know which indices the target OpenSearch version can read, because a snapshot restore only succeeds for indices the new cluster accepts. OpenSearch is wire-compatible with Elasticsearch 7.10 and can use indices created in Elasticsearch 6.0 through 7.10, so indices in that range are the ones most likely to restore cleanly. Anything older, or created by a version outside that range, will not be a safe candidate for a direct restore and needs either a reindex or a staged upgrade path first.

Start with an inventory. For every index in the source snapshot, record its creation version, its settings and mappings, and whether it is a system index. Confirm the creation version with the index settings on the source cluster rather than assuming it from the cluster's current version, since an index keeps the version it was created with through later upgrades. Then check the restore rules for your exact source and target versions in the OpenSearch migrate or upgrade docs and the snapshot restore documentation, because those rules govern which versions a snapshot can be restored into and any version-specific steps.

Sort the inventory into three groups: indices restored as they are, indices that need reindexing into a new index on the target cluster, and indices that need a staged path through an intermediate version. Make that decision per index, not per cluster, and record the reason for each one. The group that needs reindexing will also change your downtime plan, because those indices must be rebuilt and verified before applications can rely on them. Confirm these choices in a test restore before you schedule the production cutover.

Preparing an OpenSearch upgrade: repository, inventory and test cluster

A snapshot and restore upgrade only works if four things are ready before anyone touches production: a recoverable copy of the data, a complete picture of what the cluster holds, a record of what was customized, and a rehearsal on the target version. The cards below are the work products the team should have in hand before scheduling a cutover window.

Snapshot repository with access controls

Create a snapshot repository in storage you control, restrict who can write to and delete from it, and run a test restore into a scratch cluster before relying on it. Snapshots are incremental and capture primary shards as they existed when each snapshot started, so the restore point is only as current as your last successful snapshot. Confirm the repository is reachable from the new cluster's network and that its credentials are separate from the source cluster's administrators.

Snapshot docs

Inventory of indices and cluster objects

List every index, index template, component template, ingest pipeline, alias, security role, role mapping and installed plugin, with its version. Note which indices were created on older major versions, because index compatibility decides whether a restored index can open on the target version at all. Keep the inventory in version control so the cutover checklist and the test cluster are built from the same source.

Record of customizations and client connections

Document every custom plugin, script, synonym file, security configuration change and keystore setting, plus every application, log shipper, dashboard and scheduled job that connects to the cluster. Include endpoints, client library versions and authentication method for each. Restoring data does not restore these, so an unrecorded client is the most common reason a cutover looks successful but breaks a downstream workflow.

Target-version test cluster sized to production

Build a cluster on the target version with the same node roles, shard counts, plugins and security settings as production, and restore a recent snapshot into it. Size it on the production data volume and query load rather than a reduced sample, because restore time, heap pressure and query latency all depend on scale. Run representative queries, write tests and the client connections from the inventory against it, and record which changes were needed.

Written rollback owner and decision point

Name one person who can declare a rollback, the conditions that trigger it, and the time after which the team stops trying to fix forward. Write down what happens to writes accepted by the new cluster if the decision is reversed, because the old cluster will not contain them. Agree the decision point with the application owners before the window opens, so the call is made against a checklist instead of under pressure during the cutover.

Cutover sequence: snapshot, restore, verify and switch writes

This sequence moves an OpenSearch workload onto a new cluster with a verified copy of its data, while the source cluster stays available as a fallback until the new cluster is accepted.

  1. Take and confirm a source snapshot

    The operations team takes a snapshot of the source cluster into a repository that both clusters can reach, then checks the snapshot state before going further. Snapshots are incremental and capture the primary shards as they existed when the snapshot started, so the team should confirm that every index in scope appears in the snapshot with no failed shards. The output is a completed snapshot name recorded in the change record. Rollback point: none is needed yet, because nothing on the source cluster has changed.

  2. Register the repository on the new cluster

    On the new cluster, the team registers the same snapshot repository and confirms that it can list the snapshot created in the previous step. Repository access uses the storage credentials and network paths the new cluster will need, so the team should test read access from every node that may serve restore work. The output is a repository that reports the source snapshot as available. Rollback point: removing the repository registration leaves both clusters unchanged.

  3. Restore a test subset first

    The team restores a small, representative set of indices into the new cluster, chosen to include the index types that carry the most risk, such as indices with custom analyzers, k-NN fields or heavy aliases. Restore only checks the data format, so the team should confirm that each restored index opens and reaches a green or expected health state. The output is a list of restored test indices with their status. Rollback point: delete the test indices on the new cluster and retry with a different subset.

  4. Run index, mapping, query and security checks

    The engineers compare index settings and mappings between the source and the new cluster, run a fixed set of representative queries, and compare the results and response behavior. They also confirm that roles, tenants, users and audit logging behave as the access model requires, since security configuration is not restored with indices unless the team planned for it. The output is a signed-off test record listing any differences that need a fix. Rollback point: the new cluster can be rebuilt from its configuration and the snapshot without touching the source.

  5. Schedule a final snapshot and restore

    Once the test cluster passes, the team schedules a final snapshot to capture the latest data and restores it into the new cluster in full. The restore should be timed against a known write window, and the team should confirm which indices and aliases are included. The output is a completed final restore with all indices present on the new cluster. Rollback point: the source cluster keeps running and holds the authoritative data until writes are switched.

  6. Stop or redirect writes to the source

    The team stops ingestion or redirects writers so that no new documents reach the source cluster after the final snapshot point. Ingest pipelines, log shippers and application writers should be paused or pointed at a queue, and the team should confirm that the source document count no longer changes. The output is a documented write freeze with a timestamp. Rollback point: resuming writes to the source is possible, but any data written after the freeze will not exist on the new cluster and must be reconciled.

  7. Verify document counts and cluster health

    The team compares document counts per index between the source and the new cluster, checks cluster health and shard allocation on the new cluster, and confirms that aliases resolve to the expected indices. Any mismatch blocks the switch until it is explained. The output is a count reconciliation report with every index marked as matched or explained. Rollback point: if counts do not match, writes stay frozen on the source and the team investigates before switching.

  8. Switch clients and keep the source intact

    The team points clients, dashboards and ingest paths at the new cluster, resumes writes there and monitors errors and query behavior. The source cluster is not deleted, reconfigured or wiped at this point, and it stays intact until the business and operations owners formally accept the new cluster. The output is a written acceptance record that names the date the source may be retired. Rollback point: repointing clients back to the source remains available until acceptance, with any writes made on the new cluster reconciled manually.

How to handle writes during the cutover window

The simplest option is to stop all indexing and updates on the source cluster before the snapshot starts and keep them stopped until the restored cluster is serving traffic. Because nothing changes on the source during the window, there is no gap between what was snapshotted and what exists in production. The cost is that every write path, including ingest pipelines, log shippers, scheduled jobs and application code, is unavailable for the full duration of the snapshot, transfer, restore and cutover.

  • Write downtime: Writes stop for the entire period, so the duration scales with data volume and the time to snapshot, restore and validate.
  • Data risk: Low, because no write lands after the snapshot start. Any write that is attempted and fails must be retried or queued by the sender.
  • Producer behavior: Confirm that Logstash, Beats, OpenTelemetry Collector, application clients and other producers can buffer or retry without data loss for the whole window.
  • Verification: Confirm that the source is blocked at the right layer, for example at the ingest endpoint or the write alias, so no producer bypasses the stop.
  • Rollback path: Confirm that the source can resume writes quickly if the restore fails validation.

Ask your team to measure the real snapshot and restore times on a copy of your data before agreeing to this option.

Testing the new OpenSearch cluster before cutover and keeping a rollback path

Test the new cluster against real data before any client moves to it, and keep the source cluster intact until the new one is accepted. The most useful test starts by restoring the most recent production snapshot into a staging cluster running the target version. Restoring production data, rather than synthetic data, is what exposes mapping differences, analyzer changes and queries that behave differently on the new version. Replay a representative set of search queries, aggregations and indexing requests captured from production traffic, then compare hit counts, ordering, aggregation results and latency between the two clusters. Measure indexing throughput and heap use under the same load, because a result set that matches can still hide a performance regression.

Security settings need the same scrutiny as data. Confirm that the Security plugin configuration restored with the snapshot, or applied through your configuration management, produces the same roles, role mappings, document-level and field-level restrictions and tenant access on the new cluster. Test each identity backend your users sign in through, verify that TLS is enforced for node and client traffic with the certificates you intend to use in production, and confirm that audit logs are written and reach your log store with the fields your compliance team requires. Confirm the exact behavior of these features on your target version in the OpenSearch security documentation before writing test cases.

The rollback path is the reason the source cluster stays in place. Once the new version has written data, you cannot downgrade the cluster in place, so rollback means pointing clients back to the old cluster and accepting its last known state. Decide before cutover how long the source cluster will remain available and what counts as acceptance. Record every write that reaches the new cluster after cutover, for example by keeping the ingest pipeline or log shipper configured to write to both clusters or by keeping a replay queue, so those writes can be reconciled or replayed onto the old cluster if you roll back. Rehearse this sequence in staging and write down who makes the decision to roll back and on what signal.

What drives OpenSearch upgrade effort

This table lists the factors that lengthen a snapshot and restore upgrade, why each one adds work, and what to request in a written scope. Read each row as a question to answer before you ask for a quote, since most of these factors are only known after an inventory of your own cluster. The main takeaway is that the new cluster build, restore and test cycle scales with what you run on the old cluster, not with the OpenSearch version alone.

Effort driverWhy it lengthens the workWhat to ask for in a written scope
Data volume and snapshot durationRestore time and the final delta copy grow with the size of the indices, and snapshots are incremental but still must be taken and verified before cutover.A measured snapshot and restore timing from a test restore of your largest indices, plus the repository type and bandwidth assumed.
Indices needing reindexingIndices created in older Elasticsearch or OpenSearch versions may not be readable by the target version, so they must be reindexed or rebuilt before they can be used.An index inventory with creation version for each index, the list of indices to reindex, and the reindex method for each group.
Custom plugins and security configurationPlugins must match the target version, and security roles, tenants, identity backends and TLS settings must be recreated and checked on the new cluster.A list of installed plugins with version compatibility status, an export of security configuration, and who approves the access model.
Client and application dependenciesEach application, ingest pipeline and script that calls the cluster needs its endpoints, client libraries and query syntax checked against the target version.An inventory of connected applications and owners, client library versions, and a plan for how each client is repointed and tested.
Number of environments to testEvery environment that holds a copy of the data or the configuration, such as development, staging and production, adds a build, restore and test cycle.The environments in scope, whether each one gets a full data restore or a sample, and the test evidence expected from each.
Write-downtime toleranceA snapshot and restore cutover usually needs writes paused or captured while the final delta is restored, so a stricter tolerance requires more sequencing and validation.The maximum acceptable write pause, how buffered writes are handled during cutover, and the rollback point if the cutover fails.
Dashboards and alerting re-verificationSaved objects, visualizations, monitors and notifications may need to be exported, imported and checked separately from the index data.A list of dashboards, monitors and alert channels in scope, and a test checklist that confirms each one returns expected results.

How much does an OpenSearch upgrade cost and what does it need from us?

What drives the cost of a snapshot and restore OpenSearch upgrade?

The main drivers are the size and shape of your data, how many environments must be built and tested, and how much of the surrounding estate depends on the cluster. A cluster with a few small indices and simple clients is a very different job from one with many indices, custom mappings, ingest pipelines, alerting and Dashboards objects, and integrations with applications. Each new cluster you build, each snapshot repository you must reach, and each client or pipeline you must repoint adds work. Cost also rises with the number of compliance or change-control gates the upgrade must pass through. Ask any provider to break its quote into discovery, build of the target cluster, data movement, testing, cutover and handover so you can see which drivers apply to you.

How long does a snapshot and restore upgrade take?

Duration depends on how much data must be copied, how fast your snapshot repository and network are, how many indices need reindexing or compatibility work, and how many times the test restore has to be repeated before the team is satisfied. Snapshots are incremental, so the first snapshot is the largest and later ones are smaller, but the final restore into the new cluster still has to move the full dataset. Your own change windows and approval steps also set the calendar, not only the technical work. Ask for a timeline that separates test restores from the production cutover, and ask what happens if a test restore fails part way through.

What does our team need to provide for the upgrade?

Plan to provide access and owners before the work starts. The team typically needs administrative access to the current cluster and to the environment where the new cluster will run, plus a snapshot repository that both clusters can reach. You will also need a representative copy of data or a test restore window, a list of indices, index templates, roles, pipelines and Dashboards objects, and named owners for application clients, security and change approval. Confirm with your provider which of these are needed in your environment, and confirm who can approve production cutover and rollback.

Can an internal team run a snapshot and restore upgrade alone?

Often yes, if the team already operates OpenSearch and has someone who can read the compatibility notes for the target version, build a cluster from the supported install methods, and test restores under realistic load. The risk is less in the copy itself than in the parts nobody owns: client code that assumes old behavior, security roles that do not carry over as expected, and cutover timing that disrupts writes. A partner is useful when those gaps are unclear, when the team is short of time, or when the upgrade must be documented for an audit. Compare the effort of your own team against the written scope a partner would deliver, not against an hourly rate.

How does snapshot and restore effort compare with a rolling upgrade?

A rolling upgrade changes the existing cluster node by node, so the effort is concentrated in preparing that cluster and checking health between each step. A snapshot and restore upgrade needs a second cluster, a snapshot repository, test restores and a cutover plan, so it usually involves more build and testing work but gives you a clean target and a rollback path while the old cluster keeps running. Restore effort also grows with data volume because the data moves again. Snapshot and restore can make more sense when the jump is large, when the existing cluster is in poor health, or when you want a fresh deployment. The OpenSearch migration docs describe both methods, so compare them against your own constraints.

What should a fixed-scope quote for this upgrade include?

A fixed-scope quote should list the systems in scope, the target OpenSearch version, the build method for the new cluster, the number and type of test restores, the indices and applications covered, the cutover and rollback steps, and what is handed over at the end. It should also state the assumptions about your environment, such as access, data volumes and approval timing, and what changes would require a new quote. Ask whether the quote covers post-cutover checks, documentation and knowledge transfer. DeployOpen does not publish a price list, and a quote follows from the written scope.

What costs continue after the upgrade is finished?

Some costs are one-time, such as the build, test restores and cutover. Others recur. The new cluster needs compute, storage and snapshot repository capacity running alongside the old cluster until you decommission it, and the snapshot schedule and retention generate ongoing storage use. Your team will also keep patching the new version. OpenSearch versions receive bug fixes and security patches during maintenance, so budget for regular minor updates. Ask your provider whether support, upgrades and continuous testing are handled under a separate retainer after the project closes.

How DeployOpen scopes, delivers and supports an OpenSearch upgrade

DeployOpen approaches an upgrade by agreeing the cluster inventory, data and client impact first, then building the new cluster alongside the existing one and restoring snapshots into it for testing. Engagements are fixed-scope, with the scope, deliverables and timeline agreed in writing before work starts.

How we scope

  • Inventory every index, its creation version, mappings, aliases, templates and plugins on the current cluster.
  • Record which client applications, dashboards and ingest pipelines write to or read from the cluster and when.
  • Agree in writing the acceptable write downtime window, the cutover method and the rollback point before any build begins.

How we build

  • Stand up the target OpenSearch cluster in your infrastructure with node roles, shard allocation awareness and security settings matching production.
  • Confirm snapshot repository access from both clusters and take a fresh snapshot of the source cluster before restoring.
  • Restore into the new cluster, validate index versions and mappings, and run query and indexing tests against restored data.

How we hand over

  • Deliver a runbook covering the snapshot schedule, restore order, cutover steps, rollback steps and post-cutover checks.
  • Document the test results, index compatibility findings and any application changes needed for the new version.
  • Walk your platform, security and operations teams through the cluster configuration, access controls and audit logging.

How we support

  • Support the cutover window and monitor cluster health, restore progress and client errors during the agreed period.
  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Ask any support provider to confirm response expectations and coverage hours in writing before signing.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.