How to Install Galera Cluster Manager on Centos

  • Last update: Apr 3, 2024
  • Views: 52
  • Author: Admin
How to Install Galera Cluster Manager on Centos

Hello colleagues.

Galera Manager is a cool GUI for monitoring and provisioning Galera clusters. With this tool, you can easily view various operating system and MariaDB and MySQL database performance charts to ensure that your Galera cluster is functioning properly and efficiently. Galera Manager is fully web-based and will run in any web browser to administer and monitor your clusters. For monitoring Galera Manager offers more than 620 metrics.

We will install Galera Manager on Centos 7 operating system. All actions in the examples must be performed with privileged sudo rights or from under the root account.

The content of the article:

  1. Operating system type.
  2. Download the Galera Manager installer.
  3. Assign rights to the installer.
  4. Launch the Galera Manager installer.
  5. Opening ports on the firewall.
  6. We connect to Galera Manager.
  7. Process management Galera Manager.

 

1. Type of operating system.

At the time of writing, the Galera Manager installer will only work on the following x86_64 Linux distributions: Ubuntu 18.04 and 20.04, CentOS 7 and 8, Debian 10 ("buster"). If you try to install Galera Manager on some other operating system, then at the very beginning of the installation you will receive an error:

ERRO[0151] Failed to complete installation: unsupported os

install galera manager


 

2. Download the Galera Manager installer.

The installer package is a simple program for installing Galera Manager. After you run the installer, you will be asked a series of questions about configuring Galera Manager. We will download the Galera Manager installer using the wget utility.

Download the Galera Manager installer.

$. wget https://galeracluster.com/galera-manager/gm-installer

install galera manager


 

3. Assign rights to the installer.

After we have downloaded the installer, we now need to designate it as an executable file.

$. chmod +x gm-installer

install galera manager


 

4. Run the Galera Manager installer.

Now it's time to install our Galera Manager. The Galera Manager installer can be launched with two options, the first option with the install option, and the second with the certificates option, but you can run the installer with two options at once. The difference between these options is that the install option simply starts the Galera Manager installation process, while the certificates option is used to generate your own self-signed SSL certificates for encryption.

When running the Galera Manager installer with the certificates parameter, you need to take into account that in order to use the SSL certificate securely, your server must be accessible via a valid DNS. The installer will refuse to set up SSL encryption if your server only has an IP address.

In our example, we will simply install Galera Manager without using SSL encryption.

I launch the installer.

$. sudo ./gm-installer install

After running the installer, the first step will prompt you to accept the license agreement. If you're ready to accept the agreement, enter a.

install galera manager

After accepting the agreement, you will be asked to fill in the address of the Galera Manager repository, the login and password of the initial administrator of Galera Manager.

  • GMD Package Repository URL (blank for default): - Galera Manager repository. We leave this field empty.
  • GMD Admin User Login [admin]: - Login of the original administrator, default is admin.
  • GMD Admin Password: - Initial administrator password.
  • Repeat your entry: - Repeat the password of the original administrator.

install galera manager

Next, you will need to specify either the server IP address or the domain name for Galera Manager. If you specify the ip address of the server, then specify the one on which you run the installer.

install galera manager

In the example, we indicate the ip address of the server on which we are installing Galera Manager.

After we have filled everything in and pressed Enter, the installer will launch the installation of Galera Manager with all dependencies.

install galera manager

After the installation is complete, you should see the following messages: 

INFO[0105] Galera Manager installation finished.


 

5. Open ports on the Firewall.

After installation, we need to open ports for Galera Manager to work properly. You need to open ports 8081 , 8082 and port 80 to access the Galera Manager GUI.

$. firewall-cmd --zone=public --add-port=8081/tcp --permanent

$. firewall-cmd --zone=public --add-port=8082/tcp --permanent

$. firewall-cmd --zone=public --add-port=80/tcp --permanent

After adding the rules, do not forget to restart the Firewall service so that our rules are successfully applied.

$. firewall-cmd --reload

install galera manager


 

6. Connect to Galera Manager.

In order to connect to the Galera Manager graphical interface, you need to specify the ip address in any browser where we have installed Galera Manager.

http://192.168.2.96

install galera manager


 

7. Galera Manager process management.

On Linux, the process that belongs to Galera Manager is called  gmd.

Stop Galera Manager.

$. service gmd stop

Launch Galera Manager.

$. service gmd start

Restart Galera Manager.

$. service gmd restart


 

Thank you all, I hope my article was of some help to you.

SIMILAR ARTICLES