Database Replication and Clustering
When using an INI configuration, installation and updates will still be
done using the tpm command. Instead of providing
configuration information on the command line, the tpm
command will look for an INI file at
/etc/tungsten.ini
or
/etc/tungsten/tungsten.ini
. The file must be readable
by the tungsten system user.
In Tungsten Replicator 3.0 and later, tpm will
automatically search all INI files within the
/etc/tungsten
and current directories. An alternative
directory can be searched using --ini
option to tpm.
Here is an example of a tungsten.ini
file that would
setup a simple dataservice.
[defaults] application-password=secret application-port=3306 application-user=app replication-password=secret replication-port=13306 replication-user=tungsten start-and-report=true user=tungsten [alpha] connectors=host1,host2,host3 master=host1 members=host1,host2,host3
The property names in the INI file are the same as what is used on the
command line. Simply remove the leading
--
characters and add it to the
proper section. Each section in the INI file replaces a single
tpm configure call. The section name inside of the
square brackets is used as the service name. In the case of the
[defaults]
section, this will act
like the tpm configure defaults command.
Include any host-specific options in the appropriate section. This configuration will only apply to the local server, so there is no need to put host-specific settings in a different section.