Zero-downtime OpenSearch migration with Capture and Replay

Live search and logging traffic can move to self-hosted OpenSearch without a write freeze when capture, backfill, replay and validation are planned together. This page explains how each stage works and what drives the effort.

On this page

Zero-downtime OpenSearch migration with Capture and Replay: when a write freeze is not an option

Migration Assistant's Capture and Replay path makes low or zero downtime possible, alongside snapshot backfill. It fits teams whose search or logging clusters cannot stop accepting writes, such as a product search index that updates with every catalog change or a log pipeline that cannot drop events during a cutover. The effort is driven by three things: how much live traffic must be captured, how much historical data must be backfilled, and how thoroughly the team needs to validate that the target returns the same results. Traffic volume and the number of client applications sending it are usually the largest unknowns, so measure both before estimating anything with a partner.

The move is not a single switch. It runs on three data paths that operate in parallel and must be sequenced carefully. Backfill copies the existing indexes from a snapshot of the source cluster into the target. Capture records incoming requests from live clients through a proxy placed in front of the source cluster, so no write is lost while the copy runs. Replay sends the captured requests to the target so it catches up with the writes that arrived after the snapshot was taken. Each path has its own failure modes, and the team must confirm which source versions support Capture and Replay before committing to this approach, because Elasticsearch 1.x and 2.x and Apache Solr sources support backfill only.

Before the build starts, confirm the source version, shard sizes and index codecs. The Migration Assistant docs state that shards up to 80 GiB are supported by default and that snapshots of indexes using the zstd or zstd_no_dict codecs are not supported, so those indexes need a plan before the snapshot step. Review the Migration Assistant suitability guidance with your platform and data owners, then ask any implementation partner to show how they will verify replayed writes, handle clients that cannot be pointed at a proxy, and define the point at which clients switch to the new cluster.

What maps cleanly from the source cluster and what does not

This table compares the main source cluster capabilities with their OpenSearch equivalents and flags where Capture and Replay does not apply. Read each row as a planning question: if the answer is no or partial, the move needs a different path or extra work before cutover.

CapabilityMigration fitWhat to plan
Live client traffic (Capture and Replay)Available for supported sources only. Not available for Elasticsearch 1.x and 2.x or Apache Solr.Confirm the source version first. Sources outside Capture and Replay support need backfill only, with a planned write freeze.
Historical indices and documents (backfill from snapshot)Supported through snapshot-based backfill for the source versions Migration Assistant covers.Confirm the source version and snapshot repository access. Verify document counts on both sides after backfill.
Shard sizeShards up to 80 GiB are supported by default.Measure the largest shards before planning. Oversized shards need resizing or a different plan.
Snapshots using zstd or zstd_no_dict codecsNot supported.Check index codec settings on the source. Re-index affected indices or change the codec before the snapshot is taken.
Write and query API callsReplayed traffic depends on the request types the capture proxy records. Unsupported or custom endpoints need individual testing.Inventory the APIs your applications call. Test each one against the target during replay and record differences in responses.
Mappings and field typesUsually carried over with changes, but type handling differs between source and target versions.Compare mappings on the target before replay. Plan changes to fields and analyzers, then retest query results.
Client connections and endpointsRequires a change at cutover. Capture sits in front of the source, so clients must eventually point at the target.List every client, library and service with a cluster address. Plan a switch order and a rollback endpoint.

How capture, backfill and replay fit together during the move

The diagram starts with client traffic that keeps flowing through a capture proxy into the source cluster, so writes still land on the source during backfill. A snapshot-based backfill copies historical data into the target cluster, while the proxy's captured requests are replayed to the target to close the gap. Validation runs before clients are switched to the target OpenSearch cluster, so confirm that counts and query results match before cutover.

Live traffic, snapshot backfill and replay converge on the target before client cutover.

How the zero-downtime sequence runs, from inventory to decommission

The sequence moves live search or logging traffic to a new OpenSearch cluster in stages, with each stage closed by a written exit criterion so the source cluster is retired only after the target has proven it can serve the workload.

  1. Inventory indexes, query patterns and clients

    The client team lists every index, alias, index template, ingest pipeline and scheduled query on the source cluster, along with every application, script, dashboard and agent that reads or writes to it. For each client, the team records the request types it sends, its write volume and any version-specific API calls. DeployOpen works through the inventory with your application owners and agrees in writing which clients are in scope for the first cutover. The step is done when the inventory is signed off and every unknown client has an owner.

  2. Pilot the flow on a non-critical index

    Before touching production traffic, the team runs the full path on one low-risk index: Migration Assistant backfills it from a snapshot, captured requests are replayed against the target, and results are compared. The pilot shows whether mappings, analyzers, query syntax and client authentication behave as expected on the target version. Any defect found here is fixed in the tooling or configuration before it reaches a critical workload. The exit criterion is a pilot report that lists every mismatch and its resolution, accepted in writing by the data owner.

  3. Backfill historical data from snapshot

    The source cluster's data is captured in a snapshot repository, and Migration Assistant restores it into the target cluster as the bulk historical load. Indexes using the zstd or zstd_no_dict codecs cannot be snapshotted, and shards larger than the default supported size need a plan, so the team checks both against the inventory before starting. Backfill runs while the source keeps serving live traffic. The step closes when document counts per index match between source and target for the agreed snapshot point, and any gaps are explained.

  4. Start the capture proxy in front of the source

    A capture proxy is placed between the clients and the source cluster, so every incoming request is recorded and forwarded to the source unchanged. Clients keep working during this step, and the proxy adds the capture path without changing what users see. The team confirms that the proxy handles the authentication, TLS and request types used by each client, and that captured traffic is stored under the access controls agreed for the project, since requests can contain sensitive query text and data. The step is done when capture runs without errors for an agreed period and sample requests match what the source returned.

  5. Replay captured traffic against the target

    The captured requests are replayed against the target cluster in the same order and with the same timing the source saw. Writes replayed to the target keep it aligned with changes that happened after the snapshot point, which is what makes the cutover zero-downtime. The team compares each response from the target with the response the source gave, and sorts differences into expected changes, such as scoring or version-specific output, and defects. The step closes when the agreed replay window finishes and every defect class has a fix or an accepted explanation.

  6. Validate document counts and query results

    The team runs a fixed validation set against both clusters: document counts per index, sampled document comparisons, and a library of representative queries covering search, aggregation and filter patterns used by the clients. Results are compared against thresholds written into the validation plan before the run starts. Dashboards and alerting rules are checked separately, since they are not moved by the tooling. The step is done when every index passes the agreed criteria or has a documented, approved exception.

  7. Switch clients to the target cluster

    Clients are moved to the target one group at a time, starting with the pilot indexes and then the lower-risk clients from the inventory. Each switch uses the endpoint, alias or DNS change agreed in the cutover plan, with a documented rollback path back to the source. Error rates, latency and write success are watched after each group moves, and the next group only moves when the previous one meets its exit criterion. The step closes when every in-scope client reads and writes through the target.

  8. Run in parallel, then decommission the source

    The source cluster stays available in read-only or standby form for an agreed parallel run, so the team can compare results and roll back if a defect appears after cutover. The capture proxy and replay tooling are removed once the target has carried live traffic through the agreed period. The source is decommissioned only after the data owner signs off, the final snapshot is retained under the agreed retention policy and the rollback window has closed. The output is a closure report covering validation results, open items and the retention location of the final snapshot.

Choosing between backfill only and Capture and Replay

