Container Deployments

In the standard deployment methods of Galera Cluster, the node runs on a server in the same manner as would an individual standalone instance of MySQL. In container deployments, the node runs in a containerized virtual environment on the server. You may find these methods useful in portable deployments across numerous machines, testing applications that depend on Galera Cluster, process isolation for security, or scripting the installation and configuration process.

For the most part, the configuration for a node running in a containerized environment remains the same as well the node runs in the standard manner. But, there are some parameters that draw their defaults from the base system configurations. These you need to set manually, as the jail is unable to access the host file system.

  • wsrep_node_address The node determines the default address from the IP address on the first network interface. Jails cannot see the network interfaces on the host system. You need to set this parameter to ensure that the cluster is given the correct IP address for the node.
  • wsrep_node_name The node determines the default name from the system hostname. Jails have their own hostnames, distinct from that of the host system.

Bear in mind that the configuration file must be placed within the container /etc directory, not that of the host system.