Skip to main content
Common Reference

Directory Locations and Configuration

On each host within the deployment you must pick, and configure, a number of directories to be used by Tungsten, as follows:

  • /tmp Directory

    The /tmp directory must be accessible and executable, as it is the location where some software will be extracted and executed during installation and setup. The directory must be writable by the tungsten user.

    On some systems, the /tmp filesystem is mounted as a separate filesystem and explicitly configured to be non-executable (using the noexec filesystem option). Check the output from the mount command.

  • Installation Directory

    Tungsten needs to be installed in a specific directory. The recommended solution is to use /opt/continuent. This information will be required when you configure the software.

    The directory should be created, and the owner and permissions set for the configured user:

    shell> sudo mkdir /opt/continuent
    shell> sudo chown -R tungsten: /opt/continuent
    shell> sudo chmod 700 /opt/continuent

    If you are installing a separate Tungsten Replicator installation alongside Tungsten Clustering, then the recommended directory for this additional installation is /opt/replicator

  • Software Staging Directory

    The staging directory is where you download and store the installation packages and from where you first install the software, or issue updates/upgrades. The recommended solution is to use [INSTALL_DIR]/software, for example:

    shell> sudo mkdir /opt/continuent/software
    shell> sudo chown -R tungsten: /opt/continuent

    The directory should be created, and the owner and permissions set for the configured user.

  • Configuration File Directory

    It is recommended to create a directory for the configuration file (tungsten.ini) The recommended solution is to use /etc/tungsten.

    The directory should be created, and the owner and permissions set for the configured user:

    shell> sudo mkdir /etc/tungsten
    shell> sudo chown -R tungsten: /etc/tungsten
  • Home Directory

    The home directory of the tungsten user must be writable by that user.

  • THL Directory

    By default, THL files will be stored within the [INSTALL_DIR]/thl directory and this is usually suitable for most installations, however for high workload systems, it would be advisable to create a dedicated filesystem mount point and path for THL. Ensure this directory is created with the same ownership permissions as the Installation Directory.

    Warning

    It is strongly advised to NOT store THL files on the same disk partition as the MySQL Binary Logs to avoid unnecessary I/O contention