A Quick-Reference Guide for Tungsten Operations
A Quick-Reference Guide for Tungsten Operations
Check back often for updates to this page
When in doubt during a Production outage or problem, open an Urgent or High support case at https://continuent.zendesk.com/requests/new and use the following procedures to create the case:
Please visit our extensive library of training videos to learn at your own pace from our team of experts:
Search the docs at https://docs.continuent.com/
Use the tungsten_send_diag command to automatically generate and upload a Tungsten diag file
You will work with Continuent Support who will guide you through the process below
Verify that all Prerequisites have been satisfied
Sign up on our download portal and wait for an email confirming your activation
Download the software package(s) you want
Decide the type of install you want
INI-based: maintain a config file on each node and perform install and update on every node, so ssh used
Staging-based: maintain a configuration on a single node and perform install and update once on this selected “staging server”, password-less ssh access required from the “staging server” host to every node in every cluster you want to manage from the staging server host
Decide the level of security you want
Non-Secure - do not use SSL to encrypt the cluster communications, set disable-security-controls=true
Secure - use SSL to encrypt the cluster communications, set disable-security-controls=false
Create the desired configuration, usually aided by Continuent support
Ensure install=true
Ensure that profile-script= has been specified for the selected Tungsten OS user path, normally “tungsten” to ensure that the env is loaded properly
Create the database nodes with MySQL Server running on all nodes
Optionally seed the full dataset to all nodes
Become the Tungsten OS user via sudo, for example: sudo su - tungsten
Copy the software package to /opt/continuent/software (or some other place recorded in your config)
Extract the tarball
cd to the new dir
Optionally execute the validation step with tools/tpm validate -i
Execute the installation with tools/tpm install -i
Once the install is done on all nodes, refresh the env by logging out of the tungsten OS user shell, then log back in to load the new env
For INI-based installs, pick one node and copy the keys from /opt/continuent/share/ to all other nodes.
If you have password-less SSH enabled between the nodes, use the tpm copy-keys command, as of v7.0.3
For v7.0.0 and onwards, do this step even if you have a non-secure deployment and have set disable-security-controls=true
https://docs.continuent.com/clustering/security/deployment-security-enabling
Start the cluster by calling startall on every node
Check the cluster status using echo ls | cctrl command on one or more nodes, do at least once per cluster for Composite topologies
Validate the cluster with cctrl> cluster validate
Validate the cluster topology with cctrl> cluster topology validate from the global datasource
Use cctrl> cluster heartbeat to verify that replication is working on all nodes
this will insert a new seqno on the Primary which will then be replicated to all downstream replicas.
Check the Progress= number in cctrl> ls to confirm
Once your cluster is up and running, please strongly consider using our browser-based GUI, the Tungsten Dashboard
Docs for the Tungsten Dashboard are here: https://docs.continuent.com/dashboard
If you would like help with the Dashboard installation, please open a support case at https://continuent.zendesk.com/requests/new
You always need an odd number of nodes in a cluster. Connector-only nodes do not count, only nodes with a Manager.
The standard install path for Tungsten Clustering is /opt/continuent and /opt/replicator for the standalone Tungsten Replicator
The standard location for storing the Tungsten configuration file is /etc/tungsten/tungsten.ini
When creating a configuration, use the output of the hostname command to populate the nodename entries - the values inside the INI must match the hostname output, so if you are using short hostnames, then use the short name inside the INI, and if your hostname command returns the FQDN, then use the FQDN in the INI file
For OS’s with systemd, you must include install=true and keep that setting so that updates preserve the system state for Tungsten processes
Ensure that the binlog-format is defined in your my.cnf
The default setting is binlog-format=MIXED
Use binlog-format=ROW for Composite Active/Active (CAA) clusters, also for any cluster that will be feeding a non-MySQL target like Vertica
It is imperative that the open files limit for both the Tungsten and MySQL OS users be increased
https://docs.continuent.com/common/prerequisites/host-config/
For older OS’s where the /etc/init.d/ directory is in use, edit the /etc/security/limits.conf file; check with ulimit -a
NOTE: Older OS’s REQUIRE TABS, not Spaces in the /etc/security/limits.conf file
If your OS uses systemd and systemctl then you must configure the proper MySQL-specific service file in the /etc/systemd/system/ directory and verify that LimitNOFILE=infinity
Use /etc/hosts, NOT DNS - if DNS fails, so will the entire cluster!
https://docs.continuent.com/common/prerequisites/host-config/
Ensure that /etc/nsswitch.conf is set to hosts: files dns
Make sure that the required ports are open in all firewalls and iptables rules, check with iptables -L
Active witness nodes that run Manager only can provide the odd node when needed
it is important that enable-active-witnesses=true goes into each individual cluster section, NOT the default section
the witness node must be listed under the members= property
The use of ORM/Hibernate will prevent automatic read/write splitting by the Connectors as Hibernate will execute all reads within transactions. The Connectors are unable to inspect statements within transactions and therefore all transactions will always be directed to a Primary node.
The use of Triggers needs to be handled very carefully because Tungsten does not automatically disable triggers on the Replicas when using Row-based replication, which is possible when using MIXED, the recommended default for Clustering (except for CAA, which should use ROW - see the section below “CAA Facts and Best Practices”).
 Please see the online documentation for more details on how to address this situation:
https://docs.continuent.com/common/prerequisites/host-config/ 

When doing INI-based upgrades, just place the cluster in maintenance mode and issue the upgrade on all nodes at the same time
https://docs.continuent.com/clustering/operations/upgrading/operations-upgrade-ini
As long as the cluster is in maintenance mode then nothing needs to be shunned to perform the software upgrade
The only potential impact would be a momentary pause in replication as the replicators are restarted
The database is not restarted or touched
Performing the upgrade without a switch is actually less impactful as you do not need to worry about connections being terminated and re-routed to the new primary
If the connectors are on the same host then simply add --no-connectors to the tpm update command, and then issue tpm promote-connector at an appropriate time to restart the connector. At that point any in-flight connections will be terminated, but since this is under your control you can mitigate the impact by scheduling the restart accordingly.
Always use tools/tpm update --replace-release from the extracted software directory when upgrading version
There is excellent documentation about implementing security at https://docs.continuent.com/clustering/security/deployment-security-enabling
Setting the “umbrella” tpm option disable-security-controls=false sets the following other tpm options for you: --rmi-ssl=true, --thl-ssl=true, --rmi-authentication=true, --jgroups-ssl=true, --datasource-enable-ssl=true, --connector-ssl=true, --connector-rest-api-ssl=true, --manager-rest-api-ssl=true, --replicator-rest-api-ssl=true
As of v7.1.0 the tpm cert command handles all security operations for Tungsten
Use one of the below openssl commands to view multiple certificates stored in the same file:
while openssl x509 -noout -text; do :; done < fullchain.pem
openssl crl2pkcs7 -nocrl -certfile fullchain.pem | openssl pkcs7 -print_certs -text -noout
Some useful AWS CLI commands:
Add inbound rule(s) for a security group ID:shell> aws ec2 authorize-security-group-ingress --group-id sg-NNNNNNNN --protocol tcp --port 80 --cidr '0.0.0.0/0'
Delete inbound rule(s) for a security group ID:shell> aws ec2 revoke-security-group-ingress --group-id sg-NNNNNNNN --protocol tcp --port 80 --cidr '0.0.0.0/0'
List security groups by security group ID:shell> aws ec2 describe-security-groups --output json | jq -r '.SecurityGroups[]|.GroupId+" "+.GroupName'
List inbound rules for a specific security group ID:shell> aws ec2 describe-security-groups --group-ids sg-NNNNNNNN --output json | jq -r '.SecurityGroups[].IpPermissions[]|. as $parent|(.IpRanges[].CidrIp+" "+($parent.ToPort|tostring))'

Standard 3-node cluster
One single cluster, consisting of three or more nodes.
All clusters must have an odd number of nodes to establish voting quorum for failovers.
https://docs.continuent.com/clustering/deployment/topologies/deploy-standalone-cluster
Composite Active/Passive

