SlideShare a Scribd company logo
The MySQL Availability Company
Tungsten Cluster Master Class
Basics: Tungsten Replicator – How we Move Your Data
Chris Parker, Customer Success Director, EMEA & APAC
Topics
In this short course, we will
• Take a look at the inner workings of the Replicator
• Understand Replicator States
• Explore the Replicator Stages
The Replicator
Tungsten Replicator
Replicator States
Tungsten Replicator Roles
• master (extractor)
• A replicator in a ”master” role extracts data from a source database (for example, by reading the binary log
from a MySQL server) and generates THL. As the extractor, the replicator also serves THL to other replicators
over the network connection.
• slave (applier)
• The applier replicator pulls THL from one of more extractors and then applies that data to a target database or
environment.
• thl-server
• New in v6.1.2
• A thl-server replicator is a special role that extractor replicators in Clusters can be changed to temporarily
when a Primary is taken offline. This will allow downstream appliers to download and apply any THL that hasn't
yet been processed by the replicator.
• thl-client
• New in v6.1.4
• A thl-client replicator is a special role that appliers can be changed to. This will allow the applier replicator to
download any THL available from the upstream extractor, but does NOT apply the THL to the target database.
Tungsten Replicator States
• START
• The replicator service is starting up and reading the replicator properties configuration file.
• OFFLINE:NORMAL
• The node has been deliberately placed into the offline mode by an administrator. No replication events are processed
and reading or writing to the underlying database does not take place.
• OFFLINE:ERROR
• The node has entered the offline state because of an error. No replication events are processed and reading or writing
to the underlying database does not take place.
• GOING-ONLINE:PROVISIONING
• The replicator is currently reading provisioning information from the primary database before entering the ONLINE state.
• GOING-ONLINE:RESTORING
• The replicator is preparing to go online and is currently restoring data from a backup.
• GOING-ONLINE:SYNCHRONIZING
• The replicator is preparing to go online and is currently preparing to process any outstanding events from the incoming
event stream. This mode occurs when an applier has been switched online after maintenance, or in the event of a
temporary network error where the applier has reconnected to the extractor.
Tungsten Replicator States
• ONLINE
• The node is currently online and processing events, reading incoming data and applying those changes to the database
as required. In this mode the current status and position within the replication stream is recorded and can be monitored.
Replication will continue until an error or administrative condition switches the node into the OFFLINE state.
• GOING-OFFLINE
• The replicator is processing any outstanding events or transactions that were in progress when the node was switched
offline. When these transactions are complete, and the resources in use (memory, network connections) have been
closed down, the replicator will switch to the OFFLINE:NORMAL state. This state may also be seen in a node where
auto-enable is disabled after a start or restart operation.
• ONLINE:DEGRADED
• This status will be seen on an extractor and is indicative of the replicator loosing connectivity to the source database that
it is extracting from. The replicator will still continue to extract entries from the binary log that have not yet been
processed. After extracting all log entries, the replicator will proceed to the ONLINE:DEGRADED-BINLOG-FULLY-
READ state.
• ONLINE:DEGRADED-BINLOG-FULLY-READ
• This status will be seen on an extractor replicator following the ONLINE:DEGRADED state and indicates that the
replicator has completed reading all binlog entries. In a clustering environment, it indicates to the cluster that failover can
now proceed.
Replicator Stages
Tungsten Replicator Stages
• Each stage passes through:
• Extract -> Filter -> Apply
• binlog-to-q
• Handles extraction of transactions from
binary log and places into in-memory
queue
• q-to-thl
• Takes transactions from in-memory
queue and writes down to disk into thl
log file
DBMS Logs
Primary Replicator: Extractor
binlog-to-q q-to-thl
Memory
THL
Extract Filter Apply
Tungsten Replicator Stages
• remote-to-thl
• Streams thl log files across network
socket, from configured extractor.
Writes out THL to local disk..
• thl-to-q
• Reads transactions from thl and places
into in-memory queue
• q-to-dbms
• Reads transactions from in-memory
queue and writes out to target
database
Remote
THL
Replica Replicator: Applier
remote-to-thl q-to-dbms
Memory
Queue
thl-to-q
Local THL
Summary
What we have learnt today
• How the Replicator Works
• Reviewed the Replicator States
• Discussed the Replicator Stages
Next Steps
In the next session we will
• Walk through the process of installing a simple cluster.
• Gain an understanding of the pre-requisites.
• Discuss various pre-installation decisions
THANK YOU FOR LISTENING
continuent.com
The MySQL Availability Company
Chris Parker, Customer Success Director, EMEA & APAC

