• Share
  • Email
  • Embed
  • Like
  • Private Content
Tungsten University: Setup and Operate Tungsten Replicators
 

Tungsten University: Setup and Operate Tungsten Replicators

on

  • 394 views

Do you have the background necessary to take full advantage of Tungsten Replicator in your environments? Tungsten offers enterprise-quality replication features in an open source package hosted on ...

Do you have the background necessary to take full advantage of Tungsten Replicator in your environments? Tungsten offers enterprise-quality replication features in an open source package hosted on Google Code. This virtual course teaches you how to set up innovative topologies that solve complex replication problems. We start with single MySQL servers running MySQL replication and show a simple path migration path to Tungsten.

Course Topics
- Checking host and MySQL prerequisites
- Downloading code from http://code.google.com/p/tungsten-replicator/
- Installation using the tungsten-installer utility
- Transaction filtering using standard filters as well as customized filters you write yourself
- Enabling and managing parallel replication
- Configuring multi-master and fan-in using multiple replication services
- Backup and restore integration
- Troubleshooting replication problems
- Logging bugs and participating in the Tungsten Replicator community

Replication is a powerful technology that takes knowledge and planning to use effectively. We give you the background that makes replication easier to set up, and allows you to take full advantage of the Tungsten Replicator benefits. Learn how to configure and use it more effectively for your projects in the cloud as well as on-premises hardware.

Statistics

Views

Total Views
394
Views on SlideShare
394
Embed Views
0

Actions

