When OpenSearch cross-cluster replication fits your recovery plan
Cross-cluster replication fits a self-hosted OpenSearch estate when one cluster is no longer an acceptable failure domain. The usual triggers are a requirement to keep serving users after losing a site, a need to place read-heavy search closer to users in another region, or a central team that must report across several clusters. The active-passive replication plugin covers the first two by copying selected indexes from a leader cluster to a follower cluster, where the follower's copies are kept current and are not written to directly by applications. Before you choose it, list which indexes must survive a site loss, how far behind the follower can be, and who has authority to start a failover.
Replicated data still needs its own backup and access design. Replication copies changes faithfully, so an accidental delete or a bad write on the leader reaches the follower too. Keep snapshots in a repository that is separate from both clusters and test restoring from them. Access also has to be planned on each side: the Security plugin's role-based access control, document-level and field-level security and audit logs are configured per cluster, so confirm that the follower enforces the same restrictions as the leader and that the account used for replication has only the permissions it needs. Record who can see replicated data in the second location, since that location may fall under different hosting or regulatory conditions.
The exact behavior depends on the OpenSearch version in use. Replication settings, failover steps and supported options can change between releases, and versions in maintenance receive bug fixes and security patches but no new features, so a capability your design relies on may not exist in the version you run. Confirm the version on both clusters, keep them aligned, and check the replication documentation for that version before you write a runbook. The OpenSearch releases page shows which versions are current and when each one leaves maintenance, which should inform how long your design will stay supported.
Three reasons teams replicate indexes between clusters
Teams usually replicate indexes for one of three reasons: recovering from a site failure, keeping data close to the people or systems that read it, or building one reporting view across several clusters. Each reason sets a different follower cluster role, so decide which one applies before you choose topology, scope and access controls.
Disaster recovery standby
Choose this when a second site must be able to take over reads or writes if the primary cluster or data center is lost. The follower holds copies of selected indexes that the replication plugin keeps in step with the leader. Check how far behind the follower can run and who decides when to promote it. Replication does not replace snapshots: a bad delete or corrupted document on the leader can flow to the follower too, so keep snapshot repositories and restore tests as a separate control.
Security docsData locality for regional users
Choose this when users or applications in another region need fast local reads, or when data must stay within a jurisdiction. The follower cluster sits near those users and serves queries from its own nodes. Confirm which indexes may leave the source site, which fields need masking before replication, and whether the follower's TLS and access roles match the leader's. Locality changes where data lives, so it also changes your audit and retention scope.
Central reporting across clusters
Choose this when several business units run their own clusters but leadership or security needs one set of dashboards. A central follower collects selected indexes from each source so reports run in one place. Agree on index naming, time zones and which team owns each source before you build dashboards on top of it. Reporting copies inherit the sensitivity of the originals, so give the central cluster the same role and field controls as the sources.
Standby is not a backup
Teams often assume a replicated follower is also a backup. A follower protects against losing a site, but it does not give you point-in-time history of earlier states once changes have propagated. Plan separate snapshot repositories, retention schedules and restore drills, and record which system is the recovery source for each index. Ask your team to name the restore path in writing before go-live.
How leader and follower clusters exchange index changes
The diagram starts with source indexes on the leader cluster, which sits in one trust boundary. The replication plugin on the follower side pulls changes across the network link between the two clusters, so the follower can serve reads or stand by for failover. A separate snapshot path writes backups to storage outside both clusters. Check where the trust boundary and the network link fall in your own environment before you approve the design.
Leader-to-follower index replication with a separate snapshot path.
Configuration options and when each fits
This table compares the decisions a team makes before configuring replication between OpenSearch clusters, with the situations where each option fits and what it changes in daily operations. Read each row as a question to settle with your recovery, locality and reporting requirements before any cross-cluster connection is created. Confirm exact setting names in the replication documentation for your OpenSearch version.
| Decision | Options | When it fits and what it changes |
|---|---|---|
| Which indexes replicate | Named indexes or a wildcard pattern | Named indexes suit a short, stable list of critical data and keep the blast radius small. Patterns fit log indexes that follow a naming convention, but they can pull in indexes nobody meant to copy, so review the pattern against the full index list. |
| Automatic follow of new indexes | Follow new matching indexes automatically, or add each index by hand | Automatic following protects indexes created after setup, which matters for daily log indexes. Manual addition gives a change-controlled list but leaves a gap for new indexes until someone acts, so it needs a review step. |
| Follower role: standby for recovery | Passive follower that receives changes and waits for failover | Fits disaster recovery where the follower stays closed to application writes until a planned failover. Your runbook must cover promotion, client redirection and failback, and you should rehearse them. |
| Follower role: local reads | Follower serves reads close to users in another region or site | Fits locality, where users or services in a second site need fast read access. Expect replication lag to be visible to readers, so define which queries tolerate delayed data. |
| Follower role: central reporting | Follower aggregates data from several source clusters for reports | Fits reporting and audit consolidation across sites. Check how the reporting cluster's capacity and access model handle data from many sources, and confirm index naming to avoid collisions. |
| Network path between clusters | Direct routed connection, VPN, or private link through a firewall | A direct path is simplest but must be opened only for the required ports and sources. A VPN or private link adds an encrypted tunnel and its own availability and key management. Confirm the connection requirements in your version's documentation. |
| Certificates and trust | Mutual TLS with a private certificate authority, or an existing enterprise CA | Using an existing enterprise CA fits organizations with certificate lifecycle controls. A private CA is easier to isolate but adds rotation work. Plan expiry dates and rotation for both clusters, because an expired certificate stops replication. |
| Replicating user or role | Dedicated replication user with a narrowly scoped role, or an administrator account | A dedicated user with only the permissions replication needs limits exposure and makes audit records clear. Using an administrator account is faster to set up but gives the remote path broad rights. Review the permissions required for your version and document them. |
| Credentials and rotation | Stored in the security configuration, or managed in an external secrets system | Storing credentials in a managed secrets system fits teams with existing rotation policies. Whichever you choose, schedule rotation of the replication user's password or certificate and test that replication recovers after the change. |
Setting up OpenSearch cross-cluster replication step by step
This sequence takes a leader and a follower cluster from version checks to verified, replicated indexes, with a check at each stage so the team knows when it can move on. It produces a working active-passive replication link that the operator has tested before relying on it.
Confirm versions and plugin availability
Before any configuration, confirm that both clusters run versions that the replication plugin supports together, and that the plugin is installed and enabled on the leader and the follower. Check the exact compatibility matrix in the version-specific documentation for your release, since the supported version pairs change between minor releases. Also confirm that the index mappings and settings you plan to replicate are compatible with the follower version. The step is complete when the plugin appears in the node plugin list on every node of both clusters and the version pair is recorded in your change ticket. Consult the version-specific docs for the exact commands to list plugins on your release.
Establish trusted TLS and network connectivity
Open the required network path from the follower cluster to the leader cluster's transport port, and confirm that each cluster trusts the certificate authority that issued the other's node certificates. Work with your network and security teams to document which firewall rules, routes and DNS entries are needed, and which certificate chain each side will present. Test connectivity from a follower node to a leader node before continuing. The step is complete when a TLS handshake succeeds in both directions and the connection test returns without certificate errors. Confirm exact port settings and certificate parameters in the security documentation for your version.
Create the replication user and roles on the leader
On the leader cluster, create a dedicated user and a role that grants only the permissions the follower needs to read the chosen indexes and their metadata. Keep the role narrow, scoped to the index patterns you plan to replicate, and avoid granting cluster-wide admin rights. Map the user to the role and record the credentials in your secrets store rather than in configuration files. The step is complete when a test authentication with the replication user succeeds and a read request against an in-scope index is allowed, while a request against an out-of-scope index is denied. Confirm the required cluster and index permissions in the security documentation for your release.
Configure the follower connection to the leader
On the follower cluster, register the leader as a remote cluster using a connection alias and the leader's seed or transport addresses. Configure the follower to authenticate with the replication user, and confirm that the connection is recorded as connected in the cluster settings. Use a consistent alias name across environments so that replication requests and dashboards refer to the same source. The step is complete when the remote cluster status for the alias reports connected from every follower node that will carry replication traffic. Consult the version-specific docs for the exact settings keys and the authentication options available in your release.
Start replication for the chosen indexes
Start replication on the follower for each index you selected, using the connection alias and the leader index name. Replication creates the follower index, copies existing data, and then follows new operations from the leader. Start with one non-critical index so the team can observe the initial sync and resource use before adding the rest. Record the start time and the index settings the follower applies. The step is complete when each started index reports an active replication status and the follower index exists with the expected name. Consult the version-specific docs for the exact request format and any options that control how replication starts.
Verify document counts and index health
Compare document counts between the leader index and the follower index after the initial sync has finished, and confirm that the difference stays within the lag you expect while writes continue. Check the health of both clusters and the replication status for each index, and review the follower's logs for repeated authentication, connection or mapping errors. Run a sample query against a known document on both sides and compare the results. The step is complete when counts converge, the replication status is active without errors, and cluster health on both sides is green or yellow for the expected reasons. Document the counts and the timestamps you checked so that later comparisons have a baseline.
Test failover and record the runbook
Before relying on the link for disaster recovery, rehearse the procedure that promotes or redirects traffic to the follower. Pause replication on a test index, confirm that the follower index becomes writable under your change process, and walk through how applications would switch their endpoints. Write these steps, the owners of each step and the rollback path into a runbook, and schedule a repeat of this test whenever the cluster versions change. The step is complete when the rehearsal produces the expected state, the runbook has been reviewed by the operations team, and the results are stored with the change record. Confirm the exact pause, resume and failover commands in the documentation for your version.
Trade-offs to weigh before you enable replication
Replication buys a second copy of your indexes, and that copy has a price. The follower carries its own storage and compute, so every index you replicate is paid for twice in disk, memory and CPU. Bandwidth between sites is the second cost: replication traffic runs continuously across your inter-site link, so a link sized for user traffic may not absorb the initial sync of a large index set or a burst of writes. Ask your network team to measure the link at peak write volume before you choose which indexes to follow. The third cost is operational. Two clusters mean two upgrade cycles, two sets of patches, two sets of certificates and role mappings, and any drift between them can break replication or make a failover unpredictable. Plan for both clusters to follow the same release and configuration process from day one.
The largest risk is that replication copies mistakes as faithfully as it copies data. A bad mapping change, a mass delete or a corrupted index on the leader can reach the follower within moments, so the follower is not a backup. Replication is not a substitute for tested snapshots. Keep snapshot repositories on storage that is separate from both clusters, run restore tests on a schedule, and confirm that you can recover an index to a point before the bad change. Make the same check for the follower itself: a follower sized only for standby capacity may not handle production search or reporting load if you point users at it during an outage or for locality reads. Confirm its heap, disk and shard counts against the workload it would carry, and decide in advance which traffic it may serve and for how long.
Security controls for replicated data
Replication copies indexed data, and often the access rules around it, from one cluster to another. The controls below cover the transport, the identity that performs replication, the permissions that follow the data, and the audit and key lifecycle on both sides.
TLS on both paths
Encrypt traffic between the leader and follower clusters, and separately encrypt client traffic to each cluster. Both paths carry the replicated documents, so a gap on either one exposes the same data. Check that the certificates used for transport between clusters are issued by a CA your security team controls, and that hostname verification is enabled. Confirm the TLS settings that apply to your version in the Security plugin documentation.
Security plugin docsDedicated replication identity
Create a separate service user for replication instead of reusing an administrator or an application account. Grant it only the cluster and index permissions the replication documentation requires on each side, and no more. Record who owns the account, where its credentials are stored, and how it is removed when a replication pair is retired.
Roles that follow the data
Document-level and field-level security rules on the leader determine what a reader may see, so the follower must enforce the same restrictions or the data becomes visible somewhere it was not before. Map each leader role to its follower equivalent and test with a non-admin user. Confirm which replicated permissions and security metadata apply in your version, because support for carrying these settings varies by release.
Audit logs on both clusters
Enable audit logging on the leader and the follower, because a read of replicated data on the follower leaves no trace on the leader. Send both audit streams to storage outside the clusters they describe. Check which audit categories capture replication activity and actions by the replication user in your version, and set retention to match your review cycle.
Certificate and key rotation
Plan rotation for transport certificates, the replication user's credentials and any signing keys before they expire, not after an outage. Rotate one side at a time and confirm that replication resumes on the new certificates. Keep a written schedule, a rollback plan and a test in a non-production pair that exercises the same steps.
Access to the follower
The follower index is read-only to ordinary users, which is a useful control, but administrators on the follower can still stop replication or change its settings. Limit who holds cluster admin rights on the follower, and alert when a replication task is paused, stopped or reconfigured. Confirm with your platform team how these changes appear in audit records.
Operating replicated clusters by environment
In a disaster recovery design, the follower cluster exists so that the business can resume after the leader site is lost. The follower must stay current enough to be useful, and the team must know that failover and failback work before an incident forces the question. Monitoring should focus on replication health and lag for each followed index, on the follower's cluster health, and on the state of the replication tasks, so that a stalled or failed replication is visible long before anyone needs the copy.
- Replication lag alerts: Alert on lag for every followed index, not only on the cluster as a whole, and agree with the business what lag means in practice.
- Follower readiness checks: Confirm capacity, certificates, and access paths on the follower on a schedule, because a follower that is never exercised tends to drift.
- Failover runbook: Document the steps to stop replication, make the follower writable for applications, and repoint clients, then rehearse them.
- Failback procedure: Plan how data written on the follower during the incident returns to the original site, including the direction of replication and the order of cutover.
- Routine ownership: Assign someone to review replication status, rehearse failover on a set cadence, and update the runbook after each platform upgrade.
Before relying on this design, confirm with the vendor documentation how the replication plugin behaves during a failover and what state it leaves behind.
In a locality design, the follower serves users or applications close to a region, so that reads do not cross a long network path to the leader. The main questions are whether the follower is truly read-ready for the workload, whether the latency gain is real for the users who matter, and whether the copy's lag is acceptable for what those users see. Monitoring should combine replication status with query latency measured from the user's region, not only from inside the data center.
- Latency measurement: Measure query response times from each target region against the leader and the follower, so the benefit is proven rather than assumed.
- Freshness expectations: Define which screens or APIs can tolerate replicated data that is slightly behind, and which must read from the leader.
- Read path routing: Confirm how applications choose between clusters, and check that failures in the nearby follower do not silently send traffic across the wide area network without notice.
- Capacity review: Check that the follower has enough headroom for local query load and for the replication traffic it receives.
- Routine ownership: Re-run latency and freshness checks after application changes, and review which indexes are followed as the data model evolves.
Ask the vendor which index settings and replication options affect what the follower can serve, and test with your own query patterns before committing to this design.
In a central reporting design, the follower gathers data from several source clusters so that analysts and reporting tools can query it in one place. This pattern puts more data, and more sensitive data, into a single cluster, so retention and access decisions carry more weight. Monitoring should track replication lag for each source, storage growth on the reporting cluster, and whether the data that arrives matches what the owners of the source clusters expect.
- Source coverage: Keep an inventory of which source indexes replicate to the reporting cluster and who approved each one.
- Storage growth: Watch disk use on the reporting cluster, since it accumulates data from every source and its retention can differ from the sources.
- Access reviews: Review roles and document-level or field-level restrictions on the reporting cluster on a set schedule, because replicated data may carry fields that the original cluster hid from some users.
- Retention alignment: Decide how long replicated data stays on the reporting cluster, and confirm that deletions on the source reach the copy as intended.
- Routine ownership: Assign a data owner to approve new replicated indexes and a security reviewer to check access and audit logging on the reporting cluster.
Check which audit events the reporting cluster records and where they are stored, and confirm the retention rules with your compliance team before data starts to flow.
Limits to confirm in your environment
Cross-cluster replication behaves differently depending on versions, index settings, deletes and failure handling, so each of these limits should be confirmed against current vendor documentation and a test cluster before the design is signed off. Treat every card as an open question until your own test shows the answer.
Leader and follower version pairs
Confirm which leader and follower OpenSearch versions the replication plugin supports together before you pick a target. Version skew between the two clusters is a common reason replication fails after an upgrade on one side. Check the supported pairs for each minor line you plan to run, and test the pair you intend to operate, including the upgrade order you will follow when one cluster moves ahead of the other.
Security docsReplicated settings and mappings
Find out which index settings, mappings and aliases replicate from the leader and which must be set on the follower by hand. Analyzers, custom settings and templates are frequent gaps, and a follower that differs from its leader can return different search results. Build a test index with your real mappings, replicate it, and compare the settings and query output on both sides.
Deletes and index closures
Document deletes, index deletions and closed indexes do not always propagate the way teams expect. Confirm how each action on the leader appears on the follower, and whether a closed or deleted leader index stops replication or leaves stale data behind. Your retention and deletion procedures, including any data protection or erasure obligations, depend on this answer, so test each case explicitly.
Failover and failback procedures
Write down how a follower is promoted to accept writes when the leader is lost, and how the original leader is later resynchronized and returned to service. Confirm whether the follower index can be made writable, how replication is stopped and restarted, and what happens to changes that were made on the follower during the outage. Rehearse both directions on a test cluster before you rely on them in an incident.
Bandwidth for initial and ongoing sync
The first sync copies existing data across the link, and ongoing replication sends every change afterward. Measure your index size and daily write volume, then test the link under realistic load to see how long the initial copy takes and whether ongoing changes keep pace. Ask how the plugin throttles transfers, and whether you can limit replication traffic during business hours without falling behind.
Plugin availability in your distribution
Confirm whether the replication plugin ships in the distribution and version you will install, and whether it is enabled by default in your packaging method. Installs from containers, Helm charts, the Kubernetes operator, packages and tarballs can differ, so check each one you plan to use. Record the exact plugin version in your configuration management so both clusters stay aligned during upgrades.
Installation docsQuestions buyers ask before hiring help with replication
What drives the cost and effort of a cross-cluster replication project?
The biggest drivers are the number of clusters involved, how many indexes must replicate, the data volume and change rate, and the network path between the two sites. Replication also depends on the security model: each side needs its own roles, TLS trust and access rules, and those must match what the source and target clusters already enforce. Cost is split between the engineering work (design, configuration, testing, failover runbooks) and the infrastructure you pay for, such as the second cluster and inter-site bandwidth. Ask for a quote that lists each cluster, index pattern, failover scenario and test you expect to be covered, because those items set the scope.
Can our internal team build cross-cluster replication without outside help?
Yes, a team with solid OpenSearch administration experience can build it, provided it has time to design, test and document the setup. The hard parts are not the configuration keys alone. They are deciding which indexes replicate, how the follower side handles writes and failover, how security roles are mirrored, and how the team proves recovery works under load. Teams that have not run a second cluster often find the testing and runbook work takes longer than the initial setup. An outside partner can take on the design review, build and failover tests so your engineers keep ownership of operations.
How long does a typical scoped replication build take?
The duration depends on the number of clusters, the replication pattern, and how much of the security and failover testing is included. A typical scoped build moves through discovery and design, a lab build, integration with identity and network controls, failover and failback testing, and handover with documentation. Each phase has its own exit criteria, and the written scope should name them with dates agreed by both parties. Ask any provider to show the phases and what each one delivers, rather than accepting a single overall number without that breakdown.
What does the replication project need from our infrastructure and security teams?
Infrastructure teams need to provide the second cluster hosts or Kubernetes capacity, network routes and firewall rules between sites, DNS or endpoint naming, and storage sized for the target. Security teams need to approve TLS certificate authorities, service account and role design, identity provider integration, and how replicated data is classified across sites. Both teams should review the data residency and transfer rules that apply to each index before anything replicates. Agreeing these owners and approval steps at the start prevents most delays later in the project.
How is cross-cluster replication different from snapshots for recovery?
Replication keeps a second cluster continuously close to the first, so it can serve reads or take over quickly, while snapshots are point-in-time copies stored in a repository that you restore when needed. Replication copies changes as they happen, which means a bad delete or corrupted document can reach the follower as well. Snapshots let you go back to an earlier state but usually take longer to bring back online. Most production designs use both: replication for locality or fast failover, and snapshots for protection against logical errors and for longer retention.
What ongoing support does the replicated cluster need after go-live?
After go-live, the clusters need monitoring of replication lag, certificate rotation, version alignment during upgrades, and periodic failover tests. Each OpenSearch version is maintained for a limited period, and the releases page explains that versions receive bug fixes and security patches during maintenance but no new features, so both clusters must be kept on supported versions. Ask for a support plan that covers who watches lag alerts, how upgrades are sequenced across the two sites, and how often failover is rehearsed. DeployOpen offers ongoing support and continuous testing as retainers, which can be scoped alongside the build.
How DeployOpen scopes and delivers replication work
DeployOpen plans, builds, tests and documents OpenSearch cross-cluster replication inside your own infrastructure, using the active-passive replication plugin. Each engagement starts from a written scope that sets which indexes replicate, where the clusters run, and how the security and recovery tests will prove the result.
How we scope
- Inventory the source and target clusters, versions, node roles and the indexes that need replicating.
- Agree which data leaves each site, and which access controls, TLS settings and audit logs apply to it.
- Define recovery objectives with your team, plus the failover roles, approvals and communication steps.
How we build
- Configure the replication plugin and the security roles on both clusters, following the agreed design.
- Test replication lag, index follow behavior and failover and failback on a non-production copy first.
- Run security checks on the replication path, including certificates, credentials and cross-site network rules.
How we hand over
- Deliver the design, configuration, runbooks and failover procedure in documents your operators can maintain.
- Walk your platform and security teams through a supervised failover test and record the results.
- Provide retest results and a list of open items agreed in writing before the engagement closes.
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- Ongoing upgrades, patching of the OpenSearch versions and periodic failover testing are available as a retainer.
- Ask any partner for the quote breakdown, the named responsibilities and the support terms in writing before you sign.