More Related Content

What's hot (20)

PPTX
Hadoop Summit SJ 2016: Next Gen Big Data Analytics with Apache Apex
Apache Apex
 
PDF
Raft in details
Ivan Glushkov
 
PPTX
Stream Processing with Apache Apex
Pramod Immaneni
 
PPTX
Fault-Tolerant File Input & Output
Apache Apex
 
PPTX
Intro to Apache Apex (next gen Hadoop) & comparison to Spark Streaming
Apache Apex
 
PPTX
Ingesting Data from Kafka to JDBC with Transformation and Enrichment
Apache Apex
 
PPTX
Introduction to Apache Apex
Apache Apex
 
PPTX
Demystifying flink memory allocation and tuning - Roshan Naik, Uber
Flink Forward
 
PPTX
Intro to Apache Apex - Next Gen Platform for Ingest and Transform
Apache Apex
 
PPTX
Introduction to Apache Apex and writing a big data streaming application
Apache Apex
 
PDF
Till Rohrmann - Dynamic Scaling - How Apache Flink adapts to changing workloads
Flink Forward
 
PPT
Load balancing in_internet
08suraj
 
PDF
Choosing the right high availability strategy
MariaDB plc
 
PDF
MegaStore and Spanner
Amir Payberah
 
PDF
Marton Balassi – Stateful Stream Processing
Flink Forward
 
PDF
Introduction to Structured Streaming
datamantra
 
PPTX
A load balancing model based on cloud partitioning for the public cloud. ppt
Lavanya Vigrahala
 
PDF
Hermes Reliable Replication Protocol - ASPLOS'20 Presentation
Antonios Katsarakis
 
PPTX
Flink Forward San Francisco 2018 keynote: Stephan Ewen - "What turns stream p...
Flink Forward
 
PDF
Reintroducing the Stream Processor: A universal tool for continuous data anal...
Paris Carbone
 
Hadoop Summit SJ 2016: Next Gen Big Data Analytics with Apache Apex
Apache Apex
 
Raft in details
Ivan Glushkov
 
Stream Processing with Apache Apex
Pramod Immaneni
 
Fault-Tolerant File Input & Output
Apache Apex
 
Intro to Apache Apex (next gen Hadoop) & comparison to Spark Streaming
Apache Apex
 
Ingesting Data from Kafka to JDBC with Transformation and Enrichment
Apache Apex
 
Introduction to Apache Apex
Apache Apex
 
Demystifying flink memory allocation and tuning - Roshan Naik, Uber
Flink Forward
 
Intro to Apache Apex - Next Gen Platform for Ingest and Transform
Apache Apex
 
Introduction to Apache Apex and writing a big data streaming application
Apache Apex
 
Till Rohrmann - Dynamic Scaling - How Apache Flink adapts to changing workloads
Flink Forward
 
Load balancing in_internet
08suraj
 
Choosing the right high availability strategy
MariaDB plc
 
MegaStore and Spanner
Amir Payberah
 
Marton Balassi – Stateful Stream Processing
Flink Forward
 
Introduction to Structured Streaming
datamantra
 
A load balancing model based on cloud partitioning for the public cloud. ppt
Lavanya Vigrahala
 
Hermes Reliable Replication Protocol - ASPLOS'20 Presentation
Antonios Katsarakis
 
Flink Forward San Francisco 2018 keynote: Stephan Ewen - "What turns stream p...
Flink Forward
 
Reintroducing the Stream Processor: A universal tool for continuous data anal...
Paris Carbone
 

Similar to Training Slides: 102 - Basics - Tungsten Replicator - How We Move Your Data (20)

PDF
Training Slides: Basics 107: Simple Tungsten Replicator Installation to Extra...
Continuent
 
