SlideShare a Scribd company logo
Replicate Elasticsearch
Data with Cross-Cluster
Replication (CCR)
Jason Zucchetto | Senior Product Manager
January 31, 2019
Jason Zucchetto
Senior Product Manager
Elastic
Housekeeping & Logistics
• Recording will be available following the webinar
• Chat via IRC #elastic-webinar
◦ #elastic-webinar @ Freenode
◦ Click "Join the Chat" link, create an IRC account
• Please select high resolution in the YouTube video player
4
Agenda
Elastic Stack Introduction1
CCR Use Cases
Demo
Additional Resources
Cross Cluster Replication (CCR) Overview2
3
4
5
5
Store, Search, &
Analyze
Visualize &
Manage
Ingest
Elastic Stack
SOLUTIONS
Elastic Stack
Kibana
Elasticsearch
Beats Logstash
SaaS SELF-MANAGED
Elastic cloud Elastic cloud
Enterprise Standalone
Solutions
Store, Search, &
Analyze
Visualize &
Manage
Ingest
Kibana
Elasticsearch
Beats Logstash
Elastic Stack
SaaS SELF-MANAGED
App Search Site Search Enterprise Search
FUTURE
Metrics APM
Business Analytics
Logging Security Analytics
7
Store, Search, &
Analyze
Visualize &
Manage
Ingest
Deployment options
SOLUTIONS
Elastic Stack
Kibana
Elasticsearch
Beats Logstash
SaaS SELF-MANAGED
Elastic Cloud Elastic Cloud
Enterprise Standalone
8
Cross Cluster Replication (CCR)
in Elasticsearch
99
Data Center 1
Data Center 2
Previous Cross Data Center Replication Strategies
Previous methods for replicating across Elasticsearch clusters / datacenters
● Double writes
● Middleware
● Snapshot / restore
Kafka
Snapshot / Restore
10
Cross Cluster Replication (CCR) in Elasticsearch
● High availability and disaster recovery
○ Across networks, data centers, or regions
● Content distribution / data locality
○ Elasticsearch clusters close to the application
servers
● Read-only cluster from regional source
clusters
○ Hub/spoke model, ad-hoc searches don’t require
ad-hoc cross-network communication
Replicate indices to one or more clusters
Cluster 1
Index A
Index A
Cluster 2
11
Cross Cluster Replication (CCR) in Elasticsearch
● Introduced as beta feature in
Elasticsearch 6.5
○ Short beta period (GA soon)
○ Get any feedback to ES team
■ github.com/elastic/elasticsearch
● Platinum level feature
○ Easy to test with 30 day trial (demo)
Replicate indices to one or more clusters
Cluster 1
Index A
Index A
Cluster 2
12
● Index based
○ Replicated index is read-only
● Pull based model
○ Follower asks the source for a
range of documents to replicate
○ Source cluster is unaware of its
followers.
● Many tunable options, e.g.
○ Number of operations
replicated per fetch (from the
follower)
Index B
Index A
Index B
...
...
...
Index A
Cluster 1 Cluster 2
Cluster 3
Cross Cluster Replication (CCR) in Elasticsearch
Replicate indices to one or more clusters
13
Cross Cluster Replication (CCR) Security
Security considerations for replicating between two Elasticsearch clusters
● Permissions requirements
○ Leader / source cluster
■ “read_ccr” cluster privilege
■ “monitor” and “read” index privileges
○ Follower / destination cluster
■ “manage_ccr” cluster privilege
■ “monitor”, “read”, “write”, and “manage_follow_index” index privileges
● Same security infrastructure as CCS
● Demo will not use security, to simplify demo setup
○ Demo can also use the built-in “elastic” user
14
Cross Cluster Replication (CCR)
Use Cases
1515
Production
Data Center
Disaster Recovery
Data Center
Leader
Follower
High Availability and Disaster Recovery
1616
Production
Data Center
Disaster Recovery
Data Center
Leader
Follower
High Availability and Disaster Recovery
1717
Central DCSingapore DC
Ireland DC
Canada DC
Leader
Follower
Data Locality
1818
Central
ReportingSingapore DC
Ireland DC
Canada DC
Leader
Follower
Centralized Reporting
1919
Central
ReportingSingapore DC
Ireland DC
Canada DC
Leader
Follower
Centralized Reporting
20
Cross Cluster Replication (CCR)
Demo
21
Cross Cluster Replication (CCR) Demo
● Use two local clusters of Elasticsearch
● Replicate a Metricbeat index from one cluster to another
● Become familiar with the CCR API
● Walk through the CCR Kibana Management UI
● API commands available in Github
22
Additional Resources
23
● Getting started with Cross Cluster Replication
○ https://www.elastic.co/guide/en/elastic-stack-overview/current/
ccr-getting-started.html
● Cross Cluster Replication APIs
○ https://www.elastic.co/guide/en/elasticsearch/reference/curren
t/ccr-apis.html
Additional Resources
24
Housekeeping & Logistics
• Recording will be available following the webinar
• Chat via IRC #elastic-webinar
◦ #elastic-webinar @ Freenode
◦ Click "Join the Chat" link, create an IRC account
• Please select high resolution in the YouTube video player
Thank You
● Web : www.elastic.co
● Demos: demo.elastic.co
● Products : https://www.elastic.co/products
● Forums : https://discuss.elastic.co/
● Community : https://www.elastic.co/community/meetups
● Twitter : @elastic
Questions?

