How to Set up the Cluster Environment › Configure the Load Balancer
Configure the Load Balancer
Configure the load balancer to increase scalability and to maintain performance.
Follow these steps:
- Download and install Apache HTTP server 2.2.
- Download mod_jk.so and copy it to APACHE_HOME\modules\ directory.
- Modify the APACHE_HOME\conf\httpd.conf file:
- Append the file with the following lines:
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
JkMount /* loadbalancer
- Add the following entry in the httpd.conf file (if not added ):
# Load the mod_jk connector
LoadModule jk_module modules/mod_jk.so
- Define the IP addresses of node1 and node 2 in the APACHE_HOME\conf\workers.properties file:
worker.node1.host = <IP ADDRESS OF NODE1>
worker.node2.host = <IP ADDRESS OF NODE2>
- Start load balancer.
- On the client machine (from where you are accessing CA Open Space) modify C:\Windows\System32\drivers\etc\host file to point to the IP address of the Load Balancer. For example, if you on boarded a tenant with virtual host as test.openspace.com and the IP address of the Apache server is 10.11.12.13, then you have to add 10.11.12.13 test.openspace.com line in the host file. This allows access to the virtual host from the client machine.
Load balancer is configured.
- Stop the CA Open Space services on node 1 and verify that requests are getting mapped to node 2 even if node 1 is down.
Copyright © 2013 CA.
All rights reserved.
|
|