Upgrading OpenSearch clusters that use cross-cluster replication

When clusters replicate to each other, the upgrade order, replication pauses and follower checks decide whether the move is routine or an outage. This page sets out the order and the work it needs.

On this page

Why cross-cluster replication changes the OpenSearch upgrade order

If your self-managed OpenSearch estate has one cluster whose indexes are followed by another, the order of node restarts is no longer a free choice. Cross-cluster replication is active-passive: follower indexes on the follower cluster pull changes from the leader index on the leader cluster. For one-way replication, the documented order is to upgrade the follower cluster first and then the leader cluster. Reversing that order is the mistake to plan out before any work starts, because the follower is the side that has to keep pulling data while the leader changes underneath it.

Bidirectional setups do not fit that pattern. If each cluster leads some indexes and follows others, there is no single cluster that can go first without interrupting replication in one direction. Before you touch a node, map every replication pair in both directions, list which cluster is leader and which is follower for each index pattern, and confirm with your team how long each direction can be paused. This inventory is the input to the upgrade plan, and it is easier to build now than to reconstruct during a maintenance window. The _plugins/_replication APIs in the replication plugin documentation are the place to confirm the current state of each pair.

Whatever the replication topology, the supported path is a rolling upgrade between adjacent major versions. Each cluster must be on a version that can be rolled to the next major, so confirm the current version on every node and the target version before scheduling anything. Write down the pause, verify and resume steps for each replication pair, the owner of each step, and the rollback position if a follower fails to catch up. Set this plan before any node is restarted. The OpenSearch rolling upgrade documentation is the source to check against your versions.

Which release changes affect a replicated upgrade

This table compares the release facts that shape a replicated upgrade, including maintenance policy, end-of-life dates, minor release cadence and the rolling upgrade order. Read each row as a question to answer for your own version pair before you schedule the leader and follower restarts. The main takeaway is that release policy sets when you must upgrade, while the replication topology sets the order you upgrade in.

Release changeImpact on replicationAction needed
Maintenance policy: bug fixes and security patches onlyReplicated clusters on a maintained version receive fixes without new features, so the replication setup itself should not need redesign.Confirm your current minor version is in maintenance and plan patch windows that follow the leader-then-follower order.
Maintenance window: until the next major enters maintenance or 1 year passes, whichever is longerA version can stay in maintenance for a long time, so both clusters may remain on it while a planned upgrade is delayed.Record the end-of-maintenance date for each cluster and keep both leader and follower on versions that are still maintained.
Version 1 end of life on May 6, 2025Any leader or follower still on version 1 receives no further fixes, and replication between a version 1 cluster and a newer cluster needs a planned path.Check the version 1.x to 2.x upgrade page before changing either side of the replication link.
Version 2 maintained through the 4.0 GA releaseVersion 2 clusters stay supported until 4.0 reaches general availability, which sets a planning horizon for two-cluster upgrades.Confirm the current end-of-maintenance state on the releases page and schedule the 2.x to 3.x or later move with both clusters in mind.
Minor releases about every eight weeksFrequent minor releases mean the two clusters can drift apart in version if patches are applied to one side only.Keep leader and follower on the same minor version where possible and track each upgrade in the same change record.
Rolling upgrades from supported earlier versions onlyReplicated clusters must move one major version at a time in the rolling path, so a multi-major jump requires a different method.Confirm each step against the rolling upgrade documentation and use snapshot and restore or Migration Assistant when a jump is larger.
Unidirectional replication: follower first, then leaderThe follower is upgraded first, so the leader stays on the older version while the follower runs the newer one during the window.Write the upgrade order into the runbook and verify that the follower's version can still read the leader's data before you start.
Version-specific breaking changesBreaking changes that affect replication settings, security plugins or API behavior differ by release and are not covered here.Read the upgrade page for each target version and confirm cross-cluster replication settings in a test environment first.

How to sequence a one-way replicated upgrade

