RousselTMLEARNING

Article · Elasticsearch: from discovery to expertise

Cross-cluster search and replication

1. Why several clusters #

Isolate, bring closer, protect.

Architecture #

CCS and CCR between several clusters
  • Isolate data by region (sovereignty) or by team.
  • Limit the size of each cluster (simpler operations, contained failures).
  • Have a continuously fed standby cluster.

2. Cross-cluster search #

One query, several clusters.

Configuration #

PUT _cluster/settings
{ "persistent": { "cluster": { "remote": {
    "eu": { "seeds": [ "es-eu-01:9300" ] },
    "us": { "seeds": [ "es-us-01:9300" ] } } } } }

GET eu:logs-*,us:logs-*/_search
{ "query": { "match": { "message": "timeout" } } }
Good to know: Remote clusters must have compatible versions; security is configured with certificates or remote cluster API keys depending on the version.

3. Cross-cluster replication #

Copying continuously.

Replication #

PUT orders-follower/_ccr/follow
{ "remote_cluster": "eu", "leader_index": "orders" }

# suivre automatiquement les nouveaux index
PUT _ccr/auto_follow/logs
{ "remote_cluster": "eu", "leader_index_patterns": [ "logs-*" ], "follow_index_pattern": "{{leader_index}}-copy" }
  • The follower is read-only; in a disaster, it is turned into a regular index (_ccr/pause_follow, close, unfollow).
  • CCR complements snapshots but does not replace them: a deletion or logical corruption is replicated.
Good to know: Some features depend on the version and the license level (Basic, Platinum, Enterprise): check them in the documentation and on the Elastic subscriptions page before using them in production.

📄 Cross-cluster search and cross-cluster replication: multi-cluster Elasticsearch architectures →

My progress

  • ⏱ Estimated time : ≈ 4 min

Sign in to track your progress and take notes. Sign in

⭐ Rate this lesson

5.0 initial rating from the teaching team

Sign in to rate this lesson →

💬 Recent discussions about this course

Ask a question about this lesson →See all discussions about this course

Course Glossary

RBAC (Role-Based Access Control)

An access control method where permissions are assigned to specific roles (e.g., admin, reader) rather than directly to individual users.

Authentication

The process of verifying the identity of a user or system (e.g., login/password, tokens, biometrics).

Authorization

The process that occurs after authentication to determine if the entity has the necessary rights and privileges to access a resource.

API Key

A unique alphanumeric code used to identify, authenticate, and authorize access to an Application Programming Interface (API).

Architecture

The overall structural design of an IT system, defining its various components, their relationships, and the principles guiding its evolution.

Repository

A centralized storage location. This can refer to a source code repository (e.g., Git) or an artifact and binary repository (e.g., Harbor, Nexus, Arti...

Elasticsearch

A distributed, RESTful search and analytics engine capable of addressing a growing number of use cases, built on Apache Lucene.

Recommended Articles

Snapshot Lifecycle Management: automated backups, restore and disaster recovery

Protect Elasticsearch data: snapshot repositories (S3, GCS, Azure, file system), SLM policies wit...

The OpenSearch cluster in depth: nodes, shards and replication

Understanding how an OpenSearch cluster works inside: node roles, cluster manager election, shard...

Vector search and RAG with Elasticsearch: dense_vector, kNN, hybrid search and RRF

Build semantic search with Elasticsearch: embeddings, the dense_vector field, kNN search, semanti...

Mimir: the write path (distributor, ingesters, replication and HA deduplication)

How Mimir ingests metrics: remote_write, distributor validation and limits, hash ring, ingester r...

Administering distributed Splunk

Designing and administering a production Splunk platform: reference architectures, indexer cluste...

VictoriaMetrics cluster: vminsert, vmselect, vmstorage and multi-tenancy

The VictoriaMetrics cluster architecture: the roles of vminsert, vmselect and vmstorage, data dis...

Elasticsearch distributed architecture: node roles, shards, replicas and allocation

Understand how Elasticsearch works as a distributed system: node roles, master nodes and quorum, ...

Elasticsearch monitoring and troubleshooting: health, unassigned shards, JVM, hot threads and slow logs

Diagnose an Elasticsearch cluster: cluster health and CAT APIs, unassigned shards and allocation ...

Understanding the concept of score

The concept of score allows Elasticsearch to rank your documents by relevance during a search.

Support us

♥ SUPPORT US

Support RousselTM Learning

Courses, articles, labs and certificates stay free with no intrusive ads. A voluntary contribution, of any amount you choose, pays for hosting, lab environments and new content.

Contribute with PayPal Any amount · card or PayPal accountLearn more
QR code PayPal
Or scan this QR code with your phone

Thank you, every contribution counts!