PPTX
Apache Apex Fault Tolerance and Processing Semantics
Apache Apex
 
PDF
Training Slides: 202 - Monitoring & Troubleshooting
Continuent
 
PDF
Choosing the right high availability strategy
MariaDB plc
 
PDF
M|18 Choosing the Right High Availability Strategy for You
MariaDB plc
 
PDF
Flink Forward SF 2017: Stephan Ewen - Experiences running Flink at Very Large...
Flink Forward
 
PDF
Training Slides: 151 - Tungsten Replicator - Moving your Data
Continuent
 
PPTX
Failover-Apachecon-Asia-2022.pptx
DavidKjerrumgaard1
 
PPTX
Sql disaster recovery
Sqlperfomance
 
PDF
Bridge to the Future: Migrating to KRaft
HostedbyConfluent
 
PDF
Training Slides: Basics 102: Introduction to Tungsten Clustering
Continuent
 
PDF
Tungsten University: Setup and Operate Tungsten Replicators
Continuent
 
PDF
SVC / Storwize: cache partition analysis (BVQ howto)
Michael Pirker
 
PDF
02 2017 emea_roadshow_milan_ha
mlraviol
 
PDF
Training Slides: 104 - Basics - Working With Command Line Tools
Continuent
 
PPTX
Intro to Apache Apex - Next Gen Native Hadoop Platform - Hackac
Apache Apex
 
PPTX
High available energy management system
Jo Ee Liew
 
PDF
Training Slides: Intermediate 202: Performing Cluster Maintenance with Zero-D...
Continuent
 
PDF
Heart of the SwarmKit: Store, Topology & Object Model
Docker, Inc.
 
KEY
Replication, Durability, and Disaster Recovery
Steven Francia
 
Training Slides: Basics 107: Simple Tungsten Replicator Installation to Extra...
Continuent
 
Apache Apex Fault Tolerance and Processing Semantics
Apache Apex
 
Training Slides: 202 - Monitoring & Troubleshooting
Continuent
 
Choosing the right high availability strategy
MariaDB plc
 
M|18 Choosing the Right High Availability Strategy for You
MariaDB plc
 
Flink Forward SF 2017: Stephan Ewen - Experiences running Flink at Very Large...
Flink Forward
 
Training Slides: 151 - Tungsten Replicator - Moving your Data
Continuent
 
Failover-Apachecon-Asia-2022.pptx
DavidKjerrumgaard1
 
Sql disaster recovery
Sqlperfomance
 
Bridge to the Future: Migrating to KRaft
HostedbyConfluent
 
Training Slides: Basics 102: Introduction to Tungsten Clustering
Continuent
 
Tungsten University: Setup and Operate Tungsten Replicators
Continuent
 
SVC / Storwize: cache partition analysis (BVQ howto)
Michael Pirker
 
02 2017 emea_roadshow_milan_ha
mlraviol
 
Training Slides: 104 - Basics - Working With Command Line Tools
Continuent
 
Intro to Apache Apex - Next Gen Native Hadoop Platform - Hackac
Apache Apex
 
High available energy management system
Jo Ee Liew
 
Training Slides: Intermediate 202: Performing Cluster Maintenance with Zero-D...
Continuent
 
Heart of the SwarmKit: Store, Topology & Object Model
Docker, Inc.
 
Replication, Durability, and Disaster Recovery
Steven Francia
 
Ad

More from Continuent (20)

PDF
Tungsten Webinar: v6 & v7 Release Recap, and Beyond
Continuent
 
PDF
Continuent Tungsten Value Proposition Webinar
Continuent
 
PDF
Webinar Slides: MySQL HA/DR/Geo-Scale - High Noon #7: ClusterControl
Continuent
 
PDF
Webinar Slides: MySQL HA/DR/Geo-Scale - High Noon #5: Oracle’s InnoDB Cluster
Continuent
 
PDF
Webinar Slides: MySQL HA/DR/Geo-Scale - High Noon #4: MS Azure Database MySQL
Continuent
 
PDF
Webinar Slides: MySQL HA/DR/Geo-Scale - High Noon #2: Galera Cluster
Continuent
 
PDF
Webinar Slides: MySQL HA/DR/Geo-Scale - High Noon #1: AWS Aurora
Continuent
 
PDF
Webinar Slides: AWS Aurora MySQL Replacement: Break Away From Geo-Limitations...
Continuent
 
PDF
Webinar Slides: No Data Loss MySQL: Guaranteed Credit Card Transaction Availa...
Continuent
 
PDF
Webinar Slides: Intelligent Database Proxies: Routing & Transparent Failover
Continuent
 
PPTX
Webinar Slides: High Volume MySQL HA: SaaS Continuous Operations with Terabyt...
Continuent
 
PDF
Training Slides: 205 - Installing and Configuring Tungsten Dashboard
Continuent
 
PDF
Training Slides: 352 - Tungsten Replicator for MongoDB & Kafka
Continuent
 
PDF
Training Slides: 351 - Tungsten Replicator for Data Warehouses
Continuent
 
PDF
Training Slides: 303 - Replicating out of a Cluster
Continuent
 
PDF
Training Slides: 206 - Using the Tungsten Cluster AMI
Continuent
 
PDF
Training Slides: 254 - Using the Tungsten Replicator AMI
Continuent
 
PDF
Training Slides: 253 - Filter like a Pro
Continuent
 
PDF
Training Slides: 252 - Monitoring & Troubleshooting
Continuent
 
PDF
Training Slides: 302 - Securing Your Cluster With SSL
Continuent
 
Tungsten Webinar: v6 & v7 Release Recap, and Beyond
Continuent
 
Continuent Tungsten Value Proposition Webinar
Continuent
 
Webinar Slides: MySQL HA/DR/Geo-Scale - High Noon #7: ClusterControl
Continuent
 
Webinar Slides: MySQL HA/DR/Geo-Scale - High Noon #5: Oracle’s InnoDB Cluster
Continuent
 
Webinar Slides: MySQL HA/DR/Geo-Scale - High Noon #4: MS Azure Database MySQL
Continuent
 
Webinar Slides: MySQL HA/DR/Geo-Scale - High Noon #2: Galera Cluster
Continuent
 
Webinar Slides: MySQL HA/DR/Geo-Scale - High Noon #1: AWS Aurora
Continuent
 
Webinar Slides: AWS Aurora MySQL Replacement: Break Away From Geo-Limitations...
Continuent
 
Webinar Slides: No Data Loss MySQL: Guaranteed Credit Card Transaction Availa...
Continuent
 
Webinar Slides: Intelligent Database Proxies: Routing & Transparent Failover
Continuent
 
Webinar Slides: High Volume MySQL HA: SaaS Continuous Operations with Terabyt...
Continuent
 
Training Slides: 205 - Installing and Configuring Tungsten Dashboard
Continuent
 
Training Slides: 352 - Tungsten Replicator for MongoDB & Kafka
Continuent
 
Training Slides: 351 - Tungsten Replicator for Data Warehouses
Continuent
 
Training Slides: 303 - Replicating out of a Cluster
Continuent
 
Training Slides: 206 - Using the Tungsten Cluster AMI
Continuent
 
Training Slides: 254 - Using the Tungsten Replicator AMI
Continuent
 
Training Slides: 253 - Filter like a Pro
Continuent
 
Training Slides: 252 - Monitoring & Troubleshooting
Continuent
 
Training Slides: 302 - Securing Your Cluster With SSL
Continuent
 
Ad

Recently uploaded (20)

PPT
Computer Securityyyyyyyy - Chapter 1.ppt
SolomonSB
 
PPTX
sajflsajfljsdfljslfjslfsdfas;fdsfksadfjlsdflkjslgfs;lfjlsajfl;sajfasfd.pptx
theknightme
 
PPTX
西班牙武康大学毕业证书{UCAMOfferUCAM成绩单水印}原版制作
Taqyea
 
PDF
DevOps Design for different deployment options
henrymails
 
PPTX
英国学位证(RCM毕业证书)皇家音乐学院毕业证书如何办理
Taqyea
 
PPTX
Optimization_Techniques_ML_Presentation.pptx
farispalayi
 
PPTX
unit 2_2 copy right fdrgfdgfai and sm.pptx
nepmithibai2024
 