More Related Content

PPTX
Elastic stack Presentation
Amr Alaa Yassen
 
PPTX
(Re)Indexing Large Repositories in Alfresco
Angel Borroy López
 
PPT
Logstash
琛琳 饶
 
PDF
Terraform Introduction
soniasnowfrog
 
PPTX
Discovering the 2 in Alfresco Search Services 2.0
Angel Borroy López
 
PPTX
Log management with ELK
Geert Pante
 
PPTX
An Introduction to Elastic Search.
Jurriaan Persyn
 
PDF
Elasticsearch
Hermeto Romano
 
Elastic stack Presentation
Amr Alaa Yassen
 
(Re)Indexing Large Repositories in Alfresco
Angel Borroy López
 
Logstash
琛琳 饶
 
Terraform Introduction
soniasnowfrog
 
Discovering the 2 in Alfresco Search Services 2.0
Angel Borroy López
 
Log management with ELK
Geert Pante
 
An Introduction to Elastic Search.
Jurriaan Persyn
 
Elasticsearch
Hermeto Romano
 

What's hot (20)

PPTX
ELK Stack
Phuc Nguyen
 
PDF
Disaster Recovery Plans for Apache Kafka
confluent
 
PDF
Credential store using HashiCorp Vault
Mayank Patel
 
PPTX
Centralized log-management-with-elastic-stack
Rich Lee
 
PDF
Kafka Streams: What it is, and how to use it?
confluent
 
PDF
ELK Stack
Eberhard Wolff
 
PPTX
Prometheus (Prometheus London, 2016)
Brian Brazil
 
PPTX
Log analysis using elk
Rushika Shah
 
PDF
Introduction to Kafka Streams
Guozhang Wang
 
PDF
Ozone and HDFS's Evolution
DataWorks Summit
 
PDF
Best Practices of Infrastructure as Code with Terraform
DevOps.com
 
PDF
Intro to Airflow: Goodbye Cron, Welcome scheduled workflow management
Burasakorn Sabyeying
 
PPTX
Kafka 101
Aparna Pillai
 
PPTX
Sizing your alfresco platform
Luis Cabaceira
 
PDF
What Is ELK Stack | ELK Tutorial For Beginners | Elasticsearch Kibana | ELK S...
Edureka!
 
ODP
Deep Dive Into Elasticsearch
Knoldus Inc.
 
PDF
Getting Started with Kubernetes
VMware Tanzu
 
PPT
OpenSearch
hchen1
 
PPTX
Elk
Caleb Wang
 
ELK Stack
Phuc Nguyen
 
Disaster Recovery Plans for Apache Kafka
confluent
 
