basics: introduction to tungsten...

19
Basics: Introduction to Tungsten Replication

Upload: others

Post on 22-Jul-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Basics: Introduction to Tungsten Replicationcontinuent-videos.s3.amazonaws.com/...Introduction... · Sources • MySQL – Oracle MySQL to 5.6 – Percona MySQL to 5.6 – MySQL 5.7

Basics: Introduction to Tungsten Replication

Page 2: Basics: Introduction to Tungsten Replicationcontinuent-videos.s3.amazonaws.com/...Introduction... · Sources • MySQL – Oracle MySQL to 5.6 – Percona MySQL to 5.6 – MySQL 5.7

Tungsten Replicator in a Nutshell

Page 3: Basics: Introduction to Tungsten Replicationcontinuent-videos.s3.amazonaws.com/...Introduction... · Sources • MySQL – Oracle MySQL to 5.6 – Percona MySQL to 5.6 – MySQL 5.7

Tungsten Replicator is…

•  Transactionally Consistent Asynchronous Replicator •  Supports SQL (homogeneous) and Row-based (heterogeneous) •  Database independent •  Architecture and database neutral storage format •  High performance •  Flexible Extraction •  Flexible Applying

–  JDBC –  Native –  Batch

•  Flexible Filtering

Page 4: Basics: Introduction to Tungsten Replicationcontinuent-videos.s3.amazonaws.com/...Introduction... · Sources • MySQL – Oracle MySQL to 5.6 – Percona MySQL to 5.6 – MySQL 5.7

Transactionally Consistent Asynchronous Replicator

DBMS Logs

MySQL/Oracle

Master Replicator: Extractor

THL

Slave Replicator: Applier

THL

MySQL/Oracle

T

THL

T

Page 5: Basics: Introduction to Tungsten Replicationcontinuent-videos.s3.amazonaws.com/...Introduction... · Sources • MySQL – Oracle MySQL to 5.6 – Percona MySQL to 5.6 – MySQL 5.7

Sources

•  MySQL –  Oracle MySQL to 5.6 –  Percona MySQL to 5.6 –  MySQL 5.7 supported with limited data types (full support coming 2017) –  MariaDB 10/10.1

•  Oracle –  Using ‘Redo Reader’, commercial license only –  Supports 9i to 12c, SE1to EE

Page 6: Basics: Introduction to Tungsten Replicationcontinuent-videos.s3.amazonaws.com/...Introduction... · Sources • MySQL – Oracle MySQL to 5.6 – Percona MySQL to 5.6 – MySQL 5.7

MySQL Extraction

DBMS Logs

Download transactions via network

Apply using JDBC

THL = Events + Metadata

MySQL

MySQL Binary Logging

Option 1: Local Install Extractor reads directly from the logs, even when the DBMS service is down. This is the default. Option 2: Remote Extractor gets log data via MySQL Replication Slave protocols (which requires the DBMS service to be online). This is how we handle RDS extraction tasks.

Extractor Options

Master Replicator: Extractor

THL

2 1

Slave Replicator: Applier

THL

MySQL

Page 7: Basics: Introduction to Tungsten Replicationcontinuent-videos.s3.amazonaws.com/...Introduction... · Sources • MySQL – Oracle MySQL to 5.6 – Percona MySQL to 5.6 – MySQL 5.7

Oracle Extraction

DBMS Logs

Download transactions via network

Apply using JDBC

THL = Events + Metadata

Redo Logging

Master Replicator: Extractor

THL

Slave Replicator: Applier

THL

TargetOracle

Redo Reader Generated PLOG

Extractor gets event data by reading the PLOG files generated by the Redo Reader (PLOG generation requires the DBMS service to be online).

Page 8: Basics: Introduction to Tungsten Replicationcontinuent-videos.s3.amazonaws.com/...Introduction... · Sources • MySQL – Oracle MySQL to 5.6 – Percona MySQL to 5.6 – MySQL 5.7

Targets - JDBC

•  MySQL – any version •  Oracle – any version

Page 9: Basics: Introduction to Tungsten Replicationcontinuent-videos.s3.amazonaws.com/...Introduction... · Sources • MySQL – Oracle MySQL to 5.6 – Percona MySQL to 5.6 – MySQL 5.7

Targets - Native

•  MongoDB

•  ElasticSearch, announced •  Kafka, announced

•  More coming in 2017

Page 10: Basics: Introduction to Tungsten Replicationcontinuent-videos.s3.amazonaws.com/...Introduction... · Sources • MySQL – Oracle MySQL to 5.6 – Percona MySQL to 5.6 – MySQL 5.7

Targets - Batch

•  Amazon RedShift •  HP Vertica •  Hadoop (native HDFS)

•  Cassandra (announced)

•  More coming in 2017

Page 11: Basics: Introduction to Tungsten Replicationcontinuent-videos.s3.amazonaws.com/...Introduction... · Sources • MySQL – Oracle MySQL to 5.6 – Percona MySQL to 5.6 – MySQL 5.7

Heterogeneous

MySQL

Oracle

MongoDB

Vertica

Hadoop

Page 12: Basics: Introduction to Tungsten Replicationcontinuent-videos.s3.amazonaws.com/...Introduction... · Sources • MySQL – Oracle MySQL to 5.6 – Percona MySQL to 5.6 – MySQL 5.7

Transaction History Log (THL) •  A sequential log of each transaction •  Read from a source in the order applied •  Extracted with header, meta, and actual data •  THL is used internally by replicator •  Data extracted from source to THL •  THL exchanged between replicators •  Replicator converts single transaction into

–  JDBC statement –  Native apply –  Batched apply

Header

Metadata

Statement

Rows

Statement

Rows

Rows

Page 13: Basics: Introduction to Tungsten Replicationcontinuent-videos.s3.amazonaws.com/...Introduction... · Sources • MySQL – Oracle MySQL to 5.6 – Percona MySQL to 5.6 – MySQL 5.7

Filtering

THL

THL THL

THL

T

T

T

T

T

T

Page 14: Basics: Introduction to Tungsten Replicationcontinuent-videos.s3.amazonaws.com/...Introduction... · Sources • MySQL – Oracle MySQL to 5.6 – Percona MySQL to 5.6 – MySQL 5.7

What Can Filtering Do?

•  Remove THL entries –  For example, filter by schema/table name –  Filter by data –  Filter by type (statement, row, DDL, DML)

•  Change Content –  Remove a row or column –  Change the contents of rows – for example string formats, or –  Change the datatypes of rows – for example, an Int into Float, SET types into strings, or

date types

•  Add Data –  Introduce entirely new transactions –  Insert new data –  Duplicate data into other tables

Page 15: Basics: Introduction to Tungsten Replicationcontinuent-videos.s3.amazonaws.com/...Introduction... · Sources • MySQL – Oracle MySQL to 5.6 – Percona MySQL to 5.6 – MySQL 5.7

Tungsten Replicator is…

•  Transactionally Consistent Asynchronous Replicator •  Supports SQL (Homogeneous) and Row-based (heterogeneous) •  Database independent •  Architecture and database neutral storage format •  High performance •  Flexible Extraction •  Flexible Applying

–  JDBC –  Native –  Batch

•  Flexible Filtering

Page 16: Basics: Introduction to Tungsten Replicationcontinuent-videos.s3.amazonaws.com/...Introduction... · Sources • MySQL – Oracle MySQL to 5.6 – Percona MySQL to 5.6 – MySQL 5.7

Upcoming Topics

•  Basic Deployment •  How Appliers Work •  How Extraction Works •  Troubleshooting •  Filtering •  Advanced Deployments

Page 17: Basics: Introduction to Tungsten Replicationcontinuent-videos.s3.amazonaws.com/...Introduction... · Sources • MySQL – Oracle MySQL to 5.6 – Percona MySQL to 5.6 – MySQL 5.7

Next Steps

•  If you would like to download the clustering software so that you can the process for yourself, please visit: https://github.com/continuent/tungsten-replicator

•  Read the documentation at https://docs.continuent.com/tungsten-replicator-5.1/index.html

•  If you would prefer a more technical deep dive, please contact our sales team who will be able to take you through the details and setup a POC

Page 18: Basics: Introduction to Tungsten Replicationcontinuent-videos.s3.amazonaws.com/...Introduction... · Sources • MySQL – Oracle MySQL to 5.6 – Percona MySQL to 5.6 – MySQL 5.7

Upcoming Training and Webinars

•  Tungsten Training Program – Training -- Tuesday, 27th June 2017, 09:00 PST, 17:00 BST, 30 minutes -- Basics:

Introduction to Tungsten Clustering

•  Continuent Webinar Program – Webinar -- Wednesday, 21st June 2017, 09:00 PST, 17:00 BST, 30 minutes --

Amazon RDS vs. AWS with Continuent Tungsten Clustering

Page 19: Basics: Introduction to Tungsten Replicationcontinuent-videos.s3.amazonaws.com/...Introduction... · Sources • MySQL – Oracle MySQL to 5.6 – Percona MySQL to 5.6 – MySQL 5.7

For more information, contact us: Eric Stone COO [email protected] MC Brown VP Products [email protected]

Eero Teerikorpi Founder, CEO [email protected] +1 (408) 431-3305