3 Compliance Studio with Multiple PGX Servers (Using Load Balancer)
Note:
This section describes HAProxy but other load balancers can be used. The Incremental file system changes from the Active PGX server should be synced/reflected in all the fail over PGX servers as well.Using a load balancer, users can configure multiple PGX servers in the Compliance Studio.
HAProxy is a high-performance TCP/HTTP load balancer and proxy server that allows multiplexing incoming requests across multiple web servers. You can use HAProxy with multiple instances of the graph server (PGX) for high availability.
Prerequisites
- Load Balancer setup is required for HAProxy.
- Two or more servers should be available for the PGX server.
To configure multiple PGX servers, follow these steps:
- Configure and Install PGX on both servers. To Configure and Install PGX, see the Configure the PGX Servicesection in the OFS Compliance Studio Installation Guide.
- Navigate to
<PGX_SERVER_HOME>/pgx-server/conf
directory and place the following files:studio_server.p12
public.key and private.key
graph-keystore.p12
Note:
- For more information on where to obtain studio_server.p12 file, see the section in the OFS Compliance Studio Installation Guide.
- For more information on where to obtain public.key and private.key files, see the section in the OFS Compliance Studio Installation Guide.
- For more information on where to obtain graph-keystore.p12 file, see the section in the OFS Compliance Studio Installation Guide.
- Start the PGX server.
- Install the Load balancer HAProxy in one of the PGX servers as mentioned in the Using HAProxy for PGX Load Balancing and High Availability section.
- Navigate to
<COMPLIANCE_STUDIO_INSTALLATION_PATH>/bin
directory. - Open the
config.sh
file and provide a Load balancer URL in the PGX_SERVER_URL parameter is as follows.PGX_SERVER_URL=http://<PGX_LB_Hostname>:<PGX_LB_PORT>
For example,PGX_SERVER_URL=http://testserver.oracle.com/:1234
Note:
- The PGX load balancer can be configured in the same server that is used for load balancing the Compliance Studio as well.
- Only Subgraph loading is supported and In-memory graph loading is not supported if HA is configured for the PGX server.
- Start Compliance Studio. To start, execute the following command.
./compliance-studio.sh -–start