Apache HTTP Load Balancer for CA SDM

Consider the following example scenario to load balance your existing CA SDM Servers using Apache HTTP Server.
Perform the following steps:
Install Apache Web Server Load Balancer
Perform the following steps:
  1. Downland and install Apache Web Server load balancer for Windows version 2.2.4. You can download it from the Apache web site, apache.org.
Configure Apache HTTP Server
Configuring Apache HTTP Server is a required task when you set up load balancing. Perform the following steps:
  1. Access the Apache website.
  2. Download Apache HTTP server 2.2.4 and install it.
    This example scenario was tested with HTTP Server 2.2.4.
  3. Download the binary, click on JK 1.2 Binary Releases, win32, jk-1.2.21, mod_jk-apache-2.2.4.so.
  4. Open the Apache Server Monitor and start the web server if it's not already running.
  5. Point your browser to
    to verify that Apache is running on port 80.
    By default, Apache server uses port 80.
  6. Stop the Apache Server.
  7. Copy the “
    ” to the modules directory in your Apache installation. Rename it to
(Optional) Disable Web Server Features
Disabling the web server features of Apache HTTP Server improves performance and reduces potential security risks. Perform these steps:
  1. Delete the following folders under C:\Program Files\Apache Software Foundation\Apache2.2:
    1. \cgi-bin
    2. \errror
    3. \htdocs
    4. \icons
    5. \manual
      The "C:\Program Files\" portion of the path names reflect the typical location that is specified at installation time. This portion of your path names can vary depending on the installation directory that is specified for the \Apache Software Foundation folder at installation time
  2. Rename
    in the C:\Program Files\Apache Software Foundation\Apache2.2\confdirectory.
  3. Find the
    This minimal configuration file is included in the Utilities/Apache Webserver directory of the CA Service Catalog installation media.
  4. Copy the
    file to C:\Program Files\Apache Software Foundation\Apache2.2\conf.
  5. Rename the
    file to
    in that directory.
  6. Delete all files in that directory except the following files:
    1. httpd.conf
    2. _httpd.conf.bak
  7. Change to the
    C:\Program Files\Apache
    Software Foundation\Apache2.2\modules directory.
  8. Delete all files in that directory except the following files:
    1. mod_jk.so
    2. mod_log_config.so
    3. mod_setenvif.so
You have disabled the web server features.
Create and Configure the
Creating and configuring the worker.properties file is a required task when you set up load balancing.
Perform the following steps as shown in this example. Here, we have two SDM servers:
  1. Edit the
    in the
    directory where you have installed Apache HTTP Server. Add the following lines to this file:
    worker.worker1.port=8009 worker.worker1.host=<hostname> (First CA SDM server) worker.worker1.type=ajp13 worker.worker1.lbfactor=1
    worker.worker2.port=8010 worker.worker2.host=<hostname> (Second CA SDM server) worker.worker2.type=ajp13 worker.worker2.lbfactor=10 worker.worker2.lbfactor=1
    Note: For all SDM servers in your environment, add additional set of worker nodes as shown above
  2. In the same file as shown in step 7, add the following for all the worker nodes:
    worker.balancer.type=lb worker.balancer.balance_workers=worker1,worker2 worker.balancer.method=Busyness worker.balancer.sticky_session=1
Update the httpd.conf File
Updating the
file is a required task when you set up load balancing.
  1. Open the “
    ” file in conf directory of your Apache installation in a text edit, and add the following lines at the end of the set of LoadModule statements:
    LoadModule jk_module modules/mod_jk.so
    # Path to workers.properties JkWorkersFile c:/Apache2/conf/workers.properties
    # Path to jk logs JkLogFile c:/Apache2/mod_jk.log
    # Jk log level [debug/error/info] JkLogLevel debug
    # Jk log format JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " #JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
    JkMount / balancer JkMount /* balancer
(Optional) Disable HTTP Ports
To enhance security, disable the HTTP ports of the cluster computers when you update the
file. Doing so routes users directly to the load balancer computer rather than directly to a cluster.
Perform the following steps:
  1. Comment the connector tag that includes HTTP port information, in the server.xml files of each cluster computer. This port is the startup node that is provided during installation, typically 8080.
  2. Recycle the CA Service Catalog Windows services of the clusters whose server.xml files were changed. The Windows services are named CA Service Accounting and CA Service Catalog.
Configuration on CA SDM Servers
Perform the following steps on each CA SDM server in your environment:
  1. As shown in the examle use case above, in your first CA SDM server, open the
    file in edit mode for Tomcat (File path:
    NX_ROOT\ \bopcfg\www\CATALINA_BASE\conf
  2. Replace the following:
    <Connector enableLookups="false" port="8080" protocol="AJP/1.3" redirectPort="8443"/>
    <Connector enableLookups="false" port="8009" protocol="AJP/1.3" redirectPort="8443"/>
    Also, replace the following:
    <Engine defaultHost="localhost" name="Catalina">
    <Engine name="Standalone" defaultHost="localhost" jvmRoute="worker1" debug=”0”>
Verify the Load Balancer
  1. Restart CA SDM services on both machines.
  2. Now, navigate back to the server where Apache server is installed and start the Apache web server.
  3. Open and point your browser window to
    The CA SDM login page is displayed.