This is the situation where Capture and Replay is designed to apply. Migration Assistant offers a zero-downtime option through Capture and Replay alongside backfill from snapshot, so writes can continue while the team moves historical data and then replays captured live traffic against the target. The main trade-off is effort: the team must run a capture proxy in front of the source, keep the replay pipeline working, and compare results between clusters before switching clients. Consistency depends on how well the replayed requests reflect real writes, so the team should decide how it will handle documents written during the backfill window.

  • Downtime: Client traffic keeps flowing during the snapshot backfill and the replay, so the cutover is the only planned change point.
  • Consistency: Replay closes the gap between snapshot time and live writes, but the team must verify document counts and sample content on both clusters.
  • Testing effort: Validation of query and write responses is the largest workload, since the proxy is in the request path.
  • Ownership: Someone must own the proxy, its capacity and its security posture for the duration of the migration.

Confirm your source version, your write rate and whether your application tolerates replayed requests reaching the target in the same order they arrived.

Documented Migration Assistant components and export paths

OpenSearch documents several ways to move data and traffic into a self-hosted cluster. For a zero-downtime move, the Migration Assistant components work together, while the other methods suit different source versions and tolerance for write freezes. Confirm the supported source and target versions in the Migration Assistant docs before you plan anything.

Migration Assistant with snapshot backfill

Snapshot backfill copies the historical data of the source cluster into the OpenSearch target from a snapshot. It is the base layer of the move and runs before any live traffic is replayed. Check that your source version is on the supported list and that your largest shards fit within the default size limit, since shards up to 80 GiB are supported by default. Confirm that no index uses the zstd or zstd_no_dict codecs, because those snapshots are not supported.

Migration Assistant docs

Live capture proxy

The capture proxy sits in front of the source cluster and records incoming requests as they arrive, so writes made during the backfill are not lost. It is what makes the zero-downtime option possible. Confirm with the Migration Assistant docs which request types are captured and how captured traffic is stored, and plan the capacity and retention of that store before go-live.

Traffic replay into the target

The replay component sends captured requests to the OpenSearch target so that data written during the backfill reaches the new cluster. Replay has to finish catching up before validation starts. Ask how replay handles request ordering, failed requests and version-specific query differences, and test those behaviors against your own query set.

Capture and Replay source limits

Capture and Replay is not available for Elasticsearch 1.x and 2.x or Apache Solr sources. Those sources can only use backfill, which means a planned write freeze during cutover. Confirm this limit against the current docs before you commit to a zero-downtime plan, because it determines whether your migration can avoid downtime at all.

Rolling upgrades

A rolling upgrade replaces nodes one at a time in the same cluster, so the cluster stays online throughout. OpenSearch documents rolling upgrades from Elasticsearch 6.0 through 7.10 indices and from supported OpenSearch versions. It fits when the source is already on a compatible version and you do not need to change hosts or architecture. Plan it when the change is an in-place version step rather than a new cluster.

Snapshot, restore and remote reindexing

Snapshot and restore and remote reindexing are the other documented methods. Snapshot and restore moves data through a repository and usually requires writes to stop or be queued during the copy. Remote reindexing pulls documents from a source cluster through the API and suits smaller datasets or specific indices. Choose between them based on source version, volume, and how much write freeze the business accepts.

What the move leaves for your team: security, lifecycle and client changes

Migration Assistant moves the data and, within its documented scope, the index-level metadata, but it does not carry your access model, lifecycle rules, dashboards or client configuration across by itself. Treat each of these as a separate workstream with an owner and an inventory before the pilot starts, because a cutover that copies every document but leaves users unable to sign in, or indices that never roll over, will look successful in document counts and still fail in production. Confirm the exact list of what is and is not transferred against the Migration Assistant documentation for your source and target versions, since the boundary depends on the release you deploy.

Start with security configuration. Identity backends, TLS settings, roles, role mappings, document-level and field-level security rules, tenants and API keys must be recreated in the OpenSearch Security plugin on the target. Export the source roles and mappings, map each one to an OpenSearch role, and test with real user accounts through the planned SSO path before the switch. Index lifecycle policies follow the same pattern: an Elasticsearch ILM policy does not become an Index State Management policy automatically, so list every phase, rollover alias and delete action in use and rebuild them on the target, then confirm that new indices pick them up during the parallel run.

