By Erkan Yanar
In the previous article of this series, we described how to run a multi-node Galera Cluster on a single Docker host.
In this article, we will describe how to deploy Galera Cluster over multiple Docker hosts.
By design, Docker containers are reachable using port-forwarded TCP ports only, even if the containers have IP addresses. So we will set up port forwarding for all TCP ports that are required for Galera to operate.
The following TCP port are used by Galera:
- 3306-MySQL port
- 4567-Galera Cluster
- 4568-IST port
- 4444-SST port
Before we start, we need to stop enforcing AppArmor for Docker:
$ aa-complain /etc/apparmor.d/docker
Building a multi-node cluster using the default ports
Building a multi-node cluster using the default ports is not complicated. Besides mapping the ports 1:1, we also need to set …
[Read more]