The following article is an example of how you can configure Multiple Lifecycle Query Engine (LQE) Nodes, deployed with Jazz Authorization Server, with Load Balancing for Distributing query workload.
This examples assumes the ELM deployment is on IBM WebSphere Liberty Profile with Jazz Authorization Server enabled and a Reverse Proxy Server (IBM HTTP Server).
Pre-Req: LQE deployed on its own IBM Liberty server and is setup with a distributed deployment of ELM enabled with JAS.
You will need a backup from your original LQE server to configure additional servers. A backup contains all the metadata in LQE and a copy of the indexed data. You can use the backup files to install another LQE server that has a copy of the indexed data.
lqe.key
, lqe.node.id
and dbconnection.properties
files from the conf/lqe directory to the new server
lqe.key
, lqe.node.id
and dbconnection.properties
files from the original server to the conf/lqe directory in the new installation
dbconnection.properties
file in the conf/lqe directory and update the db.location and db.password
lqe.properties
file in the conf/lqe directory and set the LQE restore property to true: lqe.restore=true
[LQE_HOME]/server/server.startup
file to update any of the required configurations like Java Heap memory allocation to match the primary server
[LQE_HOME]/server/liberty/servers/clm/server.xml
file to add clone Id to httpSession element as show below <httpSession invalidateOnUnauthorizedSessionRequestException="true" cookieSecure="true" cloneId="lqenode2"/>
We have included scripts to add new URLs to JAS registrations which is primarily used for setting up clustering. We can reuse these scripts for this task.
On the LQE Server
addNodeReg.sh
and JASConfig.params
files to the server hosting Jazz Authorization Server
On the Jazz Authorization Server
addNodeReg.sh
and JASConfig.params
files to [JAS_HOME] directory
JASConfig.params
file and modify the JASPATH to set it to JAS install directory and JASCREDENTIALS to add an Admin user and password JASPATH=/opt/IBM/JazzAuthServer JASCREDENTIALS=elmadmin:elmadminpassword
https://JazzAuthServerURI/oidc/endpoint/jazzop/clientManagement
and login as an Admin User
/lqe
and copy the respective Client ID
# ./addNodeReg.sh <ClientId> https://LQEPrimaryNodeURL:PORT/lqe # ./addNodeReg.sh <ClientId> https://LQENEWNodeURL:PORT/lqe
Test by accessing individual LQE Node URLs
Primary LQE Node:
LQE_Primary_Node_1
and click Save
New LQE Node:
LQE_New_Node_2
and click Save
We have documented instructions to setup Load Balancing for LQE using Apache HTTP Server
Status icon key: