Configure PAS for OpenEdge for Tomcat load balancing
- Last Updated: March 30, 2020
- 2 minute read
- OpenEdge
- Version 12.2
- Documentation
Configuring PAS for OpenEdge to enable Tomcat load balancing involves:
-
Creating an instance (
lb) that is dedicated to load balancing.You can use the PASMAN
createaction to instantiate an instance that must be named eitherlborjklb. No other configuration is required, but note that you should not deploy any web applications to thelbinstance. - Optionally creating an instance (
status) to gather metrics on the instances in the load balancing group.You can use the PASMAN
createaction to instantiate an instance that must be namedstatusorjkstatus. No other configuration is required, but note that you should not deploy any web applications to thestatusinstance.Also note that the
lbautomatically keeps track of the runtime status of instances in its load balancing group. It will not forward a request to an instance that has crashed or is not running for some other reason. Therefore, the status instance is only required if you want to monitor performance data about the instances in the load balancing group. - Generating and deploying a worker.properties file.
The worker.properties file is a Tomcat feature that defines the load balancing instance (
lb), the status instance , and the instances that handle requestsstatus.You can create a preliminary worker.properties file using the PASMANworkersaction. The action gathers information on all instances registered to the local PAS for OpenEdge core server (CATALINA_HOME).Note: There must be an instance namedlborjklbthat will function as the load balancer.Theworkersaction only includes local instances. If you have instances on multiple machines, you must:- Run the PASMAN
workersaction on each instance. - Combine the workers.properties file from each machine into a single workers.properties file.
- Comment out the
workers.common.hostproperty. - Add a
workers.instance_name.host=host_nameproperty to each instance.
Note:- The PASMAN
workersaction references the content of the $CATALINA_HOME/extras/workers.template file when it builds a preliminary worker.properties file. You can modify the workers.template file to include settings that are typical in your local configuration. - The preliminary worker.properties is created in the temp directory of the CATALINA_HOME server (for example, $DLC/servers/pasoe/temp). Use this file as a starting point; you may need to modify parameter values to better suit your particular application configuration.
- Run the PASMAN