Jump to: navigation, search

Configure the Apache Server

Purpose: To configure Apache HTTP load balancing for the UCS database.

Procedure

Start

  1. In the <path to Apache>\conf\httpd.conf file, configure the Apache capacity:
    <IfModule mpm_winnt_module>
       ThreadsPerChild      3350
       ThreadLimit 4000
       MaxRequestsPerChild    0
    </IfModule>
    
    Important
    The module mpm_winnt_module is available for Windows only. For more information on the mpm_winnt_module or other modules for Unix/Linux, see your Apache's documentation.
  2. In the <path to Apache&gt>\conf\httpd.conf file, enable (uncomment) the following lines:
      LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so
      LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
      LoadModule proxy_balancer_module /usr/lib/apache2/modules/mod_proxy_balancer.so
      LoadModule proxy_ajp_module /usr/lib/apache2/modules/mod_proxy_ajp.so
      LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so
  3. At the end of the <path to Apache>\conf\httpd.conf file, specify the path to mod_proxy.conf:
    include "<path to Apache>\conf\mod_proxy.conf"
  4. In the <path to Apache>\conf\mod_proxy.conf file, enter the following:
     <Location /someUrl/>
      # Turn on Proxy status reporting at /status
      # This should be better protected than: Allow from all
      ProxyStatus On
     <Location /status>
       SetHandler server-status
       Order Deny,Allow
       Allow from all
     </Location>
     ######### Proxy HTTP #########
     ProxyPass /cs/ balancer://cscluster/
     <Proxy balancer://cscluster>
     BalancerMember <nowiki>http://Context Services Server1:8182 loadfactor=1</nowiki>
     BalancerMember <nowiki>http://Context Services Server2:8485 loadfactor=1</nowiki>
     BalancerMember <nowiki>http://Context Services Server3:8283 status=+H</nowiki>
     BalancerMember <nowiki>http://Context Services Server4:8384 status=+H</nowiki>
     # status 'H' is hot standby
     ProxySet lbmethod=byrequests
     </Proxy>
     </Location>
    Important
    Replace the above server names with your environment server values.

End

This page was last edited on September 7, 2018, at 12:58.
Comments or questions about this documentation? Contact us for support!