Chapter 7. Operations Guide

Table of Contents

7.1. The Tungsten Cluster Home Directory
7.2. Establishing the Shell Environment
7.3. Understanding Replicator Roles
7.4. Checking Replication Status
7.4.1. Understanding Replicator States
7.4.2. Replicator States During Operations
7.4.3. Changing Replicator States
7.5. Managing Transaction Failures
7.5.1. Identifying a Transaction Mismatch
7.5.2. Skipping Transactions
7.6. Provision or Reprovision a Slave
7.7. Creating a Backup
7.7.1. Using a Different Backup Tool
7.7.2. Using a Different Directory Location
7.7.3. Creating an External Backup
7.8. Restoring a Backup
7.8.1. Restoring a Specific Backup
7.8.2. Restoring an External Backup
7.8.3. Restoring from Another Slave
7.8.4. Manually Recovering from Another Slave
7.8.5. Reprovision a MySQL Slave using rsync
7.9. Deploying Automatic Replicator Recovery
7.10. Migrating and Seeding Data
7.10.1. Seeding Data for Heterogeneous Replication
7.11. Using the Parallel Extractor
7.11.1. Advanced Configuration Parameters
7.12. Switching Master Hosts
7.13. Configuring Parallel Replication
7.14. Performing Database or OS Maintenance
7.14.1. Performing Maintenance on a Single Slave
7.14.2. Performing Maintenance on a Master
7.14.3. Performing Maintenance on an Entire Dataservice
7.14.4. Upgrading or Updating your JVM
7.15. Upgrading Tungsten Replicator
7.15.1. Upgrading Tungsten Replicator using tpm
7.15.2. Installing an Upgraded JAR Patch
7.15.3. Installing Patches
7.16. Monitoring Tungsten Cluster
7.16.1. Managing Log Files with logrotate
7.16.2. Monitoring Status Using cacti
7.16.3. Monitoring Status Using nagios
7.17. Rebuilding THL on the Master

There are a number of key operations that enable you to monitor and manage your replication cluster. Tungsten Replicator includes a small number of tools that can help with this process, including the core trepctl command, for controlling the replication system, and thl, which provides an interface to the Tungsten History Log and information about the changes that have been recorded to the log and distributed to the slaves.

During the installation process the file /opt/continuent/share/ will have been created which will seed the shell with the necessary $PATH and other details to more easily manage your cluster. You can load this script manually using:

shell> source /opt/continuent/share/

Once loaded, all of the tools for controlling and monitoring your replicator installation should be part of your standard PATH.