Galera Cluster works on Oracle Linux

We recently had a customer request to run Galera Cluster on Oracle Linux. We are pleased to tell you that you can use the Red Hat Enterprise Linux 8 or Red Hat Enterprise Linux 9 repositories: for the latest Galera Cluster with MySQL 8 and the wsrep library.

It is worth noting that while it is difficult to find an Oracle Linux image in many cloud providers, there is Oracle Cloud that offers Oracle Linux as a default. However, remember that if you are using Oracle Cloud, you still have to configure the firewalls, etc. to ensure that Galera network traffic can still pass between the nodes.

If using Oracle Cloud, we picked this image: Oracle-Linux-8.9-2024.05.29-0.

uname -a
Linux instance-20240611-1345 5.15.0-206.153.7.el8uek.x86_64 #2 SMP Thu May 9 15:52:29 PDT 2024 x86_64 x86_64 x86_64 GNU/Linux

cat /etc/redhat-release 
Red Hat Enterprise Linux release 8.9 (Ootpa)

To get installed, you can use either dnf or yum. You have to disable the existing mysql module, which you can do via:

yum module list mysql
yum module disable mysql

Now you can install your Galera Cluster via: yum install -y galera-4 mysql-wsrep-8.0.

You may also have to manually install boost-program-options which the galera-4 package requires.

If you would like to have full configuration information for Oracle Cloud, please do not hesitate to contact us at: info@galeracluster.com.