Installing RPD in a high-availability cluster
Use this section to set up BMC Release Package and Deployment (BRPD or RPD) in a high-availability (HA) cluster environment.
High-availability deployment architecture
In a high-availability environment, a load balancer server distributes the heavy incoming requests traffic across multiple servers or nodes in a server cluster.
The following figure shows an HA environment deployment by using a load balancer server, RPD servers, and a central database.
Before you begin
Before starting with installing the product in a high-availability cluster, ensure that you consider the following prerequisites:
To install the first node in a high-availability cluster environment
Before installing the first node in a high-availability cluster, ensure that the following prerequisite tasks are complete:
To install the first RPD node in a high-availability cluster
- Perform the steps described in the Fresh-installation topic to install the first node in the cluster.
While installing RPD, if you want to use the default database, ensure that you select the PostgreSQL bundled with the installer.
If you are using any other database, you can choose to skip installing the PostgreSQL server database.Install the product by following the steps in the installation wizard.
After the installation is complete, verify that the installation is successful.
To install additional nodes in a cluster
Use the steps described in this section to install more than one instance of RPD servers in a cluster. The load balancer server acts as a front-end for accessing and navigating the RPD UI. You can choose to install new nodes or clone existing nodes to create a cluster.
- Perform the steps described in the Fresh-installation topic to install the first node in the cluster.
- In the RPD installer, do not select Install PostgreSQL 9.5.04 option since a central database is already installed when you installed the first RPD node.
- On the data migration screen, under Cluster Installation, select the Skip database modification check box.
You use the Skip database modification option if you already have installed the same version of the application and database on another node of the same cluster.
- On the Database Details screen, select the database installed in your environment and specify the configuration details such as the host name, port, RPD Database/Service name, username, and password.
- Install the product by following the steps in the installation wizard.
After the installation is complete, verify that the installation is successful.
To install the load balancer server
In this section, RHEL HAProxy is used as a load balancer server. For more information about installing and downloading HAProxy, see Install and configure HAProxy in the RHEL documentation.
To configure the load balancer server to connect with the RPD nodes
After your load balancer server is installed successfully, you now need to configure the load balancer to connect with the multiple RPD nodes in the cluster.
For a secure communication, ensure that you use a CA approved secure certificate, which is installed on the load balancer server. In this section, RHEL HAProxy is used as a load balancer server.
- On the HAProxy server, make changes to the /etc/haproxy/haproxy.cfg file.
- If using HTTPS, generate keys for SSL. If you do not have a certificate, you may use a self-signed certificate and put the certificate and key into a PEM file.
In the haproxy.cfg file, specify the following details in the frontend http_frontend section.
frontend http_frontend
bind *:80
mode http
redirect scheme https code 301In this file, redirect scheme HTTPS specifies to redirect the request to HTTPS as described in the following example.
frontend https_frontend
bind *:443 ssl crt /etc/ssl/private/example.com.pem
mode http
option httpclose
option forwardfor
reqadd X-Forwarded-Proto:\ https
default_backend rgwTo connect the RPD servers to the HAProxy server, specify the node details in the backend section in the haproxy.cfg file.
The following figure shows an example of the configuration file.backend rgw
balance roundrobin
cookie SERVERID insert indirect nocache
server rgw1 vl-pun-rpd-01:80 check cookie s1
server rgw2 vl-pun-rpd-02:80 check cookie s2
server rgw3 vl-pun-rpd-03:80 check cookie s3In this file:
- balance roundrobin specifies that the round robin algorithm is used.
- cookie SERVERID insert indirect nocache is used for configuring sticky sessions, which ensures that a user is not logged out of a session during the load balancing activity.
- cookie s1, s2, s3 specifies that sticky sessions be used for each node.
- server contains the server hostname:port details for each node in the RPD cluster.
Save changes and start or enable the HAProxy server.