Credential store using HashiCorp Vault
Mayank Patel
 
Centralized log-management-with-elastic-stack
Rich Lee
 
Kafka Streams: What it is, and how to use it?
confluent
 
ELK Stack
Eberhard Wolff
 
Prometheus (Prometheus London, 2016)
Brian Brazil
 
Log analysis using elk
Rushika Shah
 
Introduction to Kafka Streams
Guozhang Wang
 
Ozone and HDFS's Evolution
DataWorks Summit
 
Best Practices of Infrastructure as Code with Terraform
DevOps.com
 
Intro to Airflow: Goodbye Cron, Welcome scheduled workflow management
Burasakorn Sabyeying
 
Kafka 101
Aparna Pillai
 
Sizing your alfresco platform
Luis Cabaceira
 
What Is ELK Stack | ELK Tutorial For Beginners | Elasticsearch Kibana | ELK S...
Edureka!
 
Deep Dive Into Elasticsearch
Knoldus Inc.
 
Getting Started with Kubernetes
VMware Tanzu
 
OpenSearch
hchen1
 
Ad

More from Elasticsearch (20)

PDF
An introduction to Elasticsearch's advanced relevance ranking toolbox
Elasticsearch
 
PDF
From MSP to MSSP using Elastic
Elasticsearch
 
PDF
Cómo crear excelentes experiencias de búsqueda en sitios web
Elasticsearch
 
PDF
Te damos la bienvenida a una nueva forma de realizar búsquedas
Elasticsearch
 
PDF
Tirez pleinement parti d'Elastic grâce à Elastic Cloud
Elasticsearch
 
PDF
Comment transformer vos données en informations exploitables
Elasticsearch
 
PDF
Plongez au cœur de la recherche dans tous ses états.
Elasticsearch
 
PDF
Modernising One Legal Se@rch with Elastic Enterprise Search [Customer Story]
Elasticsearch
 
PDF
An introduction to Elasticsearch's advanced relevance ranking toolbox
Elasticsearch
 
PDF
Welcome to a new state of find
Elasticsearch
 
PDF
Building great website search experiences
Elasticsearch
 
PDF
Keynote: Harnessing the power of Elasticsearch for simplified search
Elasticsearch
 
PDF
Cómo transformar los datos en análisis con los que tomar decisiones
Elasticsearch
 
PDF
Explore relève les défis Big Data avec Elastic Cloud
Elasticsearch
 
PDF
Comment transformer vos données en informations exploitables
Elasticsearch
 
PDF
Transforming data into actionable insights
Elasticsearch
 
PDF
Opening Keynote: Why Elastic?
Elasticsearch
 
PDF
Empowering agencies using Elastic as a Service inside Government
Elasticsearch
 
PDF
The opportunities and challenges of data for public good
Elasticsearch
 
PDF
Enterprise search and unstructured data with CGI and Elastic
Elasticsearch
 
An introduction to Elasticsearch's advanced relevance ranking toolbox
Elasticsearch
 
From MSP to MSSP using Elastic
Elasticsearch
 
Cómo crear excelentes experiencias de búsqueda en sitios web
Elasticsearch
 
Te damos la bienvenida a una nueva forma de realizar búsquedas
Elasticsearch
 
Tirez pleinement parti d'Elastic grâce à Elastic Cloud
Elasticsearch
 
Comment transformer vos données en informations exploitables
Elasticsearch
 
Plongez au cœur de la recherche dans tous ses états.
Elasticsearch
 
Modernising One Legal Se@rch with Elastic Enterprise Search [Customer Story]
Elasticsearch
 
An introduction to Elasticsearch's advanced relevance ranking toolbox
Elasticsearch
 
Welcome to a new state of find
Elasticsearch
 
Building great website search experiences
Elasticsearch
 
Keynote: Harnessing the power of Elasticsearch for simplified search
Elasticsearch
 
Cómo transformar los datos en análisis con los que tomar decisiones
Elasticsearch
 
Explore relève les défis Big Data avec Elastic Cloud
Elasticsearch
 
Comment transformer vos données en informations exploitables
Elasticsearch
 
