Configure the Apache Server
Purpose: To configure Apache HTTP load balancing for the UCS database.
Procedure
Start
- In the <path to Apache>\conf\httpd.conf file, configure the Apache capacity:
<IfModule mpm_winnt_module> ThreadsPerChild 3350 ThreadLimit 4000 MaxRequestsPerChild 0 </IfModule>
ImportantThe 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. - In the <path to Apache>>\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
- 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" - 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>
ImportantReplace the above server names with your environment server values.
End
This page was last edited on July 26, 2017, at 15:37.
Comments or questions about this documentation? Contact us for support!