Wednesday, August 25, 2021

Setup load balancer on WebLogic Server using Proxy App;

Here are the steps:

1. Setup cluster environment with managed server.
2. Add Load Balancer standalone server listening to port 9999.
3. Deploy an app with web.xml and weblogic.xml settings. All the http requests to port 9999 will be redirected to managed servers on cluster. 

Update the myloadbal.war with respective managed server addresses and create a war to deploy to the load balancer server - port 9999. 

All apps (Java and ADF apps) should be deployed to the cluster environment. myloadbal.war would act as proxy to the cluster environment.


benefits.war is deployed to the cluster environment and can be accessed from load balancer port. 

itsp11648:9999 would open the welcome.html page.



 jar -xvf benefits.war
Above command extracts the contents of the file.

https://stackoverflow.com/questions/7882745/how-to-extract-war-files-in-java-zip-vs-jar


Below command is used to create a war file:

 jar -cvf myloadbal.war *


Helpful links:
https://www.ateam-oracle.com/using-weblogic-as-a-load-balancer
Oracle support documents: Note 1382494.1 and 1269410.1 

No comments: