SlideShare a Scribd company logo
Advanced: Performing Schema Changes
in a Multi-Site Multi-Master Environment
1
Topics
In this short course we will:
• Review the Cluster Architecture
• Explore the challenges with Schema Changes
• Describe the Rolling Maintenance Process
• Describe the process of applying changes
• Demo
• Re-Cap Commands and resources used during the demo
Course Prerequisite Learning
– Basics: Introduction to Clustering
– Intermediate: Performing Cluster Maintenance with Zero Downtime
– Advanced: Multi-Site/Multi-Master Tungsten Clustering Deployments
– Visit the Continuent website or Tungsten University on YouTube to watch these recordings
• Continuent website https://www.continuent.com/videos/
• Tungsten University on YouTube https://www.youtube.com/channel/UCZ9iU-7nT1RLNnJvITFCsWA or http://tinyurl.com/TungstenUni
2
2
Tungsten Cluster Architecture
Tungsten Cluster Architecture
4
4
Tungsten Multi-Site/Multi-Master Cluster Architecture
5
5
Schema Changes
6
Schema Changes – The Challenges
• Table-Level Locking
– Large tables with millions of rows
– Blocks Application
– Clogs Replication
– Increased Memory usage
• Application Compatibility
– Does you application handle both before/after versions of the table?
• Test and Baseline
• ALTER TABLE <table> ADD <column> <definition> [BEFORE|AFTER] <column>;
– Enable Replicator filters
• https://docs.continuent.com/tungsten-clustering-5.2/deployment-msmm-monitoring-
schemachange.html
7
Zero-Downtime Rolling Maintenance
8
Rolling maintenance proceeds node-by-node starting with the slaves and ending
with the master
Slave
upgrade
Slave
upgrade
Switch
Master
upgrade
• Shun slave
• Upgrade
MySQL
• Return node to
cluster
• Discard and
re-provision
upon failure
• Repeat for
remaining
slave(s)
• Switch master
to promote an
upgraded
slave
• Upgrade old
master
• Maintenance is
now done!
9
Rolling maintenance
• set policy maintenance on both clusters
• On Slave Node:
– datasource <node> shun
– replicator <node> offline
• Perform Schema Change ensuring session level bin logging disabled
– datasource <node> recover
• Repeat on all Slave Nodes in both cluster
• Stop cross-cluster replicators
• Promote a Slave in each cluster to Master
– switch
• Repeat steps on old Master after switch complete
• Bring cross-cluster replicators online and return cluster Automatic
10
Rolling Maintenance Demo
- Tungsten Clustering and Tungsten Replicator 5.2.1
- Connectors in Port-Based Routing mode
- Amazon AWS EC2
- MySQL Community 5.7.19
- Java 1.8
- Ruby 1.9
11
Command Line Tools
&
Resources
Tools : cctrl
• “cctrl” can be run from any node within a cluster to control the local cluster and gather
information
• Type “help” to get a full list of all commands available
• “ls” provides a summary overview of the entire cluster
• “datasource <node> shun”
– Isolates node in cluster
• “replicator <node> offline”
– Stop node receiving replication data
• “datasource <node> recover”
– Re-Introduce node to cluster
• “switch” or “switch to <node>”
13
[LOGICAL] /nyc > ls
COORDINATOR[db1:AUTOMATIC:ONLINE]
ROUTERS:
+----------------------------------------------------------------------------+
|connector@db1.tt-0509[25431](ONLINE, created=0, active=0) |
|connector@db2.tt-0509[24548](ONLINE, created=0, active=0) |
|connector@db3.tt-0509[24803](ONLINE, created=0, active=0) |
+----------------------------------------------------------------------------+
DATASOURCES:
+----------------------------------------------------------------------------+
|db1(master:ONLINE, progress=0, THL latency=0.776) |
|STATUS [OK] [2017/08/17 11:00:53 AM UTC] |
+----------------------------------------------------------------------------+
| MANAGER(state=ONLINE) |
| REPLICATOR(role=master, state=ONLINE) |
| DATASERVER(state=ONLINE) |
| CONNECTIONS(created=0, active=0) |
+----------------------------------------------------------------------------+
. . .
13
Tools : trepctl
14
• “trepctl status” can be run from any node within a cluster to view the status of the local
replicator
• “trepctl status –r 3” will show status output refreshed every 3 second until CTRL+C
• “trepctl qs” provides a quick summary overview of the local replicator
• “trepctl perf” provides deeper diagnostics of the different stages in the replicators
• “trepctl offline|online”
$ trepctl qs
State: east Online for 21.069s, running for 45.654s
Latency: 0.837s from DB commit time on db1 into THL
21.839s since last database commit
Sequence: 1 last applied, 0 transactions behind (0-1 stored) estimate 0.00s before synchronization
14
Tools : tpm connector
15
• Simple and quick way to connect to MySQL CLI
• Tungsten Commands to query database and cluster stats
– Connector-based Tungsten commands are NOT available in Bridge Mode
– This is a good way to tell if you are in Bridge mode – if no commands are available, then you are in Bridge mode
– “tungsten help” will show all commands available
mysql> tungsten help;
+---------------------------------------------------------------------------------------------------------------------------------+
| Message |
+---------------------------------------------------------------------------------------------------------------------------------+
| tungsten connection status: display information about the connection used for the last request ran |
| tungsten connection count: gives the count of current connections to each one of the cluster datasources |
| tungsten cluster status: prints detailed information about the cluster view this connector has |
| tungsten show [full] processlist: list all running queries handled by this connector instance |
| tungsten show variables [like '<string>']: list connector configuration options in use. The <string> may contain '%' wildcards |
| tungsten flush privileges: reload user.map and refresh user credentials |
| tungsten mem info: display memory information about current JVM |
| tungsten gc: calls garbage collector |
| tungsten help: display this help message |
+---------------------------------------------------------------------------------------------------------------------------------+
9 rows in set (0.00 sec)
15
Log Files
16
• The /opt/continuent/service_logs/ directory contains both text files and symbolic links for
cluster log files.
• Links in the service_logs directory go to one of three (3) subdirectories:
– /opt/continuent/tungsten/tungsten-connector/log/
– /opt/continuent/tungsten/tungsten-manager/log/
– /opt/continuent/tungsten/tungsten-replicator/log/
tungsten@db1:/opt/continuent/service_logs $ ll
total 116
lrwxrwxrwx 1 tungsten tungsten 61 Jun 22 09:52 connector.log -> /opt/continuent/tungsten/tungsten-connector/log/connector.log
lrwxrwxrwx 1 tungsten tungsten 62 Jun 22 09:52 mysqldump.log -> /opt/continuent/tungsten/tungsten-replicator/log/mysqldump.log
lrwxrwxrwx 1 tungsten tungsten 55 Jun 22 09:52 tmsvc.log -> /opt/continuent/tungsten/tungsten-manager/log/tmsvc.log
lrwxrwxrwx 1 tungsten tungsten 60 Jun 22 09:52 trepsvc.log -> /opt/continuent/tungsten/tungsten-replicator/log/trepsvc.log
lrwxrwxrwx 1 tungsten tungsten 63 Jun 22 09:52 xtrabackup.log -> /opt/continuent/tungsten/tungsten-replicator/log/xtrabackup.log
16
Tools : tpm diag
17
• Provides support engineers with an entire overview of the cluster state, by:
– Gathering point-in-time status of all components in a cluster
– Gathering log files of all components in a cluster, including database logs to provide historical
information
– Bundles everything into one easy zip file that can be attached to a support case
– ALWAYS create a diag package when you contact support for assistance
• tungsten_send_diag
– Executes “tpm diag” to generate the diagnostic package
– Automatically uploads the package to support
– https://docs.continuent.com/tungsten-clustering-5.2/cmdline-tools-tungsten_send_diag.html
tungsten@db1:/opt/continuent/service_logs $ tungsten_send_diag –d –c 1234
17
Next Steps
• If you are interested in knowing more about the clustering software and would like to try it out
for yourself, please contact our sales team who will be able to take you through the details and
setup a POC – sales@continuent.com
• Read the documentation at http://docs.continuent.com/tungsten-clustering-5.2/index.html
• Subscribe to our Tungsten University YouTube channel! http://tinyurl.com/TungstenUni
• Visit the events calendar on our website for upcoming Webinars and Training Sessions
https://www.continuent.com/events/
18
18
For more information, contact us:
MC Brown
VP Products
mc.brown@continuent.com
Chris Parker
Director, Professional Services EMEA & APAC
chris.parker@continuent.com
Matthew Lang
Director, Professional Services Americas
matthew.lang@continuent.com
Eero Teerikorpi
Founder, CEO
eero.teerikorpi@continuent.com
+1 (408) 431-3305
Eric Stone
COO
eric.stone@continuent.com

More Related Content

PDF
Training Slides: Advanced 301: Multi-Site/Multi-Master Tungsten Clustering De...
PDF
Training Slides: Intermediate 202: Performing Cluster Maintenance with Zero-D...
PDF
Le guide de dépannage de la jvm
PDF
Low latency & mechanical sympathy issues and solutions
PDF
Q4.11: Sched_mc on dual / quad cores
PDF
MySQL Galera 集群
PDF
Percona XtraDB 集群内部
PDF
Advanced Percona XtraDB Cluster in a nutshell... la suite
Training Slides: Advanced 301: Multi-Site/Multi-Master Tungsten Clustering De...
Training Slides: Intermediate 202: Performing Cluster Maintenance with Zero-D...
Le guide de dépannage de la jvm
Low latency & mechanical sympathy issues and solutions
Q4.11: Sched_mc on dual / quad cores
MySQL Galera 集群
Percona XtraDB 集群内部
Advanced Percona XtraDB Cluster in a nutshell... la suite

What's hot (20)

PDF
HKG15-100: What is Linaro working on - core development lightning talks
PDF
Percona XtraDB Cluster
PPTX
Install ovs on local pc
PDF
Implementing Useful Clock Skew Using Skew Groups
PDF
Kernel Recipes 2015: Introduction to Kernel Power Management
DOCX
Volume migration from one aggregate to other without impacting the applicatio...
PPTX
Percona XtraDB Cluster SF Meetup
PDF
Understanding of linux kernel memory model
PDF
Training Slides: Basics 105: Backup, Recovery and Provisioning Within Tungste...
PDF
Js on-microcontrollers
PDF
High performance json- postgre sql vs. mongodb
PPTX
Multi mode multi corner (mmmc)
PPTX
Corralling Big Data at TACC
PDF
Webinar Slides: New Tungsten Clustering 6.0 and Tungsten Replicator 6.0
PDF
VMworld 2012 vBrownBag Tech Talk - Functional SRM Testing
PDF
Linux BPF Superpowers
PDF
BKK16-208 EAS
PDF
RxNetty vs Tomcat Performance Results
PDF
Percona XtraDB 集群文档
PDF
Introduction to RCU
HKG15-100: What is Linaro working on - core development lightning talks
Percona XtraDB Cluster
Install ovs on local pc
Implementing Useful Clock Skew Using Skew Groups
Kernel Recipes 2015: Introduction to Kernel Power Management
Volume migration from one aggregate to other without impacting the applicatio...
Percona XtraDB Cluster SF Meetup
Understanding of linux kernel memory model
Training Slides: Basics 105: Backup, Recovery and Provisioning Within Tungste...
Js on-microcontrollers
High performance json- postgre sql vs. mongodb
Multi mode multi corner (mmmc)
Corralling Big Data at TACC
Webinar Slides: New Tungsten Clustering 6.0 and Tungsten Replicator 6.0
VMworld 2012 vBrownBag Tech Talk - Functional SRM Testing
Linux BPF Superpowers
BKK16-208 EAS
RxNetty vs Tomcat Performance Results
Percona XtraDB 集群文档
Introduction to RCU
Ad

