Logo

dev-resources.site

for different kinds of informations.

Setup Cross Cluster Replication for Data migration in Elasticsearch

Published at
11/3/2024
Categories
devops
technology
software
trending
Author
anshul_kichara
Author
14 person written this
anshul_kichara
open
Setup Cross Cluster Replication for Data migration in Elasticsearch

Cross Cluster Replication (CCR) is a powerful feature in Elasticsearch that facilitates seamless data migration and disaster recovery by allowing real-time replication of data from a remote source cluster to a target cluster. In this guide, weโ€™ll cover setting up CCR to migrate data from a Remote Cluster in Singapore to a Local Cluster in Mumbai. This step-by-step process involves configuring both clusters, creating follower indices, and monitoring the replication status. By the end, youโ€™ll have a reliable setup for cross-regional data replication, enhancing both data redundancy and accessibility across geographical locations.

Pre-requisites

Should have โ€œmanageโ€ cluster privilege on the local cluster
A license on both the cluster that includes cross-cluster replication.
In local cluster, all master nodes should also have a remote-cluster-client role. It must also have one data role and remote-cluster-client role.

Steps:
Establish trust between your clusters. This can be done in two ways: API key or TLS certificate authentication.
To setup API key authentication you may want to Enable the remote cluster server on every node of the remote cluster. In elasticsearch.yml specify the domain of your remote cluster (singapore)Cross Cluster Replication
Generate a certificate authority (CA) and a wildcard server certificate/key pair that would work on all nodes of your cluster. Mention the .p12 certification in your elasticsearch.yml.Cross Cluster Replication
Make sure to add the SSL keystore password to the Elasticsearch keystore to keep your password secure.
Restart the cluster.
For additional instructions, please refer to this document: API key authentication

You can check your cluster connection from Stack Management > Data > Remote ClustersCross Cluster Replication
Configure privileges by creating separate roles on the local and remote clusters, and then create a user with the required roles.

Finally create a follower index in your local cluster to replicate data from a selected index in the remote cluster.Cross Cluster Replication
Elasticsearch initializes the follower by transferring Lucene segment files from the leader index to follower, setting the index status to Paused, then switches to Active once replication is done.Cross Cluster Replication

Even if you add more data to the leader index, the follower will continue to replicate these updates as well.

Additional Considerations for CCR

Operational Continuity:It is not required to bring down connections or stop reads and writes in the Singapore cluster to set up Cross-Cluster Replication (CCR). You can perform CCR while the Singapore cluster continues to handle multiple reads and writes.
Replication Time: Replicating 1 GB of data typically takes around 1 minute from remote to local cluster.
Ongoing Replication: CCR continuously replicates data from the remote to the local cluster. As long as both clusters are operational, there should be no downtime. However, if thereโ€™s a network disruption or if either cluster experiences an outage, replication might temporarily pause until connectivity is restored.
Downtime during failover: If you have pre-configured your Mumbai cluster to handle writes as soon as a failover is triggered, then the downtime can be minimized or even eliminated entirely.

You can check more info about: Cross Cluster Replication for Data migration in Elasticsearch.

trending Article's
30 articles in total
Favicon
Data Privacy Challenges in Cloud Environments
Favicon
What Is SRE Support?
Favicon
Can Cloud Data Be Hacked
Favicon
How to Secure APIs in Microservices
Favicon
Dynamic Infrastructure Provisioning with Serverless DevOps
Favicon
What is Machine Learning? A Beginner's Guide to Understanding the Basics
Favicon
Securing Software Supply Chains with SLSA
Favicon
What is a Network Operations Center (NOC)
Favicon
Generative AI vs. Traditional AI: Key Differences and Use Cases
Favicon
How to Activate Virtual Environment in Python VS Code
Favicon
Ctrl+Shift+Epic : Deployment Strategies Unleashed
Favicon
Unlocking the Power of Database as a Service (DBaaS): A Comprehensive Overview
Favicon
Understanding OAI and OAC in AWS CloudFront: Concepts, Configuration, and Best Practices
Favicon
Modern Traffic Management with Gateway API in Kubernetes
Favicon
Implementing GitOps with ArgoCD
Favicon
Restoring a Backup Stored in S3 to an EC2 Instance Using XtraBackup
Favicon
AWS Firewall- Samurai Warriors
Favicon
Understanding COW and MOR in Apache Hudi: Choosing the Right Storage Strategy
Favicon
How to Create a Sitemap for a Website
Favicon
The Remaining Issues With Path Of Exile 2โ€™s Early Access Endgame - Forbes
Favicon
How to Use Generative AI for Video Production?
Favicon
Transforming Legacy Systems: Common Pitfalls and Best Practices
Favicon
Introduction to cloud data engineering with AWS
Favicon
Using Apache Flink for Real-time Stream Processing in Data Engineering
Favicon
Setup Cross Cluster Replication for Data migration in Elasticsearch
Favicon
Database Migration Service in AWS
Favicon
Tangle Free Robot Vacuum Cleaner with 2.4GWiFi/App/Alexa Control, Automatic Vacuum Robot Cleaner for Low Carpet Pet Hair
Favicon
Blocking Web Traffic With WAF In AWS
Favicon
Addressing the Rise of Cloud Security Threats: Best Practices for 2024
Favicon
Addressing the Rise of Cloud Security Threats: Best Practices for 2024

Featured ones: