Installing the Manager software in a Multi-Manager configuration
Before you begin
Make sure that the following prerequisites are met:
- You can perform a new installation of BDA Manager only on RHEL 7 or later. Apache version 2.4.6 or later is required.
- You have satisfied the OS-requirements for Multi-Manager environments.
- You must have root user privileges to perform this installation.
- Slony-I must be compiled at your site (supported versions are 2.2.7 and 2.2.8). The following tools are required to compile Slony-I:
- GNU make version 3.76 and later
- An ISO/ANSI C compiler, such as GCC
- PostgreSQL source version 11 and later
To install the Manager software in a Multi-Manager configuration
Perform the following steps on every manager that will be in the mesh:
- Install the Manager software on the servers that will comprise the mesh using the steps in Installing-the-Manager-software-in-a-stand-alone-configuration.
- To make sure that the changes made in this procedure are saved, make sure the dmanager, mtd and postgresql services are running.
Download the Slony source file:
RHEL version
Source file
RHEL 9 or RHEL 8 with PostgreSQL 15
wget http://main.slony.info/downloads/2.2/source/slony1-2.2.11.tar.bz2
RHEL 7 with PostgreSQL 12.4
wget http://main.slony.info/downloads/2.2/source/slony1-2.2.8.tar.bz2
RHEL 7 with PostgreSQL server 11.x
wget http://main.slony.info/downloads/2.2/source/slony1-2.2.7.tar.bz2
For the installations mentioned below, do the following:
Installation scenario
Procedure
If you are installing on RHEL 9 or RHEL 8 with PostgreSQL 15.x
- Use the command PATH=$PATH:/usr/pgsql-15/bin/ to set the path variable for PostgreSQL 15.x.
- Make sure that gcc is installed. If it isn't, then install gcc-4.8.x or later.
- Link the PostgreSQL files from the /usr/pgsql-15/bin directory:
ln -snf /usr/pgsql-15/bin/* /usr/bin/
If you are installing on RHEL 7 with PostgreSQL server 11.x
- Use the command PATH=$PATH:/usr/pgsql-11/bin/ to set the path variable for PostgreSQL 11.x.
- Make sure that gcc is installed. If it isn't, then install gcc-4.8.x or later.
- Link the PostgreSQL files from the /usr/pgsql-11/bin directory:
ln -snf /usr/pgsql-11/bin/* /usr/bin/
If you are installing on or RHEL 7 with PostgreSQL server 12.4
- Use the command PATH=$PATH:/usr/pgsql-12/bin/ to set the path variable for PostgreSQL 12.
- Make sure that gcc is installed. If it isn't, then install gcc-4.8.x or later.
- Link the PostgreSQL files from the /usr/pgsql-12/bin directory:
ln -snf /usr/pgsql-12/bin/* /usr/bin/
(% class="nolink" %)To unpack, compile, and install Slony, type the following commands and press <Enter> after each command:
tar xvjf <downloaded file from previous step>
cd <extracted directory>
./configure --with-pgconfigdir=`which pg_config` --with-perltools=/var/lib/pgsql/data/slony
make
make install- Link the Slony initialization script from the /etc/init.d directory:
ln -s /app/clarity/manager_scripts/bin/slony.init /etc/init.d/slony Grant remote login privileges to the Multi-Manager postgres users for all managers in the mesh:
- If the Manager is to be used as a Content manager:
- Open the /var/lib/pgsql/data/pg_hba.conf file in a text editor.
Add the the following lines at the beginning of the file:local GridApp megamesh_config trust
host GridApp megamesh_config 127.0.0.1/32 trusthost GridApp megamesh_config ::1/128 trust- Add the following lines under the lines that you added in the previous step (two-line entries for each Satellite manager in the mesh):
host all megamesh <satellite1 IP> 255.255.255.255 password
host all megamesh_config <satellite1 IP> 255.255.255.255 password - Save the /var/lib/pgsql/data/pg_hba.conf file.
- Open the /var/lib/pgsql/data/postgresql.conf file in a text editor.
- Add the following line at the beginning of the file:
listen_addresses = '*' - Save the /var/lib/pgsql/data/postgresql.conf file.
- Restart the postgresql service:
service postgresql restart
For restarting the postgresql-15 service:
service postgresql-15 restartFor restarting the postgresql-12 service:service postgresql-12 restartFor restarting the postgresql-11 service:service postgresql-11 restart - Restart the middle tier service:
service mtd restart
- If the Manager is to be used as a Satellite manager:
- Open the /var/lib/pgsql/data/pg_hba.conf file in a text editor.
Add the the following lines at the beginning of the file:local GridApp megamesh_config trust
host GridApp megamesh_config 127.0.0.1/32 trusthost GridApp megamesh_config ::1/128 trust- Add the following lines immediately under the lines that you added in the previous step:
host all megamesh <content manager IP> 255.255.255.255 password
host all megamesh_config <content manager IP> 255.255.255.255 password Add the following lines immediately under the lines that you added in the previous step:
host all megamesh <satellite IP> 255.255.255.255 password
host all megamesh_config <satellite IP> 255.255.255.255 password
- Save the /var/lib/pgsql/data/pg_hba.conf file.
- Open the /var/lib/pgsql/data/postgresql.conf file in a text editor.
- Add the following line at the beginning of the file:
listen_addresses = '*' - Save the /var/lib/pgsql/data/postgresql.conf file.
- Restart the postgresql service:
{{code language="none"}}
service postgresql restart
{{/code}}For restarting the postgresql-15 service:
service postgresql-15 restart
For restarting the postgresql-12 service:
service postgresql-11 restart
For restarting the postgresql-11 service:
service postgresql-11 restart - Restart the middle tier service:
service mtd restart
- If the Manager is to be used as a Content manager:
Copy the following files from the Manager specified as the Content Manager to the specified location on the Satellite Manager:
Content Manager
Satellite Manager
Source file location
/app/clarity/dmanager/etc
Target file location
/app/clarity/dmanager/etc
Source file names
server.pem, dummy.pem
Target file names
server.pem, dummy.pem
On the Satellite Managers, replace the existing server.pem and dummy.pem with the files from the Content Manager.
To access the GUI by using the https protocol, install the Apache mod_ssl package on all servers where you have installed the Manager software, and run the following command:
{{code language="none"}}
/app/clarity/var/www/mgmt/bin/enable_ssl.sh
{{/code}}
The software is now installed in the /app/clarity/dmanager directory and by default, GUI is available on port 80 (http protocol) and port 443 (https protocol) of the Manager server. For instructions to access the GUI, see Accessing-the-interface.
To install the Manager software in a Multi-Manager configuration (Red Hat PostgreSQL)
Perform the following steps on every manager that will be in the mesh:
- Install the Manager software on the servers that will comprise the mesh using the steps in Installing-the-Manager-software-in-a-stand-alone-configuration.
- To make sure that the changes made in this procedure are saved, make sure the dmanager, mtd and postgresql services are running.
- Download the Slony source file:
- RHEL 7 with RH-PostgreSQL12:
wget http://main.slony.info/downloads/2.2/source/slony1-2.2.8.tar.bz2
- RHEL 7 with RH-PostgreSQL12:
- (Only if you are installing on RHEL 7 with RH-PostgreSQL12)
- Use the command PATH=$PATH:/opt/rh/rh-postgresql12/root/usr/bin/ to set the path variable for RH-PostgreSQL12
- Make sure that gcc is installed. If it isn't, then install gcc-4.8.x or later versions
- Link the PostgreSQL files from the /opt/rh/rh-postgresql12/root/usr/bin directory:
ln -snf /opt/rh/rh-postgresql12/root/usr/bin/* /usr/bin
To unpack, compile, and install Slony, type the following commands and press <Enter> after each command:
tar xvjf <downloaded file from previous step>cd <extracted directory>./configure --with-pgconfigdir=`which pg_config` --with-perltools=/var/opt/rh/rh-postgresql12/lib/pgsql/data/slonymakemake install- Link the Slony initialization script from the /etc/init.d directory:
ln -s /app/clarity/manager_scripts/bin/slony.init /etc/init.d/slony Grant remote login privileges to the Multi-Manager postgres users for all managers in the mesh:
- If the Manager is to be used as a Content manager:
- Open the /var/opt/rh/rh-postgresql12/lib/pgsql/data/pg_hba.conf file in a text editor.
- Add the the following lines at the beginning of the file:
local GridApp megamesh_config trust
host GridApp megamesh_config 127.0.0.1/32 trust
host GridApp megamesh_config ::1/128 trust - Add the following lines under the lines that you added in the previous step (two-line entries for each Satellite manager in the mesh):
host all megamesh <satellite1 IP> 255.255.255.255 password
host all megamesh_config <satellite1 IP> 255.255.255.255 password - Save the /var/opt/rh/rh-postgresql12/lib/pgsql/data/pg_hba.conf file.
- Open the /var/opt/rh/rh-postgresql12/lib/pgsql/data/postgresql.conf file in a text editor.
- Add the following line at the beginning of the file:
listen_addresses = '*' - Save the /var/opt/rh/rh-postgresql12/lib/pgsql/data/postgresql.conf file.
- Restart the postgresql service:
service postgresql restart - Restart the middle tier service:
service mtd restart
- If the Manager is to be used as a Satellite manager:
- Open the /var/opt/rh/rh-postgresql12/lib/pgsql/data/pg_hba.conf file in a text editor.
- Add the the following lines at the beginning of the file:
local GridApp megamesh_config trust
host GridApp megamesh_config 127.0.0.1/32 trust
host GridApp megamesh_config ::1/128 trust - Add the following lines immediately under the lines that you added in the previous step:
host all megamesh <content manager IP> 255.255.255.255 password
host all megamesh_config <content manager IP> 255.255.255.255 password Add the following lines immediately under the lines that you added in the previous step:
host all megamesh <satellite IP> 255.255.255.255 password
host all megamesh_config <satellite IP> 255.255.255.255 password
- Save the /var/opt/rh/rh-postgresql12/lib/pgsql/data/pg_hba.conf file.
- Open the /var/opt/rh/rh-postgresql12/lib/pgsql/data/postgresql.conf file in a text editor.
- Add the following line at the beginning of the file:
listen_addresses = '*' - Save the /var/opt/rh/rh-postgresql12/lib/pgsql/data/postgresql.conf file.
- Restart the postgresql service:
service postgresql restart - Restart the middle tier service:
service mtd restart
- If the Manager is to be used as a Content manager:
To access the GUI by using the https protocol, install the Apache mod_ssl package on all servers where you have installed the Manager software, and run the following command:
/app/clarity/var/www/mgmt/bin/enable_ssl.sh
Where to go from here