PPTX
ZARA-Case.pptx djdkkdjnddkdoodkdxjidjdnhdjjdjx
RonnelPineda2
 
PPTX
原版西班牙莱昂大学毕业证(León毕业证书)如何办理
Taqyea
 
PPT
introductio to computers by arthur janry
RamananMuthukrishnan
 
PDF
Apple_Environmental_Progress_Report_2025.pdf
yiukwong
 
PPTX
英国假毕业证诺森比亚大学成绩单GPA修改UNN学生卡网上可查学历成绩单
Taqyea
 
PDF
𝐁𝐔𝐊𝐓𝐈 𝐊𝐄𝐌𝐄𝐍𝐀𝐍𝐆𝐀𝐍 𝐊𝐈𝐏𝐄𝐑𝟒𝐃 𝐇𝐀𝐑𝐈 𝐈𝐍𝐈 𝟐𝟎𝟐𝟓
hokimamad0
 
PPTX
本科硕士学历佛罗里达大学毕业证(UF毕业证书)24小时在线办理
Taqyea
 
PDF
Azure_DevOps introduction for CI/CD and Agile
henrymails
 
PPT
introduction to networking with basics coverage
RamananMuthukrishnan
 
PDF
Technical Guide to Build a Successful Shopify Marketplace from Scratch.pdf
CartCoders
 
PDF
Internet Governance and its role in Global economy presentation By Shreedeep ...
Shreedeep Rayamajhi
 
PPTX
Research Design - Report on seminar in thesis writing. PPTX
arvielobos1
 
PPT
Computer Securityyyyyyyy - Chapter 2.ppt
SolomonSB
 
Computer Securityyyyyyyy - Chapter 1.ppt
SolomonSB
 
sajflsajfljsdfljslfjslfsdfas;fdsfksadfjlsdflkjslgfs;lfjlsajfl;sajfasfd.pptx
theknightme
 
西班牙武康大学毕业证书{UCAMOfferUCAM成绩单水印}原版制作
Taqyea
 
DevOps Design for different deployment options
henrymails
 
英国学位证(RCM毕业证书)皇家音乐学院毕业证书如何办理
Taqyea
 
Optimization_Techniques_ML_Presentation.pptx
farispalayi
 
unit 2_2 copy right fdrgfdgfai and sm.pptx
nepmithibai2024
 
ZARA-Case.pptx djdkkdjnddkdoodkdxjidjdnhdjjdjx
RonnelPineda2
 
原版西班牙莱昂大学毕业证(León毕业证书)如何办理
Taqyea
 
introductio to computers by arthur janry
RamananMuthukrishnan
 
Apple_Environmental_Progress_Report_2025.pdf
yiukwong
 
英国假毕业证诺森比亚大学成绩单GPA修改UNN学生卡网上可查学历成绩单
Taqyea
 
𝐁𝐔𝐊𝐓𝐈 𝐊𝐄𝐌𝐄𝐍𝐀𝐍𝐆𝐀𝐍 𝐊𝐈𝐏𝐄𝐑𝟒𝐃 𝐇𝐀𝐑𝐈 𝐈𝐍𝐈 𝟐𝟎𝟐𝟓
hokimamad0
 
本科硕士学历佛罗里达大学毕业证(UF毕业证书)24小时在线办理
Taqyea
 
Azure_DevOps introduction for CI/CD and Agile
henrymails
 
introduction to networking with basics coverage
RamananMuthukrishnan
 
Technical Guide to Build a Successful Shopify Marketplace from Scratch.pdf
CartCoders
 
Internet Governance and its role in Global economy presentation By Shreedeep ...
Shreedeep Rayamajhi
 
Research Design - Report on seminar in thesis writing. PPTX
arvielobos1
 
Computer Securityyyyyyyy - Chapter 2.ppt
SolomonSB
 

Training Slides: 102 - Basics - Tungsten Replicator - How We Move Your Data

  • 1. The MySQL Availability Company Tungsten Cluster Master Class Basics: Tungsten Replicator – How we Move Your Data Chris Parker, Customer Success Director, EMEA & APAC
  • 2. Topics In this short course, we will • Take a look at the inner workings of the Replicator • Understand Replicator States • Explore the Replicator Stages
  • 6. Tungsten Replicator Roles • master (extractor) • A replicator in a ”master” role extracts data from a source database (for example, by reading the binary log from a MySQL server) and generates THL. As the extractor, the replicator also serves THL to other replicators over the network connection. • slave (applier) • The applier replicator pulls THL from one of more extractors and then applies that data to a target database or environment. • thl-server • New in v6.1.2 • A thl-server replicator is a special role that extractor replicators in Clusters can be changed to temporarily when a Primary is taken offline. This will allow downstream appliers to download and apply any THL that hasn't yet been processed by the replicator. • thl-client • New in v6.1.4 • A thl-client replicator is a special role that appliers can be changed to. This will allow the applier replicator to download any THL available from the upstream extractor, but does NOT apply the THL to the target database.
  • 7. Tungsten Replicator States • START • The replicator service is starting up and reading the replicator properties configuration file. • OFFLINE:NORMAL • The node has been deliberately placed into the offline mode by an administrator. No replication events are processed and reading or writing to the underlying database does not take place. • OFFLINE:ERROR • The node has entered the offline state because of an error. No replication events are processed and reading or writing to the underlying database does not take place. • GOING-ONLINE:PROVISIONING • The replicator is currently reading provisioning information from the primary database before entering the ONLINE state. • GOING-ONLINE:RESTORING • The replicator is preparing to go online and is currently restoring data from a backup. • GOING-ONLINE:SYNCHRONIZING • The replicator is preparing to go online and is currently preparing to process any outstanding events from the incoming event stream. This mode occurs when an applier has been switched online after maintenance, or in the event of a temporary network error where the applier has reconnected to the extractor.
  • 8. Tungsten Replicator States • ONLINE • The node is currently online and processing events, reading incoming data and applying those changes to the database as required. In this mode the current status and position within the replication stream is recorded and can be monitored. Replication will continue until an error or administrative condition switches the node into the OFFLINE state. • GOING-OFFLINE • The replicator is processing any outstanding events or transactions that were in progress when the node was switched offline. When these transactions are complete, and the resources in use (memory, network connections) have been closed down, the replicator will switch to the OFFLINE:NORMAL state. This state may also be seen in a node where auto-enable is disabled after a start or restart operation. • ONLINE:DEGRADED • This status will be seen on an extractor and is indicative of the replicator loosing connectivity to the source database that it is extracting from. The replicator will still continue to extract entries from the binary log that have not yet been processed. After extracting all log entries, the replicator will proceed to the ONLINE:DEGRADED-BINLOG-FULLY- READ state. • ONLINE:DEGRADED-BINLOG-FULLY-READ • This status will be seen on an extractor replicator following the ONLINE:DEGRADED state and indicates that the replicator has completed reading all binlog entries. In a clustering environment, it indicates to the cluster that failover can now proceed.
  • 10. Tungsten Replicator Stages • Each stage passes through: • Extract -> Filter -> Apply • binlog-to-q • Handles extraction of transactions from binary log and places into in-memory queue • q-to-thl • Takes transactions from in-memory queue and writes down to disk into thl log file DBMS Logs Primary Replicator: Extractor binlog-to-q q-to-thl Memory THL Extract Filter Apply
  • 11. Tungsten Replicator Stages • remote-to-thl • Streams thl log files across network socket, from configured extractor. Writes out THL to local disk.. • thl-to-q • Reads transactions from thl and places into in-memory queue • q-to-dbms • Reads transactions from in-memory queue and writes out to target database Remote THL Replica Replicator: Applier remote-to-thl q-to-dbms Memory Queue thl-to-q Local THL
  • 12. Summary What we have learnt today • How the Replicator Works • Reviewed the Replicator States • Discussed the Replicator Stages
  • 13. Next Steps In the next session we will • Walk through the process of installing a simple cluster. • Gain an understanding of the pre-requisites. • Discuss various pre-installation decisions
  • 14. THANK YOU FOR LISTENING continuent.com The MySQL Availability Company Chris Parker, Customer Success Director, EMEA & APAC