Likes
0
Downloads
8
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Tungsten University: Setup and Operate Tungsten Replicators Tungsten University: Setup and Operate Tungsten Replicators Presentation Transcript

    • Tungsten University:  Set Up and Operate Tungsten Replication Robert Hodges, CEO Giuseppe Maxia, Director of QA©Continuent 2013
    • About Continuent • The leading provider of clustering and replication for open source DBMS • Tungsten Clustering - Commercial-grade HA, performance scaling and data management for MySQL • Tungsten Replication - Real-time, "exible, high-performance replication©Continuent 2013 2
    • Introducing Tungsten Replicator©Continuent 2013 3
    • Tungsten Replicator Overview Master Replicator THL Download transactions via network (Transactions + Metadata) DBMS Logs Slave Replicator THL Apply using JDBC (Transactions + Metadata)©Continuent 2013 4
    • Tungsten Replication Service Pipeline Stage Stage Stage Extract Filter Apply Extract Filter Apply Extract Filter Apply Master Transaction In-Memory Slave DBMS History Log Queue DBMS©Continuent 2013 5
    • Overview of Installation Process 1. Set up hosts 2. Prepare MySQL replicas 3. Download software 4. Install using tungsten-installer Amazon Setup: https://docs.continuent.com/wiki/display/TEDOC/ Preparing+EC2+Servers©Continuent 2013 6
    • How tungsten-installer Works Staging copy db1 of files db2 check prereqs copy code db3 configure©Continuent 2013 7
    • What Is Tungsten Doing?©Continuent 2013 8
    • Commands to Check Replication • trepctl services -- All services • trepctl status -- Overall pipe status • trepctl status -name stages -- Stage summary • trepctl status -name stores -- Store summary • trepctl status -name tasks -- Task detail • trepctl [-service name] heartbeat -- Is it Alive?©Continuent 2013 9
    • Changing Replicator Con!guration©Continuent 2013 10
    • Commands to Change Con!guration • con#gure-service - Alter con#guration • update - Upgrade the replicator to a new version Hint: Don’t change replicator configuration files directly...©Continuent 2013 11
    • Recon!guring a Replicator • No Restart trepctl offline tools/configure-service ... trepctl configure trepctl online • With Restart tools/configure-service ... replicator restart©Continuent 2013 12
    • Enabling Parallel Replication©Continuent 2013 13
    • Parallel Replication of Sharded Data Pipeline Stage Stage Stage Extract Filter Apply Extract Filter Apply Extract Filter Apply Extract Filter Apply Extract Filter Apply Master Transaction Parallel Slave DBMS History Log Queue DBMS©Continuent 2013 14
    • Fixing Problems©Continuent 2013 15
    • The Scene of the Crime trepctl -host db2 status Processing status command... NAME VALUE ---- ----- ... pendingError : Event application failed: seqno=1957469 fragno=0 message=java.sql.SQLException: Statement failed on slave but succeeded on master pendingErrorCode : NONE pendingErrorEventId : mysql-bin.000008:0000000461736666;0 pendingErrorSeqno : 1957469 pendingExceptionMessage: java.sql.SQLException: Statement failed on slave but succeeded on master create table trouble(id int primary key) /* ___SERVICE___ = [university] */ ... Finished status command...©Continuent 2013 16
    • Correcting problems 1. Look at the transaction (thl list -seqno NNN) 2. Look at the replicator message log 3. Fix the problem and go online OR 4. Skip over the problem and go online OR 5. Reprovision the slave©Continuent 2013 17
    • Tungsten Logs©Continuent 2013 18
    • Simple Facts about Logs • Replicator log = THL (Transaction History Log) • One THL per replication service • 2x the size of MySQL binlog • Default retention of 7 days • Take service o$ine to move or delete logs safely • The thl tool shows you log contents©Continuent 2013 19
    • Resetting Replication©Continuent 2013 20
    • Resetting and Reinstalling Reset 1. Stop replicator 2. Remove THL #les 3. Remove tungsten_<svc> databases Reinstall 1. All of the above, plus delete /opt/continuent/* 2. Rerun installation©Continuent 2013 21
    • Backup and Restore©Continuent 2013 22
    • What Backup Tools Does MySQL Have? MySQL mysqldump Server Process (dataset < 10Gb) xtrabackup DBMS Files (10Gb < dataset < 1Tb tar/rsync (dataset < 1Tb) file system snapshot File System (1Tb < dataset)©Continuent 2013 23
    • Advanced Installation using Cookbooks©Continuent 2013 24
    • How Do I Install Fan-In Replication? db1 Replicator Service db1 Replicator Service db1 Service db2 db2 Replicator Service db2 db3©Continuent 2013 25
    • How Do I install Multi-Master? db1 Replicator Service db1 Service db2 db3 Service db3 Service db1 Service db2 db2 Service db3 Service db1 Service db2 Service db3 Replicator©Continuent 2013 26
    • Tungsten Cookbook Helps! • Installs complex topologies automatically • Directions in cookbook/README • Parameters in cookbook/USER_VALUES.sh • Node names in COMMON_NODES.sh • Installation script for each supported topology©Continuent 2013 27
    • Joining the Community©Continuent 2013 28
    • Tungsten Replicator is Open Source • Project home: http://code.google.com/p/tungsten-replicator/ • Log bugs, #nd builds, post in replicator discussion group • Documentation: https://docs.continuent.com/wiki/display/TEDOC/ Tungsten+Documentation+Home©Continuent 2013 29
    • Wrapping Up©Continuent 2013 30
    • Tungsten University Sessions • Unleashing the Power of Tungsten Connectors (February 21 & 26) • Managing Multi-Master and Fan-in Topologies (March) • Zero-downtime DBMS Migration and Maintenance (March) Send any feedback to: tu@continuent.com©Continuent 2013 31
    • 560 S. Winchester Blvd., Suite 500 Our Blogs:San Jose, CA 95128 http://scale-out-blog.blogspot.comTel +1 (866) 998-3642 http://datacharmer.org/blogFax +1 (408) 668-1009 http://www.continuent.com/news/blogse-mail: sales@continuent.com Continuent Web Page: http://www.continuent.com Tungsten Replicator 2.0: http://code.google.com/p/tungsten-replicator©Continuent 2012.