Try OpenEdge Now
skip to main content
Administration Guide
Load balancing options for PAS for OpenEdge : Apache proxy host load balancing : Configuring PAS for OpenEdge instances for proxy load balancing
 

Configuring PAS for OpenEdge instances for proxy load balancing

For any type of load balancing, chunking and HTTP sessions must be enabled, and they are both enabled by default.
To verify that chunking and HTTP sessions are enabled, check the useHTTPSessions and enableRequestChunking properties in the /conf/openedge.properties file for each PAS for OpenEdge instance. When enabled, these properties are set as shown in bold in the following example:
[instance_name.ROOT.APSV]
adapterEnabled=1
enableRequestChunking=1
useHTTPSessions=1
Note: You can also run the following commands to check the current values:
*oeprop instance_name.ROOT.APSV.enableRequestChunking
*oeprop instance_name.ROOT.APSV.useHTTPSessions
If sticky sessions are enabled on the Apache server, you are done. But if the Apache server is configured for session-free load balancing (where subsequent requests do not return to the same instance). you must configure the PAS for OpenEdge instances as follows:
1. Enable Cluster property in each instance's /conf/server.xml file. You can use the feature action of the TCMAN command-line utility to set this property. For example:
oepas1/bin/tcman.sh feature Cluster=on
2. Set the jvmRoute alias to blank.
The jvmRoute alias is controlled by the psc.as.alias value and can be set to blank with TCMAN (rather than by manually editing /conf/server.xml) as follows:
tcman config psc.as.alias=
Note: The jvmRoute alias translates to the route value in the Apache server's http.conf file. See Configuring the Apache server for proxy load balancing for more information.
3. Open the /conf/context.xml file in each instance and comment out the Manager section. For example:
<!-- <Manager
maxActiveSessions="-1"
pathname=""
processExpiresFrequency="6"
maxInactiveInterval="${psc.as.session.timeout}"
sessionIdLength="22" >
</Manager> -->