This sequence upgrades the follower cluster first and the leader second, with replication paused during node restarts and resumed only after each side passes its checks. It ends with a verified, replicating pair on the new version and snapshots that stay available until the owners sign off.

  1. Inventory replication pairs and index patterns

    Record every leader and follower pair, the index patterns each pair replicates, and the OpenSearch version running on each cluster. Confirm the direction of every pair, because the follower-first order applies only to one-way links. Mark any bidirectional pair separately, since it needs its own plan. The output is a written map agreed with the owners of both clusters and the applications that write to leader indexes. Rollback point: none yet, because nothing has changed.

  2. Take snapshots on both clusters

    Take a snapshot of every index in scope on the leader and on the follower, stored in a repository that both clusters can reach and that sits outside the nodes being upgraded. Check that each snapshot reports success. Downgrades are not possible, so a snapshot restored into a new cluster is the route back if the upgrade fails. Test a restore on a non-production cluster before going further. Rollback point: the verified snapshots and the untouched clusters.

  3. Pause replication before any restarts

    Pause replication on every follower index in scope so that no node restart interrupts an active pull from the leader. Record each follower's status and last replicated position before pausing. Confirm that every follower reports paused, and check the leader's retention settings to confirm it keeps the operations needed to resume. Rollback point: if the upgrade is called off at this stage, resume the paired indexes, since neither cluster has changed yet.

  4. Upgrade follower nodes one at a time

    Upgrade the follower cluster node by node using the rolling upgrade procedure, starting the next node only after the previous one has rejoined. After each node, check cluster health and shard allocation until the cluster returns to its expected state, and review logs for join or plugin errors. Confirm that every node reports the new version before continuing. Rollback point: stop the sequence if a node will not rejoin, and restore the follower from snapshot into a new cluster while the leader stays on the old version.

  5. Resume replication and check follower lag

    With the follower on the new version and the leader still on the old one, resume replication for the paired indexes and watch follower status and lag until they settle. Confirm in the replication plugin documentation that this version pairing is supported before relying on it. Compare document counts and a sample of documents against the leader, and check that mappings and index settings match. Pause replication again before touching the leader. Rollback point: if lag does not settle or documents differ, keep replication paused and restore the affected follower indexes from snapshot.

  6. Upgrade leader nodes one at a time

    Upgrade the leader cluster with the same node-by-node procedure, with replication paused on all follower indexes. Before the first restart, confirm with the applications that write to leader indexes how writes will behave during the window, and hold writes if your design requires it. Check cluster health and shard allocation after each node, and confirm that every node reports the new version. Rollback point: if the leader cannot reach a healthy state, restore it from snapshot into a new cluster and keep the followers paused until the restored leader is verified.

  7. Resume replication and confirm the pair

    Resume replication on all paired follower indexes and confirm that each one returns to replicating with lag that settles. Compare document counts, sample documents and index settings across both clusters, and check that searches on the followers return the results the application owners expect. Record the verification results and keep the pre-upgrade snapshots until the owners sign off. Rollback point: until sign-off, the pre-upgrade snapshots remain the only route back, because downgrades are not possible on either cluster.

Bidirectional replication and why it needs a pause plan

With one-way replication, the order of upgrades is settled: the follower cluster is upgraded first, then the leader. With bidirectional replication there is no single follower-first order, because each cluster is a leader for some indexes and a follower for others. Whichever cluster you upgrade first, the other side is on the wrong end of a version boundary for part of the window. The team therefore has to make the decisions up front rather than during the change window.

Before the first node restarts, decide which side is authoritative for each replicated index during the upgrade. Then stop writes to the non-authoritative side, or pause replication in the direction that would carry changes across the version boundary. Pausing is a control you should exercise in a non-production copy first, so the team knows what the replication plugin does to in-flight changes and what state the follower indexes are in afterwards. Confirm the pause, resume and failure behavior for your OpenSearch version against the cross-cluster replication documentation and your own tests, not against assumptions carried over from one-way setups.

Write down how conflicts are handled before the window opens. Record who approves resumption, which checks must pass on each index (document counts, mapping and settings comparison, and sample queries against both sides), and what happens to writes accepted on the paused side while replication was stopped. Ask whether your design needs an application-level reconciliation step. The rolling upgrade guidance in the OpenSearch rolling upgrade documentation covers node-by-node health checks, but it does not replace a written plan for conflicting writes between two active clusters.

What to prepare before touching either cluster

Replication pairs fail during upgrades for reasons that are visible before the first node restarts. The cards below cover the backups, inventories, baselines, version checks, test topology and decision ownership that let you upgrade the follower and leader in the right order with a clear way back.

Verified snapshots on both clusters

Confirm that each cluster has a registered snapshot repository, a recent successful snapshot, and a restore that you have run in a test environment. A snapshot that has never been restored is an assumption, not a recovery plan. Check that the repository is reachable from both clusters after any network or credential change, and record which indexes each snapshot covers, including follower indexes. Plan for rollback by restoring, since downgrades are not supported.

Rolling upgrade docs

Inventory of replication pairs

List every cross-cluster replication connection, the leader and follower cluster names, and the index patterns each replication rule covers. Note which clusters appear as leader for one pattern and follower for another, because that shape decides whether the upgrade order can be a simple follower-first sequence. Record the seed nodes or connection settings used, so you can confirm after the upgrade that connections were re-established rather than assumed.

Replication model
Active-passive

Leader and follower lag baselines

Before the window, capture how far each follower index trails its leader during normal load, along with the replication status of each index. Use these baselines to judge whether replication has recovered after each restart. Record the peak write rate on the leader for the window, because a backlog that grows faster than followers can pull will not close on its own. Agree in advance what counts as acceptable lag.

Plugin and Dashboards version matching

Check that the replication plugin, security plugin and OpenSearch Dashboards on each cluster match the OpenSearch version you plan to run on that cluster at each step. Mismatched plugins are a common cause of connections that fail after a restart. Confirm the target versions in the release notes and the upgrade documentation, and build a matrix that shows which version each node runs at every stage of the window.

Test clusters that mirror the topology

Build a test environment with the same number of clusters, the same leader and follower roles, the same index patterns and a comparable data volume. Run the full sequence there, including any bidirectional links, pausing and resuming replication, and the post-upgrade checks. Use the results to time each step and to find ordering mistakes. A test that uses one cluster or empty indexes will not reveal lag or permission problems.

Named owner for go or no-go

Assign one person with authority to stop the window, and name the people who report on health, replication lag and security checks at each gate. Write down the conditions that trigger a no-go, such as a failed snapshot check, replication errors that persist after a restart, or lag above the agreed baseline. Include who approves pausing replication and who decides when to resume it, so no one has to make that call under pressure.

How the upgrade order moves through a one-way replicated pair

The sequence starts with a snapshot of both clusters, so there is a restore point before any node restarts. The follower cluster is upgraded first, because its follower indexes pull from the leader and must be verified before the leader changes. After the leader is upgraded, replication is resumed and verified. If any verification step fails, the path branches to a snapshot restore instead of pushing ahead.

Phase order for a one-way replicated pair, with the rollback branch to snapshot restore.

What makes a replicated upgrade take longer

This table compares the factors that change how long a cross-cluster replication upgrade runs and how much testing it needs. Read each row as a question to answer for your own clusters before you ask for a quote, because no duration can be set until these inputs are known and written into scope. The main takeaway is that topology and replication lag usually matter more than cluster size alone.

DriverWhy it changes effortHow to keep it down
Replication pairs and follower indexesEach leader and follower pair adds a pause, upgrade and verification step, and the number of follower indexes sets how many checks follow each restart.Consolidate replicated indexes where the design allows, and map every pair before scheduling.
Data volume and shard count per indexMore shards mean longer recovery after each node restart and longer catch-up for followers once replication resumes.Confirm shard counts and sizes with the client team before planning windows.
One-way versus bidirectional topologyOne-way replication has a fixed order (follower first, then leader). Bidirectional setups need a planned sequence for both directions and tighter control over write paths.Document which cluster accepts writes at each stage and confirm this with the application owners.
Custom plugins and security configuration on each sideDiffering plugin versions, roles, TLS settings or identity backends on leader and follower add compatibility checks and rework.Keep plugin lists and security configuration under version control and compare both sides before the window.
Cross-site network pathsLatency, bandwidth limits and firewall rules between sites affect how quickly followers catch up and how many retries occur during the change.Measure replication throughput and open-port rules between sites in the test environment first.
Time for replication lag to clearFollowers that fall behind during node restarts need time to catch up before they can be verified. Lag can persist after the upgrade completes.Agree a lag threshold in writing and monitor it during the test runs.
Number of environments that need testingEach environment (development, test, pre-production, production) repeats the sequence, and differences between them often generate extra rework.Use a test environment with the same topology and comparable data volumes where possible.

Running the upgrade with your team or with a partner

A team that has already completed a rolling upgrade of OpenSearch and has a non-production cluster with replication configured can usually run this upgrade internally. The team owns the order of operations, the health checks between nodes and the decision to pause replication. A partner is most useful here as a second reviewer of the plan rather than as the operator of the work.

  • Internal ownership: Keep the upgrade order, the replication pause and resume steps, and the go or no-go decision with the team that runs the clusters every day.
  • Rehearsal on a copy: Build a test pair of leader and follower clusters with the same index mappings, replication rules and node roles, then run the full sequence there first.
  • Independent plan review: Ask a partner to challenge the runbook for missed dependencies, such as Dashboards, snapshot repositories or client connection settings that point at the leader.
  • Documented outcomes: Record the start and end time of each step, the cluster health at each checkpoint and any replication lag observed.
  • Capacity question: Confirm with your team lead how many people can be on call during the window and whether a rollback path has been rehearsed.

Before the window opens, check that the rehearsal produced the same ordering and checkpoints as the production runbook.

What do buyers ask about upgrading replicated OpenSearch clusters?

How much does an OpenSearch cross-cluster replication upgrade cost?

The cost depends on the written scope, not on a list price, because DeployOpen does not publish one and a quote follows from the agreed work. The main drivers are the number of clusters and nodes in each replication pair, how many indexes and follower indexes are replicated, the number of environments (development, staging, production), whether the work includes a rehearsal on a copy of production, and how much testing and evidence the team needs afterwards. Ask for a quote that lists each cluster, each replication direction, the verification steps and any recurring support you want after the upgrade. Software licensing is not a cost driver here, since all OpenSearch software is released under the Apache License, Version 2.0 and the OpenSearch FAQ does not describe a paid edition.

How long does it take to upgrade clusters that replicate to each other?

Duration is set by the number of clusters, the replication direction, the data volume that must resynchronize, and the change windows your organization allows. Bidirectional setups and multiple follower clusters take longer because each cluster must be checked in the right order and replication must be paused and resumed safely. Your change calendar often matters as much as the technical work, so confirm freeze periods and approval steps early. A fixed-scope engagement sets the timeline in writing before work starts, so ask for the milestones, the rehearsal window and the production window as separate items in the proposal.

What does our team need to provide for the upgrade?

Your team should expect to provide access and assets that the work depends on. Typically this includes:

  • Administrative access to each cluster, its nodes and the hosting platform, within your infrastructure
  • Recent, verified snapshots of every cluster, stored in a repository you control, before any node is touched
  • Named owners for each application that writes to or reads from the replicated indexes, plus a decision-maker for go or no-go
  • Approved change windows, rollback contacts and an agreed way to pause replication
  • Current configuration, plugin lists and certificate details so the plan matches what is running

Confirm these items in the written scope, since missing access or unclear ownership is a common source of delay.

Can our own team run a replicated OpenSearch upgrade without a partner?

Yes, if your team has the skills and time to do it safely. The upgrade needs experience with OpenSearch cluster health, shard allocation, the replication plugin's pause and resume behavior, and rolling restarts. Teams that run it alone usually need a rehearsal environment, a written runbook covering the order of clusters, and checks between each step. Compare the internal effort, including staff time and the risk of a failed window, against a partner quote built from the same runbook. DeployOpen implements and documents self-hosted platforms inside your own infrastructure, so the work can be handed over with documentation your team keeps.

Can cross-cluster replication stay on during the upgrade?

It depends on the topology and the version pairing, so the answer has to be confirmed for your clusters before the window. For one-way replication, the documented order is to upgrade the follower cluster first and then the leader cluster, which is the basis of the plan. Cross-cluster replication is active-passive, with follower indexes pulling from the leader, so the follower's state matters during the leader's restart. Many teams pause replication for the affected pair, complete the upgrade, then resume and verify each follower index. Confirm with the current OpenSearch rolling upgrade and replication documentation whether replication can remain active for your exact versions.

How does rollback work when downgrades are not possible?

OpenSearch does not support downgrading a cluster once it has been upgraded, so rollback is a recovery plan, not a reversal. The usual protection is a verified snapshot taken before the first node restarts, plus a tested restore path into a new cluster at the previous version if needed. Ask the team to document the decision points where you would stop, the snapshot used, how replication would be paused or rebuilt, and who approves the restore. Restoring from snapshot is slower than a rollback, so the time it would take should be part of the rehearsal and the written scope.

How do we verify follower indexes after the upgrade?

Verification should confirm that each leader and follower pair is healthy, replicating, and up to date with the expected data. Check cluster health on every node, confirm replication status for each follower index, compare document counts and key queries against the pre-upgrade baseline, and watch for errors in logs during the first business cycle. Ask the team to write these checks into the runbook with expected results, so that sign-off is based on evidence rather than on the restart completing.

Does DeployOpen provide compliance evidence for the upgrade?

DeployOpen prepares systems, controls and evidence for compliance assessments, including records of the upgrade steps, snapshots, access used and verification results. It does not issue audit reports, attestations or certifications. Independent auditors and certification bodies make those determinations, so ask your assessor which records they expect before the work starts and include them in the written scope.

Official sources for the upgrade path

Start with the rolling upgrade documentation for the node by node procedure, then read the OpenSearch cross-cluster replication documentation for how leader and follower indexes, replication rules and the replication plugin behave during a restart. The rolling upgrade guide sets the baseline for health checks and shard allocation between nodes, and the replication guide shows what happens to follower indexes when the leader becomes unavailable. Read both before you write the change plan, because the ordering rules in this topic assume you understand how each side behaves when it restarts.

Confirm version-specific behavior against the release notes for your target version before you schedule the work. Replication settings, plugin compatibility and the handling of replicated indexes can change between minor and major releases, and the upgrade documentation is written for the current line. Check the notes for every cluster in the replication pair, since a mismatch in plugin or core versions between leader and follower can block replication even when the ordering is correct. Record the versions you confirmed in the change ticket so the rollback decision has a reference point.

Treat the documentation as the source for ordering and settings, and your own test environment as the source for timing. Build a replication pair that matches production topology, run the planned sequence there, and verify that followers resume and catch up after each step. Keep the vendor pages open during the rehearsal so any deviation can be traced to a documented step or flagged as an open question for the platform team.

How DeployOpen scopes and delivers replicated OpenSearch upgrades

DeployOpen plans cross-cluster replication upgrades as a written, fixed-scope engagement inside your own infrastructure. The work starts by mapping which cluster leads, which follows, and how each replication link is paused, verified and resumed before any node is touched.

How we scope

  • We map every leader and follower pair, replication direction and index pattern before agreeing the upgrade order.
  • The written scope names which clusters, nodes, plugins and Dashboards instances are in scope and which are excluded.
  • We record current replication lag, backup status and the health checks that will gate each step, so the scope is testable.

How we build

  • We rehearse the upgrade order in a non-production copy that mirrors your replication topology and security configuration.
  • We document the pause, upgrade, resume and verification runbook for each cluster, including the commands and checks used at each step.
  • We test bidirectional links separately, confirming how writes and conflicts behave during the window when one side runs a different version.

How we hand over

  • You receive the final runbook, the topology map, the rollback decision points and a record of each verification result.
  • We walk your platform and operations engineers through the follower checks so they can repeat them on later upgrades.
  • The handover confirms which post-upgrade checks your team owns and which evidence should be kept for change records.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after the engagement closes.
  • A retainer can cover the next minor or major upgrade so the replication order is reviewed against the newer release notes.
  • Confirm with DeployOpen during scoping which support hours, response paths and review cadence the written agreement includes.

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.