Similar to Training Slides: Advanced 302: Performing Schema Changes in a Multi-Site/Multi-Master Cluster (20)

PDF
Training Slides: Intermediate 201: Single and Multi-Site Tungsten Clustering ...
PDF
Training Slides: Basics 104: Simple Tungsten Clustering Deployments
PDF
Training Slides: Advanced 304: Upgrading From Native MySQL Replication To Tun...
PDF
Training Slides: Basics 102: Introduction to Tungsten Clustering
PDF
Training Slides: 104 - Basics - Working With Command Line Tools
PDF
Training Slides: Intermediate 204: Identifying and Resolving Issues with Tung...
PDF
Flex Your Database on 12c's Flex ASM and Flex Cluster
PDF
Flex your Database on 12c's Flex ASM Flex Cluster
PDF
Training Slides: 203 - Backup & Recovery
PDF
Training Slides: 202 - Monitoring & Troubleshooting
PDF
Training Slides: Advanced 303: Upgrading from Tungsten Clustering 5.x Multi-S...
PPT
Galera Cluster Best Practices for DBA's and DevOps Part 1
PDF
From swarm to swam-mode in the CERN container service
PPTX
Solr Lucene Conference 2014 - Nitin Presentation
PPTX
Solr Compute Cloud - An Elastic SolrCloud Infrastructure
PDF
Solr Compute Cloud – An Elastic Solr Infrastructure: Presented by Nitin Sharm...
PDF
Андрей Вагин. Все что вы хотели знать о Criu, но стеснялись спросить...
PDF
Open WG Talk #2 Everything you wanted to know about CRIU (but were afraid to ...
PDF
Open WG Talk #2 Everything you wanted to know about CRIU (but were afraid to ...
PDF
Checkpoint and Restore In Userspace
Training Slides: Intermediate 201: Single and Multi-Site Tungsten Clustering ...
Training Slides: Basics 104: Simple Tungsten Clustering Deployments
Training Slides: Advanced 304: Upgrading From Native MySQL Replication To Tun...
Training Slides: Basics 102: Introduction to Tungsten Clustering
Training Slides: 104 - Basics - Working With Command Line Tools
Training Slides: Intermediate 204: Identifying and Resolving Issues with Tung...
Flex Your Database on 12c's Flex ASM and Flex Cluster
Flex your Database on 12c's Flex ASM Flex Cluster
Training Slides: 203 - Backup & Recovery
Training Slides: 202 - Monitoring & Troubleshooting
Training Slides: Advanced 303: Upgrading from Tungsten Clustering 5.x Multi-S...
Galera Cluster Best Practices for DBA's and DevOps Part 1
From swarm to swam-mode in the CERN container service
Solr Lucene Conference 2014 - Nitin Presentation
Solr Compute Cloud - An Elastic SolrCloud Infrastructure
Solr Compute Cloud – An Elastic Solr Infrastructure: Presented by Nitin Sharm...
Андрей Вагин. Все что вы хотели знать о Criu, но стеснялись спросить...
Open WG Talk #2 Everything you wanted to know about CRIU (but were afraid to ...
Open WG Talk #2 Everything you wanted to know about CRIU (but were afraid to ...
Checkpoint and Restore In Userspace
Ad

