The procedures in this section are designed for the Multi-Site/Active-Active topology ONLY. Do NOT use these procedures for Composite Active/Active Clustering using v6 onwards.
For version 6.x onwards, Composite Active/Active Clustering, please refer to Section 3.3, “Deploying Composite Active/Active Clusters”
Creating the configuration requires two distinct steps, the first to create the two Tungsten Cluster deployments, and a second that creates the Tungsten Replicator configurations on different network ports, and different install directories.
Download and extract the Tungsten Cluster and Tungsten Replicator :
shell>cd /opt/continuent/software
shell>tar zxf
shell>tungsten-clustering-7.1.4-10.tar.gz
tar zxf
tungsten-replicator-7.1.4-10.tar.gz
Change to the Tungsten Cluster directory:
shell> cd tungsten-clustering-7.1.4-10
Create the /etc/tungsten/tungsten.ini
> using the example below
as a template. Once created to suit your needs, run the tpm to
perform the installation.
shell> vi /etc/tungsten/tungsten.ini
[defaults] user=tungsten install-directory=/opt/continuent replication-user=tungsten replication-password=secret replication-port=13306 profile-script=~/.bashrc application-user=app_user application-password=secret application-port=3306 skip-validation-check=MySQLPermissionsCheck rest-api-admin-user=apiuser rest-api-admin-password=secret connector-rest-api-address=0.0.0.0 manager-rest-api-address=0.0.0.0 replicator-rest-api-address=0.0.0.0
[defaults.replicator] home-directory=/opt/replicator rmi-port=10002 executable-prefix=mm
[east] topology=clustered connectors=east1,east2,east3 master=east1 members=east1,east2,east3
[west] topology=clustered connectors=west1,west2,west3 master=west1 members=west1,west2,west3
[east_west] topology=cluster-slave master-dataservice=east slave-dataservice=west thl-port=2113
[west_east] topology=cluster-slave master-dataservice=west slave-dataservice=east thl-port=2115
Configuration group defaults
The description of each of the options is shown below; click the icon to hide this detail:
System User
install-directory=/opt/continuent
Path to the directory where the active deployment will be installed. The configured directory will contain the software, THL and relay log information unless configured otherwise.
For databases that required authentication, the username to use when connecting to the database using the corresponding connection method (native, JDBC, etc.).
The password to be used when connecting to the database using
the corresponding
--replication-user
.
The network port used to connect to the database server. The default port used depends on the database being configured.
Append commands to include env.sh in this profile script
Database username for the connector
Database password for the connector
Port for the connector to listen on
skip-validation-check=MySQLPermissionsCheck
The skip-validation-check
disables a given validation check. If any validation check
fails, the installation, validation or configuration will
automatically stop.
Using this option enables you to bypass the specified check, although skipping a check may lead to an invalid or non-working configuration.
You can identify a given check if an error or warning has been raised during configuration. For example, the default table type check:
ERROR >> centos >> The datasource root@centos:3306 (WITH PASSWORD) » uses MyISAM as the default storage engine (MySQLDefaultTableTypeCheck)
The check in this case is
MySQLDefaultTableTypeCheck
,
and could be ignored using
skip-validation-check=MySQLDefaultTableTypeCheck
.
Values can be passed as a comma-separated list, or single skip-validation-check
entries for each check to be skipped.
Setting both
skip-validation-check
and
enable-validation-check
is
equivalent to explicitly disabling the specified check.
connector-rest-api-address=0.0.0.0
Address for the API to bind too.
manager-rest-api-address=0.0.0.0
Address for the API to bind too.
replicator-rest-api-address=0.0.0.0
Address for the API to bind too.
Configuration group defaults.replicator
The description of each of the options is shown below; click the icon to hide this detail:
home-directory=/opt/replicator
Path to the directory where the active deployment will be installed. The configured directory will contain the software, THL and relay log information unless configured otherwise.
Replication RMI listen port
When enabled, the supplied prefix is added to each command alias
that is generated for a given installation. This enables
multiple installations to co-exist and and be accessible through
a unique alias. For example, if the executable prefix is
configured as east
, then
an alias for the installation to trepctl will
be created as east_trepctl.
Alias information for executable prefix data is stored within
the
$CONTINUENT_ROOT/share/aliases.sh
file for each installation.
Configuration group east
The description of each of the options is shown below; click the icon to hide this detail:
Replication topology for the dataservice.
Hostnames for the dataservice connectors
The hostname of the primary (extractor) within the current service.
Hostnames for the dataservice members
Configuration group west
The description of each of the options is shown below; click the icon to hide this detail:
Replication topology for the dataservice.
Hostnames for the dataservice connectors
The hostname of the primary (extractor) within the current service.
Hostnames for the dataservice members
Configuration group east_west
The description of each of the options is shown below; click the icon to hide this detail:
Replication topology for the dataservice.
Dataservice name to use as a relay source
Dataservice to use to determine the value of host configuration
Port to use for THL Operations
Configuration group west_east
The description of each of the options is shown below; click the icon to hide this detail:
Replication topology for the dataservice.
Dataservice name to use as a relay source
Dataservice to use to determine the value of host configuration
Port to use for THL Operations
If you plan to make full use of the REST API (which is enabled by default) you will need to also configure a username and password for API Access. This must be done by specifying the following options in your configuration:
rest-api-admin-user=tungsten rest-api-admin-pass=secret
Run tpm to validate the installation. Providing no errors are return, you can then continue to install the software.
shell >./tools/tpm validate
shell >./tools/tpm install
During the startup and installation, tpm will notify you of any problems that need to be fixed before the service can be correctly installed and started. If the service starts correctly, you should see the configuration and current status of the service.
Change to the Tungsten Replicator directory:
shell> cd tungsten-replicator-7.1.4-10
Run tpm to validate the replicator installation. Providing no errors are return, you can then continue to install the software.
shell >./tools/tpm validate
shell >./tools/tpm install
During the startup and installation, tpm will notify you of any problems that need to be fixed before the service can be correctly installed and started. If the service starts correctly, you should see the configuration and current status of the service.
Initialize your PATH
and environment.
shell>source /opt/continuent/share/env.sh
shell>source /opt/replicator/share/env.sh
The Multi-Site/Active-Active clustering should be installed and ready to use.