Cross-cluster replication takes a handful of API calls. The risk sits in the prerequisites, and in the settings you change when you aren't sure.
The API part of our proof of concept took an afternoon. The prerequisite list took weeks. This post is that list, plus every setting we touched and what it costs to get wrong.
Prerequisites
- Subscription. CCR is a paid feature in Elastic's distribution. Confirm your tier covers both clusters.
- Versions. The follower cluster must run the same or a newer version than the leader, down to the patch level. Any minor version works within a major. Across majors, an 8.x follower can follow a 7.17+ leader, a 9.0 follower can follow 8.18+, and 9.1 or later can follow 8.19+. In a two-stream design, each cluster follows the other, so in practice both run the same version.
- Soft deletes on every leader index. They are on by default for indices created on 7.0 or later. Older indices without them must be reindexed before they can lead.
- Remote cluster connectivity. Follower nodes must reach the leader's transport layer (sniff mode, using seed nodes) or a single proxy address (proxy mode). Nodes also need the
remote_cluster_clientrole. It is a default role, but clusters with an explicitnode.roleslist often leave it out. - Trust between clusters. We used the same TLS certificates on both clusters, so the remote connection worked without separate credentials. Newer versions also offer API-key based remote cluster security.
- Replication users and roles on both clusters, with least privilege, unless certificate trust covers you.
- WAN capacity. Remote recovery copies whole segment files between datacenters.
The settings we touched, and the risk of guessing
| Setting | Why you touch it | Risk if you guess |
|---|---|---|
cluster.remote.<name>.seeds / mode | Defines the remote cluster. Dynamic, no restart. | Seeds pinned to node IPs break when nodes are replaced. Prefer DNS names or proxy mode. |
index.soft_deletes.retention_lease.period | How long a follower can be offline and still catch up. Default 12h; we set 24h in the index template. | Longer means the leader keeps more history: more disk and merge work. Shorter means more full re-copies after outages. |
Follower read and write parameters (max_read_request_operation_count, max_outstanding_read_requests, max_write_buffer_count, max_write_buffer_size) | Catch-up throughput. We raised the write buffer. | Follower heap pressure, and bursts of read load on the leader. |
ccr.indices.recovery.max_bytes_per_sec | Throttles remote recovery for new followers. | Too high saturates the WAN and leader disks in business hours; too low stretches the initial sync. |
indices.lifecycle.poll_interval | We lowered it in testing to watch ILM steps quickly. | Extra work for the master. Put the default (10m) back in production. |
index.number_of_replicas on the follower | The follower's replica count is local; replica changes on the leader don't replicate. | A DR copy with no replicas is one node failure from red. |
If the cluster is already live
- Indices without soft deletes can't lead. Reindex into new indices and cut over with an alias. Budget disk for both copies, plus a write freeze or a catch-up plan.
- Static settings close indices. Changing a static (non-dynamic) index setting requires closing the index. On a leader, a static change that the follower needs makes the follower close itself, apply it and reopen, which pauses both reads and replication on the DR side.
- Existing indices need explicit followers. Auto-follow handles only new indices, and creating a follower fails if an index with the same name already exists on the target. If the DR cluster already holds copies from snapshot restores, those have to go first, so the first CCR sync is a full copy.
- Role changes mean restarts. Adding
remote_cluster_clientto nodes with dedicated roles takes a rolling restart. - The initial sync is a project. Following thousands of indices is a scheduled, throttled operation. Watch it with
_cat/recovery, where remote recoveries show up as typesnapshot.
The minimal sequence
# On the follower cluster: define the remote PUT _cluster/settings { "persistent": { "cluster": { "remote": { "east": { "seeds": ["east-seed-1.example.internal:9300"] } } } } } GET _remote/info # Follow one existing index PUT /orders_east_202311/_ccr/follow { "remote_cluster": "east", "leader_index": "orders_east_202311" } # Follow every future index that matches PUT /_ccr/auto_follow/from_east { "remote_cluster": "east", "leader_index_patterns": ["orders_east_*"] } # Check GET /_ccr/stats GET /*/_ccr/info One habit from the proof of concept: define both remote clusters and both auto-follow patterns on both clusters, even though each cluster strictly needs only its own. Part 6 explains why that symmetry saved us.
Risks and precautions
- Test every setting on a staging pair with a production-sized index count. Behavior at 20 indices tells you little about 2,000.
- Write down every non-default setting and apply it to both clusters through templates and config as code. CCR doesn't carry cluster settings or templates.
- Size the retention lease to your longest plausible outage, then budget leader disk for it.
- Throttle remote recovery and run the first sync off-hours.
- Plan your upgrade path before you replicate. The version rules decide it (Part 8).
Part 3 of 8 in Elasticsearch Replication & DR Field Notes . Previous: Part 2, the two-stream architecture. Next: Part 4, Alias or Index Pattern?


