Uni-directional recovery: failback when clusterA comes back
Elastic Cloud Hosted lets you manage and configure one or more deployments of the versioned Elastic Stack, hosted on Elastic Cloud. Availability This functionality is generally available and ready for production usage. Elastic Cloud on Kubernetes extends Kubernetes orchestration capabilities to allow you to deploy and manage components of the Elastic Stack. Availability This functionality is generally available and ready for production usage. This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes. Elastic Cloud Enterprise is a self-managed orchestration platform for deploying and managing the Elastic Stack at scale. Availability This functionality is generally available and ready for production usage. This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes. Self-managed deployments are Elastic Stack deployments managed without the assistance of an orchestrator. Availability This functionality is generally available and ready for production usage. This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.
ECH
Generally available
ECK
Generally available
ECE
Generally available
Self-managed
Generally available
When clusterA comes back, clusterB becomes the new leader and clusterA becomes the follower.
Set up remote cluster
clusterBonclusterA.JSON ### On clusterA ###PUT _cluster/settings{ "persistent": { "cluster": { "remote": { "clusterB": { "mode": "proxy", "skip_unavailable": "true", "server_name": "clusterb.es.region-b.gcp.elastic-cloud.com", "proxy_socket_connections": "18", "proxy_address": "clusterb.es.region-b.gcp.elastic-cloud.com:9400" } } } } }Existing data needs to be discarded before you can turn any index into a follower. Ensure the most up-to-date data is available on
clusterBprior to deleting any indices onclusterA.JSON ### On clusterA ###DELETE kibana_sample_data_ecommerceCreate a follower index on
clusterA, now following the leader index inclusterB.JSON ### On clusterA ###PUT /kibana_sample_data_ecommerce/_ccr/follow?wait_for_active_shards=1{ "remote_cluster": "clusterB", "leader_index": "kibana_sample_data_ecommerce2" }The index on the follower cluster now contains the updated documents.
JSON ### On clusterA ###GET kibana_sample_data_ecommerce/_search?q=kimchyTipIf a soft delete is merged away before it can be replicated to a follower the following process will fail due to incomplete history on the leader, see index.soft_deletes.retention_lease.period for more details.