Dashboards and client changes are the last inventory. Saved objects in Kibana or OpenSearch Dashboards need an export and import path that you verify object by object, and any visualization that depends on a removed field or changed query behavior needs rebuilding. Applications, shippers and ingest pipelines hold endpoints, credentials, index names and certificate trust settings in config files, environment variables or secrets stores, such as the hosts or index keys in a Logstash or Beats configuration. Record each consumer, its owner and the change it needs, and test each one against the target while the source still serves live traffic.

What drives the effort and duration of a zero-downtime move

A zero-downtime move runs capture, backfill, replay and cutover in parallel, so the same few inputs set the scope of every stage. The cards below cover the factors that shape that scope, and the quote you receive should trace each one back to the written scope.

Source version and capture support

Capture and Replay is available only for supported source versions. Elasticsearch 1.x and 2.x and Apache Solr sources support backfill only, so a zero-downtime path does not exist for them and the write freeze required for backfill must be planned instead. Confirm the exact source version and distribution early, because it determines which path the whole project follows and whether the proxy can sit in front of your traffic.

Migration Assistant guidance

Data volume and shard sizes

Backfill time grows with the total data volume and the number of shards that must be moved from snapshot. Shards up to 80 GiB are supported by default, so any index with larger shards needs a sizing decision before the work starts. Ask for an inventory of index counts, shard counts and shard sizes, since oversized shards are a common reason a planned schedule changes.

Snapshot codec choices

Snapshots of indexes that use the zstd or zstd_no_dict codecs are not supported, so those indexes cannot be backfilled from snapshot as configured. Each affected index needs either a codec change before the snapshot or a different load method, and both add work. Audit index settings across the cluster, including templates that new indexes inherit, so the problem is not discovered during the backfill run.

Write rate and replay fidelity

The replay stage must reproduce captured traffic closely enough to bring the target to the same state as the source. The higher and more bursty the write rate, the more capture, replay and lag monitoring you need, and the harder it is to confirm that the target has caught up before cutover. Ask how the provider will measure replay lag, handle requests that fail on replay and document any differences in document state.

Client applications and their behavior

Every application or service that talks to the cluster adds configuration, testing and a switch step. Count the clients, the languages and SDKs they use, and whether they depend on version-specific query behavior, index naming or aliases. Clients that hold long-lived connections, cache endpoints or write through background jobs need their own cutover plan, because a proxy can only route traffic it sees.

Validation scope

Validation determines how long the team stays in parallel running and how much evidence the cutover decision rests on. Agree on what must match, such as document counts, index mappings, query results for key searches, and error rates, and on the threshold for each. A broader validation scope adds test queries, comparison tooling and review time, but it reduces the risk of switching clients to a target that is missing data.

What usually goes wrong during capture, replay and switchover

Why does replayed traffic produce different results from live writes?

Replay often diverges from live writes because captured requests do not carry everything the original cluster did at the time, such as timing, ordering across clients and the state of the cluster when each request ran. Before you trust a replay, run a parallel comparison: send the same operations to the source and the target, then compare document counts, index settings and sample query results for each index. Write down the acceptable difference per index before the run starts, so the team does not decide after the fact that a gap is acceptable. Treat any unexplained difference as a blocker until someone has traced its cause.

What happens to documents written while the snapshot backfill runs?

Documents written after the snapshot is taken are not in the backfill, so they must come from captured traffic or they will be missing on the target. Capture has to start before the snapshot is taken, and the replay must cover everything captured between the snapshot point and the switchover. Confirm the snapshot point and the capture start in your runbook, and check that the first replayed request falls in the expected window. Document-level checks on recently written indices, such as counting documents by a timestamp field, catch gaps that a total count can hide.

Will a snapshot with zstd compression restore into OpenSearch?