More from Continuent (20)

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

Recently uploaded (20)

PDF
The Internet -By the Numbers, Sri Lanka Edition
PDF
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
PPTX
Internet___Basics___Styled_ presentation
PPTX
Funds Management Learning Material for Beg
PPTX
Introduction to Information and Communication Technology
PDF
RPKI Status Update, presented by Makito Lay at IDNOG 10
PPTX
Module 1 - Cyber Law and Ethics 101.pptx
PPTX
INTERNET------BASICS-------UPDATED PPT PRESENTATION
PPTX
artificial intelligence overview of it and more
PPTX
Job_Card_System_Styled_lorem_ipsum_.pptx
PDF
SASE Traffic Flow - ZTNA Connector-1.pdf
PPTX
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
PDF
Decoding a Decade: 10 Years of Applied CTI Discipline
PPT
tcp ip networks nd ip layering assotred slides
PDF
Paper PDF World Game (s) Great Redesign.pdf
PDF
The New Creative Director: How AI Tools for Social Media Content Creation Are...
PDF
Tenda Login Guide: Access Your Router in 5 Easy Steps
PDF
Slides PDF The World Game (s) Eco Economic Epochs.pdf
PPTX
Slides PPTX World Game (s) Eco Economic Epochs.pptx
PPTX
SAP Ariba Sourcing PPT for learning material
The Internet -By the Numbers, Sri Lanka Edition
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
Internet___Basics___Styled_ presentation
Funds Management Learning Material for Beg
Introduction to Information and Communication Technology
RPKI Status Update, presented by Makito Lay at IDNOG 10
Module 1 - Cyber Law and Ethics 101.pptx
INTERNET------BASICS-------UPDATED PPT PRESENTATION
artificial intelligence overview of it and more
Job_Card_System_Styled_lorem_ipsum_.pptx
SASE Traffic Flow - ZTNA Connector-1.pdf
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
Decoding a Decade: 10 Years of Applied CTI Discipline
tcp ip networks nd ip layering assotred slides
Paper PDF World Game (s) Great Redesign.pdf
The New Creative Director: How AI Tools for Social Media Content Creation Are...
Tenda Login Guide: Access Your Router in 5 Easy Steps
Slides PDF The World Game (s) Eco Economic Epochs.pdf
Slides PPTX World Game (s) Eco Economic Epochs.pptx
SAP Ariba Sourcing PPT for learning material

