Load Balancing Siebel Application Interface by Configuring the workers.properties File
This task is part of Customizing the Application Container for Siebel Application Interface.
This topic describes the initial configuration of the workers.properties
file for load balancing Siebel Application Interface.
A load balancer acts as a reverse proxy and distributes network or application traffic across a
list of available of servers. It works as a middleman between the client and the servers
by accepting requests from clients and distributing the requests to the back-end servers
based on the configured parameters. The mod_jk module of Apache HTTPd
Server load balances Apache Tomcat servers and connects Apache Tomcat with Web servers
using an AJP connector.
For more information about planning and managing load balancing for your deployment, see Siebel Deployment Planning Guide and Siebel System Administration Guide.
It's recommended that optimal usage of Siebel user session connections is maintained on Apache Tomcat.
To configure load balancing for Siebel Application Interface
- Download and install the version of Apache HTTPd Server you want to install from the following
location:
http://tomcat.apache.org/
For more information about installing Apache HTTPd Server, see Apache Tomcat documentation.
- To configure the Listen port, go to the
HTTPDRootDirdirectory and do the following:-
Using any text editor, open the httpd.conf file on the Web server.
-
Locate the Listen section and add the HTTP port number:
Listen port -
Save the
httpd.conffile. -
Start Apache HTTPd Server.
-
To check if Apache HTTPd Server is running, open a Web browser and enter the following URL:
http://hostip:port
-
- Download the Apache
mod_jkmodule from the following location:http://httpd.apache.org/download.cgi Save the
mod_jk.sofile and then place it in theHTTPDRootDirdirectory.Create the following properties and log files:
Create the
workers.propertiesfile and then place it in theHTTPDRootDirdirectory.Create the
mod_jk.logfile and then place it in theHTTPDRootDirdirectory.
Modify the
httpd.conffile, as follows:Add a Load statement to load the
mod_jk.sofile, as follows:# Load the mod_jk module LoadModule jk_module modules/mod_jk.soAdd an IF statement to define the commands to be executed once the module is loaded, as follows:
#Declare the module for use with the <IfModule directive> element. <IfModule jk_module> JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogStampFormat "[%b %d %Y - %H:%M:%S] " JkRequestLogFormat "%w %V %T" JkLogLevel trace JkMount /* loadbalancer JkMount /Jkmanager status <IfModule>Save and close the
httpd.conffile.
- Define the list of Apache Tomcat workers that can accept requests by adding the following configuration to the workers.properties file:
# Define workers worker.list=loadbalancer,status# Set properties for worker1 worker.javacontainer1.type=ajp13 worker.javacontainer1.host=<hostip> worker.javacontainer1.port=<ajportnumber> worker.javacontainer1.lbfactor=1 worker.javacontainer 1.socket_keepalive=1 worker.javacontainer1.socket_timeout=300# Set properties for worker2 worker.javacontainer2.type=ajp13 worker.javacontainer2.host=<hostip> worker.javacontainer2.port=<ajportnumber> worker.javacontainer2.lbfactor=1 worker.javacontainer2.socket_keepalive=1 worker.javacontainer2.socket_timeout=300# Set properties for loadbalancer worker.loadbalancer.type=lb worker.loadbalancer.balance_workers=javacontainer1,javacontainer2# Get statistics worker.status.type=statusNote: For theworker.workernameproperty, theworkernamemust be same as theJVMRoutename defined in the Apache Tomcat server.xml file, and it must be unique across all Tomcat nodes being load balanced. Where tomcat1 and tomcat2 are load balanced and each hasjavacontainer1,javacontainer2as the value forJVMRoutein server.xml, theworkers.propertiesfile for both tomcat1 and tomcat2 must have parametersworker.javacontainer1andworker.javacontainer2. Test the server by submitting an REST API request similar to the following example:
http://hostip:port/siebel/v1.0/data/Account/Account/88-431RF
Related Books
Siebel REST API Guide