Snapshots of indexes that use the zstd or zstd_no_dict codecs are not supported by Migration Assistant, so backfill from those snapshots will fail or leave data out. Check the index codec settings on the source before you plan the backfill, using the index settings of each index. If zstd codecs are in use, plan a change to a supported codec on the source, or a reindex path for those indices, and test that path on a copy of the data. Do not discover this on cutover day, because the failure blocks the backfill and every later step depends on it.

Which client settings are usually forgotten at switchover?

Teams commonly miss the settings outside the search code: connection strings, TLS trust stores, credentials, index names and aliases, timeouts and retry logic, and scheduled jobs such as log shippers or ingest pipelines that still point at the old endpoint. Build an inventory of every client, service account, pipeline and dashboard that talks to the source before the cutover window. For each entry, record the owner, the setting that changes and the test that proves it works. A checklist reviewed by the application owners catches most omissions before they reach production.

How do you roll back if validation fails during switchover?

Rollback is only possible if the source cluster stays intact and writes can be routed back to it. Before the switchover, define the exit criteria in writing: which checks must pass, who signs off and the point after which rollback is no longer simple. Keep the source running and receiving writes until the criteria are met, and avoid deleting or modifying source indices during the validation window. Rehearse the rollback path on a non-production copy so the team knows the steps, the owner and the time it takes before the change window.

Can our own team run a zero-downtime migration without a partner?

Your team can run it, but the work is mostly validation and coordination rather than tooling. The main effort sits in the capture proxy placement, the backfill and replay runs, the parallel comparison, the client inventory and the rehearsed rollback. Ask any partner, including DeployOpen, for a written scope that lists each of these items with deliverables and acceptance checks, and compare it with your own plan line by line. The quote should follow from that scope, and you should confirm which environment, source version and data volume the scope assumes.

What should we confirm about the source version before planning replay?

Confirm the source engine and version first, because Capture and Replay is not available for Elasticsearch 1.x and 2.x or Apache Solr sources, which support backfill only. Also confirm the shard sizes against the default support limit of 80 GiB, and the index codecs in use. Ask the Migration Assistant documentation what it supports for your exact source and target versions, and record the answers in the migration plan. If your source falls outside the capture path, plan for a planned write freeze instead of a zero-downtime switch.

How DeployOpen scopes and delivers a Capture and Replay migration

DeployOpen plans, builds, tests and hands over Capture and Replay migrations inside the infrastructure you control, under a written scope agreed before work starts. Each phase ends with documented evidence that your team can review, so cutover decisions rest on validated results rather than on the plan alone.

How we scope

  • Inventory which live search or logging clients, indices and write paths must stay available during the move
  • Confirm source version and check that Capture and Replay applies, since Elasticsearch 1.x and 2.x sources support backfill only
  • Record shard sizes against the default 80 GiB support limit and flag indices using zstd codecs that snapshots cannot handle
  • Agree in writing the deliverables, acceptance criteria, cutover responsibilities and what your team provides

How we build

  • Deploy the capture proxy and Migration Assistant components in your environment, with access and TLS settings your security team reviews
  • Backfill historical data from snapshot, then replay captured live traffic against the target OpenSearch cluster
  • Test the target with replayed requests and compare results and document counts against the source before any client switch
  • Configure target security, including SSO, roles and audit logging, so replayed workloads run under controls you can review

How we hand over

  • Document the capture, backfill and replay runbooks, including rollback steps for the client switch
  • Provide validation reports showing what was compared, what differed and how each difference was resolved
  • Walk your operations team through cluster health checks, snapshot schedules and monitoring of the new cluster
  • Record configuration, versions and open risks so your team can repeat or audit the migration later

How we support

  • Support the cutover window and the period of post-switch monitoring as part of the agreed scope
  • Plan OpenSearch maintenance and patch intake against the release and maintenance policy in effect at handover
  • Offer ongoing support, upgrades and continuous testing as a retainer once the migration is complete
  • Confirm retainer terms, response expectations and service levels in writing before they apply

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.