Transforming data into actionable insights
Elasticsearch
 
Opening Keynote: Why Elastic?
Elasticsearch
 
Empowering agencies using Elastic as a Service inside Government
Elasticsearch
 
The opportunities and challenges of data for public good
Elasticsearch
 
Enterprise search and unstructured data with CGI and Elastic
Elasticsearch
 
Ad

Recently uploaded (20)

PDF
Google’s NotebookLM Unveils Video Overviews
SOFTTECHHUB
 
PDF
This slide provides an overview Technology
mineshkharadi333
 
PDF
A Day in the Life of Location Data - Turning Where into How.pdf
Precisely
 
PDF
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
PPTX
How to Build a Scalable Micro-Investing Platform in 2025 - A Founder’s Guide ...
Third Rock Techkno
 
PDF
Software Development Methodologies in 2025
KodekX
 
PDF
DevOps & Developer Experience Summer BBQ
AUGNYC
 
PDF
madgavkar20181017ppt McKinsey Presentation.pdf
georgschmitzdoerner
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PPTX
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
Francisco Vieira Júnior
 
PDF
CIFDAQ's Token Spotlight: SKY - A Forgotten Giant's Comeback?
CIFDAQ
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
Enable Enterprise-Ready Security on IBM i Systems.pdf
Precisely
 
PDF
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
PDF
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PDF
CIFDAQ's Teaching Thursday: Moving Averages Made Simple
CIFDAQ
 
DOCX
Top AI API Alternatives to OpenAI: A Side-by-Side Breakdown
vilush
 
PDF
Shreyas_Phanse_Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
SHREYAS PHANSE
 
Google’s NotebookLM Unveils Video Overviews
SOFTTECHHUB
 
This slide provides an overview Technology
mineshkharadi333
 
A Day in the Life of Location Data - Turning Where into How.pdf
Precisely
 
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
How to Build a Scalable Micro-Investing Platform in 2025 - A Founder’s Guide ...
Third Rock Techkno
 
Software Development Methodologies in 2025
KodekX
 
DevOps & Developer Experience Summer BBQ
AUGNYC
 
madgavkar20181017ppt McKinsey Presentation.pdf
georgschmitzdoerner
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
Francisco Vieira Júnior
 
CIFDAQ's Token Spotlight: SKY - A Forgotten Giant's Comeback?
CIFDAQ
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
Enable Enterprise-Ready Security on IBM i Systems.pdf
Precisely
 
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
CIFDAQ's Teaching Thursday: Moving Averages Made Simple
CIFDAQ
 
Top AI API Alternatives to OpenAI: A Side-by-Side Breakdown
vilush
 
Shreyas_Phanse_Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
SHREYAS PHANSE
 