2 or more 3-node clusters, one site active, all other sites passive, manual site-level failover
https://docs.continuent.com/clustering/deployment/topologies/deploy-cap-cluster
Composite Active/Active

2 or more 3-node clusters, all sites active
https://docs.continuent.com/clustering/deployment/topologies/deploy-caa-cluster
Dynamic Active/Active

2 or more 3-node clusters, all sites active, but the Connector is configured to route all writes to a single cluster at a time, auto-failover to another site if an entire cluster becomes unavailable
https://docs.continuent.com/clustering/deployment/topologies/deploy-daa-cluster
Distributed Datasource Groups

One single cluster, typically consisting of five or more nodes, always an odd number, possibly spread across more than one datacenter or region
DDG provides site-level automatic failover for the highest level of availability, and a single write Primary for data simplicity. This topology also supports MIXED-based replication for lower overhead and better performance.
https://docs.continuent.com/clustering/deployment/topologies/deploy-ddg
We have a number of great blog posts on this subject:
https://www.continuent.com/resources/blog/dig-and-de-mystify-tungsten-cluster-topologies
https://www.continuent.com/resources/blog/active-active-vs-active-passive-mysql-database-clustering
What are the requirements for an active/active cluster (network infrastructure and replication latency)?
The requirements are similar, but there will need to be an additional port opened for a second replication stream, and some MySQL requirements:
Row based replication - this helps avoid problems due to non-deterministic SQL statements and prevent data drift between locations.binlog-format = row
Auto-increment needs to be configured properly based on the number of clustersauto-increment-offset = 1auto-increment-increment = 4
The topology needs to be set explicitly in the INI:[global]topology=composite-multi-mastercomposite-datasources=east,west
Primary keys on all tables (strongly recommended.
Take advantage of auto-increment keys, as described here: https://docs.continuent.com/common/prerequisites/mysql-config/ )
There really isn't any latency requirement for asynchronous replication
The documentation page shows the commands to use to view the status: https://docs.continuent.com/clustering/deployment/topologies/deploy-caa-cluster#best-practices
What level of effort is required to go from active/passive to active/active?
There is some effort involved to do it with no downtime. If you can take a maintenance window, then we could just uninstall/reinstall
How does Tungsten handle latency between the two clusters? i.e. What happens if a record is written to region A and read from region B before the DB replication happens?
Tungsten Cluster does not handle conflict resolution – that is entirely up to the application.
When using active/active, the risk of requiring re-provision of nodes is greater, with large amounts of data this may introduce significant latency to re-provision Replicas, especially if all other sites need to be rebuilt due to a data drift issue. Create a procedure or become familiar with tprovision to re-provision nodes, and test your procedure ahead of time.
Use the InnoDB table type on all MySQL servers because without InnoDB storage engines we cannot guarantee that Replica replicators are crash safe, i.e., able to recover after either MySQL or the Tungsten Replicator fails.
Are there additional cost for an active/active cluster?
Yes, the license fee is a bit higher
Any other suggestion/considering before migrating to an active/active cluster?
The best suggestions come from the first blog. Active/Active takes a bit of planning. Please get in touch with us via https://continuent.zendesk.com/requests/new and we will help.
Implement and use the Tungsten Dashboard GUI
Use the Prometheus exporters and the monitor command available from v7.0.0 onwards
Use the REST APIv2 and tap command available from v7.0.0 onwards
Implement the various Nagios and Zabbix bundled tools
https://www.continuent.com/resources/blog/monitoring-clusters-for-mysql
https://www.continuent.com/resources/blog/essential-mysql-cluster-monitoring-using-nagios-and-nrpe
Before performing any operation, use cctrl> ls to see and UNDERSTAND the state of the cluster
All OS clocks MUST be in sync using NTP and all MUST have the same timezone.
Never shun a Primary
Never have two online Primaries at the same time - that causes a cluster panic and FAILSAFE-SHUN condition
A cluster datasource will not come online automatically via the Manager until the replicator on that node has been online for the first time
The Replicator’s current position information is stored in the MySQL server in a table called trep_commit_seqno . Use the dsctl get command to see the values.
To get access to Tungsten command-line tab-completion and the Tungsten commands in your PATH, please source the environment file /opt/continuent/share/env.sh in your shell init script (i.e. ~/.bash_profile)
To perform maintenance on just one node, the best practice is to remain in Automatic mode and simply SHUN that specific node. This procedure keeps automatic failover and recovery active, keeping the risk position lower.
cctrl> datasource NODE shun
To perform maintenance on the current Primary, the best practice is to remain in Automatic mode and execute a manual switch command inside the cctrl cli tool. This will move the Primary role to another node, allowing the old node to be shunned as it is now a Replica after the switch.
cctrl> switch
cctrl> datasource OLD_PRIMARY shun
To perform maintenance on more than one node in a local cluster then
cctrl> set policy maintenance
The default location to look for Tungsten logs is in /opt/continuent/service_logs
The key log files to look for are:
Connector: connector.log
Manager: tmsvc.log
Replicator: trepsvc.log
Most of the files in /opt/continuent/service_logs are symbolic links to the real log files in various sub-directories, example link targets shown below:
/opt/continuent/tungsten/tungsten-manager/log/cctrl.log/opt/continuent/tungsten/tungsten-connector/log/connector-api.log/opt/continuent/tungsten/tungsten-connector/log/connector.log/opt/continuent/tungsten/tungsten-manager/log/manager-api.log/opt/continuent/tungsten/tungsten-replicator/log/mysqldump.log/opt/continuent/tungsten/tungsten-replicator/log/replicator-api.log/opt/continuent/tungsten/tungsten-manager/log/tmsvc.log/opt/continuent/tungsten/tungsten-replicator/log/trepsvc.log/opt/continuent/tungsten/tungsten-replicator/log/xtrabackup.log
Failover is immediate, and could possibly result in data loss, even though we do everything we can to get all events moved to the new Primary.
In the case of a primary failure, client connections are closed immediately, the failed node is automatically SHUNNED and the Primary role is switched to the most up to date Replica within the dataservice, which becomes the new Primary and any remaining Replicas are pointed to the newly promoted Primary.
Failover leaves the original primary in a SHUNNED state.
To make the failed Primary into a Replica once it is healthy, use either of the following:
cctrl> recover
cctrl> datasource FAILED_NODE recover
While there is no specific SLA because every customer’s environment is different, we strive to deliver a very low RTO and a very high RPO. For example, a cluster failover normally takes around 30 seconds depending on load, so the RTO is typically under 1 minute. Additionally, the RPO is 100%, since we keep copies of the database on Replica nodes, so that a failover happens with zero data loss under the vast majority of conditions.
https://www.continuent.com/resources/webinars/continuent-tungsten-value-proposition
Training Video: https://www.continuent.com/resources/trainings/202-intermediate-monitoring-troubleshooting at 21:30
https://www.continuent.com/resources/blog/tungsten-cluster-how-does-failover-work-part-1-of-3
https://docs.continuent.com/clustering/operations/datasource-recovery/operations-recovery-primary
Advanced: https://docs.continuent.com/clustering/manager/failover-behavior/
The Tungsten Manager is constantly executing a set of health checks and reacts to the results of those tests based on rules.
The cluster policy dictates how the cluster reacts when certain conditions are met. The policy controls if the rules are fired or not.
In Automatic policy mode, or “automatic mode” for short, any rules that are triggered are acted upon. When the cluster is in Automatic mode, failures of either the Primary or any Secondary are handled without human intervention.
In Maintenance policy mode, or “maintenance mode” for short, any rules that are triggered are ignored. When the cluster is in Maintenance mode, failures of either the Primary or any Secondary are ignored and require human intervention.
Maintenance mode should be used when administration or maintenance is required on the entire cluster, or you want automatic failover and recovery to be disabled.
Advanced: When a cluster is in Maintenance mode, a Connector will NOT pause all incoming requests if connectivity is lost with the selected Manager. This allows for safe Manager restarts and updates/upgrades without the calling application/clients being impacted.
cctrl> set policy maintenance
cctrl> set policy automatic
https://www.continuent.com/resources/blog/tungsten-cluster-policies-be-automatic
https://docs.continuent.com/clustering/operations/operations-policymodes
https://docs.continuent.com/common/cli/check_tungsten_policy
A SHUNNED datasource implies that the datasource is OFFLINE, and therefore is not connected or actively part of the dataservice.
Unlike the OFFLINE state, a SHUNNED datasource is not automatically recovered by the Manager layer.
Maintenance is best carried out while a host is in the SHUNNED state and the cluster policy is AUTOMATIC.
Datasources can be manually or automatically shunned. The current reason for the SHUNNED state is indicated in the cctrl> ls output in the STATE field.
cctrl> datasource SHUNNED_NODE recover
https://www.continuent.com/resources/blog/recently-continuent-customer-asked-part-5-state-field
https://docs.continuent.com/clustering/operations/dataservice-status/operations-status-states
When in doubt during a Production outage or problem:
Open an Urgent or High support case at https://continuent.zendesk.com/requests/new
Use the following procedures to create the case https://docs.continuent.com/common/troubleshooting/support-process
When healing a node, ensure each layer is healthy before proceeding to the next one, in order from first to last:
MySQL Server must be up and running and accepting connections, test using:
service mysqld status
tpm mysql
Tungsten Replicator must be running and online, test using:
replicator status
trepctl services
trepctl -service {svcName} qs
trepctl -service {svcName} perf
trepctl -service {svcName} status
NOTE: if there is only one Replicator service, there is no need to specify -service {svcName}
The Tungsten manager must be running and the datasource (host) must be online, check with:
manager status
echo ls | cctrl
The Tungsten Connector proxy must be running and able to reach the database server, along with at least one available Primary node, and for Composite clusters, the cluster(s) must be online too. Test using:
connector status
tpm connector
When healing a failed-over cluster node, use the datasource NODENAME recover command NOT datasource NODENAME online
If you cannot get connected through the connector, are all services online at the Composite level? - check with cctrl -multi
For Manager Java Heap Alerts and slow Manager response times:
cctrl> set policy maintenance
On all nodes: shell> manager stop
When all Managers have been stopped on all nodes, then on all nodes: shell> manager start
cctrl> set policy automatic
To re-provision (rebuild) a replica node, use the tprovision command
The tpm command is used to install, configure, upgrade and maintain Tungsten clusters. Stands for “Tungsten Package Manager”.
Use the tpm mysql command to connect directly to the MySQL server, only works on database nodes
Use the tpm connector command to connect through the Connector proxy to get to the MySQL server, only works on nodes where the Connector is installed
Use the tpm reverse command to see the current running cluster configuration
Use the tpm ask command to get information about the cluster
Use the tpm ask keys command to get a list of available information to ask for
Use the tpm ask summary command to get a consolidated list of key Tungsten information (as of v6.1.14)
Use the tpm firewall command to see a list of firewall ports that need to be open for the cluster to work
Use the tpm diag command to generate a compressed tarball of cluster diagnostic information for upload to Continuent Support
Use the tungsten_send_diag command to automatically generate and upload a diag tarball for you
To send a diag: tungsten_send_diag --diag --case 1234
To send a file: tungsten_send_diag --file {fullpath} --case 1234
Use the tpm report command to see all of the communications channels inside the cluster and their associated settings and values
Use the tpm policy command to easily get and set the cluster policy, either maintenance (-m) or automatic (-a)
The cctrl command is used to control the cluster. It connects to the local Manager process, so the Manager must be started and fully initialized before cctrl will be able to connect.
Use TAB to get a list of available sub-commands and to auto-complete hostnames
Use cctrl -multi in composite clusters to be able to see remote clusters
cctrl> help
cctrl> help {TOPIC}
cctrl> use <TAB>
cctrl> ls
cctrl> ls -l
cctrl> cluster heartbeat
cctrl> ls resources
cctrl> cluster validate
cctrl> cluster topology validate
cctrl> set policy maintenance
cctrl> set policy automatic
cctrl> ping {HOST}
ADVANCED: You can get cctrl to execute commands via a pipe: echo 'ls' | cctrl
ADVANCED: shell> cctrl -output debug -multi -expert
Use trepctl commands to see the current status of the Replicator, along with the optional -r X for repeat every X number of seconds. The Replicator process must be running and fully initialized since the trepctl command connects to the local Replicator process by default.
trepctl services
trepctl -service {svcName} status
trepctl -service {svcName} qs -r 3
trepctl -service {svcName} perf -r 3
The thl command provides access and control of the extracted events stored on disk in THL format
Use the thl -service {serviceName} info command to see a summary of all available THL on that node
Use the thl -service {serviceName} index command to see a list of all available THL files and the sequence numbers in each file
Use thl -service {serviceName} list -seqno {seqno} -sql to see the contents of an event
Use the dsctl -service {serviceName} get command to see the current position of the replication from the perspective of the tracking schema in the database
To see all available Prometheus metrics
Use tmonitor test to see all metrics with descriptions and headers
Use tmonitor -q -f ^tungsten_ test to see only the actual Tungsten-specific metrics lines
The tapi command is used to interface with the Tungsten REST APIv2 from the command line.
To see the current Connector operating mode:
Use the connector mode command, as of v7.0.1
Use the tpm ask isDirect command
Use the tpm ask isSmartScale command
Use the tpm ask isBridgeMode command
Use the cctrl command to control the cluster
Use the cctrl -multi command to control a Composite cluster
Use the cctrl> set policy maintenance to set the cluster to Maintenance mode where the manager will do nothing to heal the cluster
Use the cctrl> set policy automatic to set the cluster to Automatic mode where the Manager will take actions to heal the cluster
Validate the cluster with cctrl> cluster validate
Validate the cluster topology with cctrl> cluster topology validate from the top-level datasource
To change the role of a datasource, specify the role using the cctrl command
To make a node the Primary: cctrl> datasource NODENAME master
To make a node a Replica: cctrl> datasource NODENAME slave
To make a node a Relay: cctrl> datasource NODENAME relay
In MAINTENANCE mode, stopping/restarting any or all of the Managers will have zero impact on the cluster other than preventing automatic failover in the event of a MySQL Server failure; client traffic will continue to flow because the Connectors have been told to freeze state.
To change the role of a replicator, specify the role using the -role parameter. The replicator must be offline when the role change is issued.
To make a node the Primary:shell> trepctl offline; trepctl setrole -role master; trepctl online;
To make a node a Replica or Relay, the URI of the Primary must be supplied:shell> trepctl offline; trepctl setrole -role slave -uri thl://host1:2112/; trepctl online;
https://docs.continuent.com/common/cli/trepctl/service/trepctl-setrole
Add a new cluster to an existing CAP or CAA
Remove a cluster from an existing CAP or CAA
Tungsten Documentation:
MySQL Documentation:
Things to watch out for:
SQL_MODE changes
When replicating between lower to higher versions (MySQL 5.x to MySQL 8.x), you need to enable the dropsqlmode filter in your INI:
svc-applier-filters=dropsqlmode
When replicating between higher to lower versions (MySQL 8.x to MySQL 5.x), you need to enable both the dropsqlmode filter and the mapcharset filter, additionally you will need to configure the dropsqlmode filter differently:
svc-applier-filters=dropsqlmode,mapcharset
property=replicator.filter.dropsqlmode.modes=TIME_TRUNCATE_FRACTIONAL
IMPORTANT: The mapcharset MUST be removed when replicating between the same MySQL versions
Blog post about tuning an entire node:
https://www.continuent.com/resources/blog/make-it-faster-improving-mysql-write-performance-tungsten-cluster-replicas
Add skip-name-resolve=ON to my.cnf , and check with mysql> select @@skip_name_resolve;
mysql> set mysql global variable sync_binlog = 0; on Replicas to increase write speed
tungsten.ini block-commit-size=100 may increase the throughput on Replicas
https://docs.continuent.com/common/performance/?_highlight=block&_highlight=comm
https://docs.continuent.com/common/cli/trepctl/service/trepctl-perflog
https://docs.continuent.com/common/performance/tuning-replicator-memory/
For MySQL <= 5.6, mysql> set global innodb_stats_on_metadata=OFF;
Example INI [default] Section
#### Basic defaults
home-directory=/opt/continuent
profile-script=~/.bash_profile
start-and-report=true
user=tungsten
mysql-allow-intensive-checks=true
#### Register services to automatically restart on a server reboot
install=true
#### DDG is disabled by default - update individual tungsten.ini files with value > 0 to enable
# https://www.continuent.com/resources/docs/latest/tc/deployment-advanced-ddg.html#deployment-advanced-ddg-configure
datasource-group-id=0
#### Security is enabled by default
disable-security-controls=false
# https://www.continuent.com/resources/docs/latest/tc/cmdline-tools-tpm-configoptions-c.html#cmdline-tools-tpm-configoptions-connector-ssl-capable
connector-ssl-capable=true
#### Define the application layer settings
application-port=3306
application-readonly-port=3307
application-user=app_user
application-password=goodpassword
#### Define the database layer settings
replication-user=tungsten
replication-password=goodpassword
replication-port=13306
# https://www.continuent.com/resources/docs/latest/tc/how-to-enable-database-ssl.html
datasource-enable-ssl=true
datasource-mysql-ssl-ca=/etc/mysql/certs/ca.pem
datasource-mysql-ssl-cert=/etc/mysql/certs/client-cert.pem
datasource-mysql-ssl-key=/etc/mysql/certs/client-key.pem
#### Connector Settings of Interest
connector-bridge-mode=true
connector-readonly=false
# https://www.continuent.com/resources/docs/latest/tc/connector-routing-smartscale.html
connector-smartscale=false
connector-smartscale-sessionid=DATABASE
#### Replicator Settings of Interest
#backup-method=xtrabackup
#repl-backup-online=false
#log-directory=/var/lib/mysql
#thl-directory=/opt/continuent/thl
#repl-thl-log-retention=7d
#thl-log-file-size=100000
#### Define the Prometheus exporter settings
property=manager.prometheus.exporter.enabled=true
property=replicator.prometheus.exporter.enabled=true
property=connector.prometheus.exporter.enabled=true
property=replicator.prometheus.exporter.port=8091
property=manager.prometheus.exporter.port=8092
property=connector.prometheus.exporter.port=8093
#### Define the REST API settings
## REST API user & pass
rest-api-admin-user=tungsten
rest-api-admin-pass=goodpassword
## Connector REST API Settings
connector-rest-api=true
connector-rest-api-address=0.0.0.0
connector-rest-api-authentication=true
connector-rest-api-port=8096
connector-rest-api-ssl=true
## Manager REST API Settings
manager-rest-api-port=8090
manager-rest-api=true
manager-rest-api-address=0.0.0.0
manager-rest-api-full-access=true
manager-rest-api-ssl=true
manager-rest-api-authentication=true
## Replicator REST API Settings
replicator-rest-api-port=8097
replicator-rest-api=true
replicator-rest-api-address=0.0.0.0
replicator-rest-api-ssl=true
replicator-rest-api-authentication=true
Example INI for Standalone Clusters (STA)
[alpha]
topology=clustered
master=db11
members=db11,db12,db13
connectors=db11,db12,db13,app11,app12Example INI for Composite Active/Passive (CAP)
[alpha]
topology=clustered
master=db11
members=db11,db12,db13
connectors=db11,db12,db13,app11,app12
[beta]
topology=clustered
relay-source=alpha
relay=db21
members=db21,db22,db23
connectors=db21,db22,db23,app21,app22
[global]
composite-datasources=alpha,betaExample INI for Composite Active/Active (CAA)
[alpha]
topology=clustered
master=db11
members=db11,db12,db13
connectors=db11,db12,db13,app11,app12
[beta]
topology=clustered
master=db21
members=db21,db22,db23
connectors=db21,db22,db23,app21,app22
[global]
composite-datasources=alpha,beta
topology=composite-multi-master
These are the shell aliases I regularly use on our demo nodes. As always, Your Mileage May Vary ;-}
alias api='tapi -j '
alias atat='echo '\''select concat("R/O=",@@hostname); select concat("R/W=",@@hostname) for update;'\'' | tpm connector 2>/dev/null | grep -v '\''@@hostname'\'''
alias atatro='echo '\''select @@hostname;'\'' | tpm connector 2>/dev/null | grep -v '\''@@hostname'\'''
alias atatrw='echo '\''select concat("R/W=",@@hostname) for update;'\'' | tpm connector 2>/dev/null | grep -v '\''@@hostname'\'''
alias catdp='cat /opt/continuent/tungsten/cluster-home/conf/dataservices.properties'
alias ccls='echo ls | cctrl'
alias cclsm='echo ls | cctrl -multi'
alias cclsp='echo ls | cctrl | grep progress'
alias ccm='cctrl -multi'
alias cdb='cd /home/tungsten/bin'
alias cdd='cd /home/tungsten/diags'
alias cdg='cd /opt/continuent/generated'
alias cdh='cd /opt/continuent/share'
alias cdini='cd /etc/tungsten/'
alias cdl='cd /opt/continuent/service_logs'
alias cdr='cd /opt/continuent/releases'
alias cds='cd /opt/continuent/software'
alias cdsl='cd /opt/continuent/software/latest'
alias cdt='cd /opt/continuent/tungsten'
alias chb='echo '\''cluster heartbeat'\'' | cctrl'
alias cini='cat /etc/tungsten/tungsten.ini'
alias ini='echo /etc/tungsten/tungsten.ini'
alias isonline='check_tungsten_online'
alias loadwatch='while true; do uptime| awk -F'\''load average:'\'' '\''{print $2}'\'' ; sleep 5; done'
alias rso='replicator start offline'
alias se='source /opt/continuent/share/env.sh'
alias stamp='/usr/bin/date '\''+%Y%m%d%H%M%S'\'''
alias tca='tpm cert aliases'
alias tcg='tpm cert gen'
alias tci='tpm cert info'
alias tcl='tpm cert list'
alias tfo='tungsten_find_orphaned'
alias tin='tools/tpm install'
alias toff='trepctl -all-services offline'
alias ton='trepctl -all-services online'
alias tq='tpm query '
alias tqs='tpm query staging'
alias tqv='tpm query version'
alias treset='trepctl -all-services offline; trepctl -all-services reset -all -y; trepctl -all-services online'
alias ts='trepctl status -all-services'
alias tsa='trepctl services'
alias tsg='trepctl status | egrep stat\|appl\|role'
alias tsl='trepctl services | grep serviceName | awk -F: '\''{print $2}'\'''
alias tssg='trepctl services | egrep stat\|appl\|serviceName\|role'
alias tui='tpm update -i'
alias tun='tpm uninstall --i-am-sure'
alias tuns='tools/tpm uninstall --i-am-sure'
alias tup='tools/tpm update -i --replace-release'
alias tv='tools/tpm validate'
alias tvu='tools/tpm validate-update'
alias tvup='tools/tpm validate-update'
alias vini='vim /etc/tungsten/tungsten.ini'
alias vlisteners='vi /opt/continuent/tungsten/tungsten-connector/conf/listeners.json'
alias vumap='vi /opt/continuent/tungsten/tungsten-connector/conf/user.map'
Always keep up to date with the latest release notes here
Tungsten Clustering: https://docs.continuent.com/clustering/appendix/release-notes/
Tungsten Replicator: https://docs.continuent.com/replicator/appendix/release-notes/
Tungsten Dashboard: https://docs.continuent.com/dashboard/appendix/release-notes/