opensearch-docs-cn/_replication-plugin/index.md

24 lines
1.5 KiB
Markdown
Raw Normal View History

2021-09-30 19:10:28 -04:00
---
layout: default
title: Cross-cluster replication
nav_order: 1
has_children: false
redirect_from:
- /replication-plugin/
2021-09-30 19:10:28 -04:00
---
# Cross-cluster replication
2021-10-01 14:43:37 -04:00
The cross-cluster replication plugin lets you replicate indices, mappings, and metadata from one OpenSearch cluster to another. Cross-cluster replication has the following benefits:
- By replicating your indices, you ensure that you can continue to handle search requests in the event of an outage.
- Replicating data across geographically distant data centers minimizes the distance between the data and the application server, reducing expensive latencies.
- You can replicate data from multiple smaller clusters to a centralized reporting cluster, which is useful when it's inefficient to query across a large network.
2021-09-30 19:10:28 -04:00
2021-10-01 14:43:37 -04:00
Replication follows an active-passive model where the follower index (where the data is replicated) pulls data from the leader (remote) index.
2021-09-30 19:10:28 -04:00
2021-10-01 14:43:37 -04:00
The replication plugin supports replication of indices using wildcard pattern matching and provides commands to pause, resume, and stop replication. Once replication starts on an index, it initiates persistent background tasks on all primary shards on the follower cluster, which continuously poll corresponding shards from the leader cluster for updates.
2021-09-30 19:10:28 -04:00
2021-10-01 14:43:37 -04:00
You can use the replication plugin with the security plugin to encrypt cross-cluster traffic with node-to-node encryption and control access to replication activities.
2021-09-30 19:10:28 -04:00
To start, see [Get started with cross-cluster replication]({{site.url}}{{site.baseurl}}/replication-plugin/get-started/).