Jump to: navigation, search

Configure the Apache Server

UsersGuide.png 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>
    

    Note: 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 http://Context Services Server1:8182 loadfactor=1
    BalancerMember http://Context Services Server2:8485 loadfactor=1
    BalancerMember http://Context Services Server3:8283 status=+H
    BalancerMember http://Context Services Server4:8384 status=+H
    # status 'H' is hot standby
    ProxySet lbmethod=byrequests
    </Proxy>
    </Location>
    

    Note: Replace the above server names with your environment server values.

    End
This page was last modified on November 23, 2017, at 06:14.

Feedback

Comment on this article:

blog comments powered by Disqus