Training Slides: Advanced 302: Performing Schema Changes in a Multi-Site/Multi-Master Cluster

  • 1. Advanced: Performing Schema Changes in a Multi-Site Multi-Master Environment 1
  • 2. Topics In this short course we will: • Review the Cluster Architecture • Explore the challenges with Schema Changes • Describe the Rolling Maintenance Process • Describe the process of applying changes • Demo • Re-Cap Commands and resources used during the demo Course Prerequisite Learning – Basics: Introduction to Clustering – Intermediate: Performing Cluster Maintenance with Zero Downtime – Advanced: Multi-Site/Multi-Master Tungsten Clustering Deployments – Visit the Continuent website or Tungsten University on YouTube to watch these recordings • Continuent website https://www.continuent.com/videos/ • Tungsten University on YouTube https://www.youtube.com/channel/UCZ9iU-7nT1RLNnJvITFCsWA or http://tinyurl.com/TungstenUni 2 2
  • 7. Schema Changes – The Challenges • Table-Level Locking – Large tables with millions of rows – Blocks Application – Clogs Replication – Increased Memory usage • Application Compatibility – Does you application handle both before/after versions of the table? • Test and Baseline • ALTER TABLE <table> ADD <column> <definition> [BEFORE|AFTER] <column>; – Enable Replicator filters • https://docs.continuent.com/tungsten-clustering-5.2/deployment-msmm-monitoring- schemachange.html 7
  • 9. Rolling maintenance proceeds node-by-node starting with the slaves and ending with the master Slave upgrade Slave upgrade Switch Master upgrade • Shun slave • Upgrade MySQL • Return node to cluster • Discard and re-provision upon failure • Repeat for remaining slave(s) • Switch master to promote an upgraded slave • Upgrade old master • Maintenance is now done! 9
  • 10. Rolling maintenance • set policy maintenance on both clusters • On Slave Node: – datasource <node> shun – replicator <node> offline • Perform Schema Change ensuring session level bin logging disabled – datasource <node> recover • Repeat on all Slave Nodes in both cluster • Stop cross-cluster replicators • Promote a Slave in each cluster to Master – switch • Repeat steps on old Master after switch complete • Bring cross-cluster replicators online and return cluster Automatic 10
  • 11. Rolling Maintenance Demo - Tungsten Clustering and Tungsten Replicator 5.2.1 - Connectors in Port-Based Routing mode - Amazon AWS EC2 - MySQL Community 5.7.19 - Java 1.8 - Ruby 1.9 11
  • 13. Tools : cctrl • “cctrl” can be run from any node within a cluster to control the local cluster and gather information • Type “help” to get a full list of all commands available • “ls” provides a summary overview of the entire cluster • “datasource <node> shun” – Isolates node in cluster • “replicator <node> offline” – Stop node receiving replication data • “datasource <node> recover” – Re-Introduce node to cluster • “switch” or “switch to <node>” 13 [LOGICAL] /nyc > ls COORDINATOR[db1:AUTOMATIC:ONLINE] ROUTERS: +----------------------------------------------------------------------------+ |connector@db1.tt-0509[25431](ONLINE, created=0, active=0) | |connector@db2.tt-0509[24548](ONLINE, created=0, active=0) | |connector@db3.tt-0509[24803](ONLINE, created=0, active=0) | +----------------------------------------------------------------------------+ DATASOURCES: +----------------------------------------------------------------------------+ |db1(master:ONLINE, progress=0, THL latency=0.776) | |STATUS [OK] [2017/08/17 11:00:53 AM UTC] | +----------------------------------------------------------------------------+ | MANAGER(state=ONLINE) | | REPLICATOR(role=master, state=ONLINE) | | DATASERVER(state=ONLINE) | | CONNECTIONS(created=0, active=0) | +----------------------------------------------------------------------------+ . . . 13
  • 14. Tools : trepctl 14 • “trepctl status” can be run from any node within a cluster to view the status of the local replicator • “trepctl status –r 3” will show status output refreshed every 3 second until CTRL+C • “trepctl qs” provides a quick summary overview of the local replicator • “trepctl perf” provides deeper diagnostics of the different stages in the replicators • “trepctl offline|online” $ trepctl qs State: east Online for 21.069s, running for 45.654s Latency: 0.837s from DB commit time on db1 into THL 21.839s since last database commit Sequence: 1 last applied, 0 transactions behind (0-1 stored) estimate 0.00s before synchronization 14
  • 15. Tools : tpm connector 15 • Simple and quick way to connect to MySQL CLI • Tungsten Commands to query database and cluster stats – Connector-based Tungsten commands are NOT available in Bridge Mode – This is a good way to tell if you are in Bridge mode – if no commands are available, then you are in Bridge mode – “tungsten help” will show all commands available mysql> tungsten help; +---------------------------------------------------------------------------------------------------------------------------------+ | Message | +---------------------------------------------------------------------------------------------------------------------------------+ | tungsten connection status: display information about the connection used for the last request ran | | tungsten connection count: gives the count of current connections to each one of the cluster datasources | | tungsten cluster status: prints detailed information about the cluster view this connector has | | tungsten show [full] processlist: list all running queries handled by this connector instance | | tungsten show variables [like '<string>']: list connector configuration options in use. The <string> may contain '%' wildcards | | tungsten flush privileges: reload user.map and refresh user credentials | | tungsten mem info: display memory information about current JVM | | tungsten gc: calls garbage collector | | tungsten help: display this help message | +---------------------------------------------------------------------------------------------------------------------------------+ 9 rows in set (0.00 sec) 15
  • 16. Log Files 16 • The /opt/continuent/service_logs/ directory contains both text files and symbolic links for cluster log files. • Links in the service_logs directory go to one of three (3) subdirectories: – /opt/continuent/tungsten/tungsten-connector/log/ – /opt/continuent/tungsten/tungsten-manager/log/ – /opt/continuent/tungsten/tungsten-replicator/log/ tungsten@db1:/opt/continuent/service_logs $ ll total 116 lrwxrwxrwx 1 tungsten tungsten 61 Jun 22 09:52 connector.log -> /opt/continuent/tungsten/tungsten-connector/log/connector.log lrwxrwxrwx 1 tungsten tungsten 62 Jun 22 09:52 mysqldump.log -> /opt/continuent/tungsten/tungsten-replicator/log/mysqldump.log lrwxrwxrwx 1 tungsten tungsten 55 Jun 22 09:52 tmsvc.log -> /opt/continuent/tungsten/tungsten-manager/log/tmsvc.log lrwxrwxrwx 1 tungsten tungsten 60 Jun 22 09:52 trepsvc.log -> /opt/continuent/tungsten/tungsten-replicator/log/trepsvc.log lrwxrwxrwx 1 tungsten tungsten 63 Jun 22 09:52 xtrabackup.log -> /opt/continuent/tungsten/tungsten-replicator/log/xtrabackup.log 16
  • 17. Tools : tpm diag 17 • Provides support engineers with an entire overview of the cluster state, by: – Gathering point-in-time status of all components in a cluster – Gathering log files of all components in a cluster, including database logs to provide historical information – Bundles everything into one easy zip file that can be attached to a support case – ALWAYS create a diag package when you contact support for assistance • tungsten_send_diag – Executes “tpm diag” to generate the diagnostic package – Automatically uploads the package to support – https://docs.continuent.com/tungsten-clustering-5.2/cmdline-tools-tungsten_send_diag.html tungsten@db1:/opt/continuent/service_logs $ tungsten_send_diag –d –c 1234 17
  • 18. Next Steps • If you are interested in knowing more about the clustering software and would like to try it out for yourself, please contact our sales team who will be able to take you through the details and setup a POC – sales@continuent.com • Read the documentation at http://docs.continuent.com/tungsten-clustering-5.2/index.html • Subscribe to our Tungsten University YouTube channel! http://tinyurl.com/TungstenUni • Visit the events calendar on our website for upcoming Webinars and Training Sessions https://www.continuent.com/events/ 18 18
  • 19. For more information, contact us: MC Brown VP Products mc.brown@continuent.com Chris Parker Director, Professional Services EMEA & APAC chris.parker@continuent.com Matthew Lang Director, Professional Services Americas matthew.lang@continuent.com Eero Teerikorpi Founder, CEO eero.teerikorpi@continuent.com +1 (408) 431-3305 Eric Stone COO eric.stone@continuent.com