Replicate Elasticsearch Data with Cross-Cluster Replication (CCR)

  • 1. Replicate Elasticsearch Data with Cross-Cluster Replication (CCR) Jason Zucchetto | Senior Product Manager January 31, 2019
  • 3. Housekeeping & Logistics • Recording will be available following the webinar • Chat via IRC #elastic-webinar ◦ #elastic-webinar @ Freenode ◦ Click "Join the Chat" link, create an IRC account • Please select high resolution in the YouTube video player
  • 4. 4 Agenda Elastic Stack Introduction1 CCR Use Cases Demo Additional Resources Cross Cluster Replication (CCR) Overview2 3 4 5
  • 5. 5 Store, Search, & Analyze Visualize & Manage Ingest Elastic Stack SOLUTIONS Elastic Stack Kibana Elasticsearch Beats Logstash SaaS SELF-MANAGED Elastic cloud Elastic cloud Enterprise Standalone
  • 6. Solutions Store, Search, & Analyze Visualize & Manage Ingest Kibana Elasticsearch Beats Logstash Elastic Stack SaaS SELF-MANAGED App Search Site Search Enterprise Search FUTURE Metrics APM Business Analytics Logging Security Analytics
  • 7. 7 Store, Search, & Analyze Visualize & Manage Ingest Deployment options SOLUTIONS Elastic Stack Kibana Elasticsearch Beats Logstash SaaS SELF-MANAGED Elastic Cloud Elastic Cloud Enterprise Standalone
  • 8. 8 Cross Cluster Replication (CCR) in Elasticsearch
  • 9. 99 Data Center 1 Data Center 2 Previous Cross Data Center Replication Strategies Previous methods for replicating across Elasticsearch clusters / datacenters ● Double writes ● Middleware ● Snapshot / restore Kafka Snapshot / Restore
  • 10. 10 Cross Cluster Replication (CCR) in Elasticsearch ● High availability and disaster recovery ○ Across networks, data centers, or regions ● Content distribution / data locality ○ Elasticsearch clusters close to the application servers ● Read-only cluster from regional source clusters ○ Hub/spoke model, ad-hoc searches don’t require ad-hoc cross-network communication Replicate indices to one or more clusters Cluster 1 Index A Index A Cluster 2
  • 11. 11 Cross Cluster Replication (CCR) in Elasticsearch ● Introduced as beta feature in Elasticsearch 6.5 ○ Short beta period (GA soon) ○ Get any feedback to ES team ■ github.com/elastic/elasticsearch ● Platinum level feature ○ Easy to test with 30 day trial (demo) Replicate indices to one or more clusters Cluster 1 Index A Index A Cluster 2
  • 12. 12 ● Index based ○ Replicated index is read-only ● Pull based model ○ Follower asks the source for a range of documents to replicate ○ Source cluster is unaware of its followers. ● Many tunable options, e.g. ○ Number of operations replicated per fetch (from the follower) Index B Index A Index B ... ... ... Index A Cluster 1 Cluster 2 Cluster 3 Cross Cluster Replication (CCR) in Elasticsearch Replicate indices to one or more clusters
  • 13. 13 Cross Cluster Replication (CCR) Security Security considerations for replicating between two Elasticsearch clusters ● Permissions requirements ○ Leader / source cluster ■ “read_ccr” cluster privilege ■ “monitor” and “read” index privileges ○ Follower / destination cluster ■ “manage_ccr” cluster privilege ■ “monitor”, “read”, “write”, and “manage_follow_index” index privileges ● Same security infrastructure as CCS ● Demo will not use security, to simplify demo setup ○ Demo can also use the built-in “elastic” user
  • 14. 14 Cross Cluster Replication (CCR) Use Cases
  • 15. 1515 Production Data Center Disaster Recovery Data Center Leader Follower High Availability and Disaster Recovery
  • 16. 1616 Production Data Center Disaster Recovery Data Center Leader Follower High Availability and Disaster Recovery
  • 17. 1717 Central DCSingapore DC Ireland DC Canada DC Leader Follower Data Locality
  • 18. 1818 Central ReportingSingapore DC Ireland DC Canada DC Leader Follower Centralized Reporting
  • 19. 1919 Central ReportingSingapore DC Ireland DC Canada DC Leader Follower Centralized Reporting
  • 21. 21 Cross Cluster Replication (CCR) Demo ● Use two local clusters of Elasticsearch ● Replicate a Metricbeat index from one cluster to another ● Become familiar with the CCR API ● Walk through the CCR Kibana Management UI ● API commands available in Github
  • 23. 23 ● Getting started with Cross Cluster Replication ○ https://www.elastic.co/guide/en/elastic-stack-overview/current/ ccr-getting-started.html ● Cross Cluster Replication APIs ○ https://www.elastic.co/guide/en/elasticsearch/reference/curren t/ccr-apis.html Additional Resources
  • 24. 24 Housekeeping & Logistics • Recording will be available following the webinar • Chat via IRC #elastic-webinar ◦ #elastic-webinar @ Freenode ◦ Click "Join the Chat" link, create an IRC account • Please select high resolution in the YouTube video player
  • 25. Thank You ● Web : www.elastic.co ● Demos: demo.elastic.co ● Products : https://www.elastic.co/products ● Forums : https://discuss.elastic.co/ ● Community : https://www.elastic.co/community/meetups ● Twitter : @elastic