![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
1. Create two new properties files with any suitable name. For example, Ajp_1.properties and Ajp_2.properties.In Ajp_1.properties:<channel path>.ajp.connector.port=8011In Ajp_2.properties:<channel path>.ajp.connector.port=8012
4. Configure the Apache HTTP server (“httpd”) as a fronting webserver. Add the worker.properties file in Apache httpd under the config folder. In the worker.properties file set the Apache httpd for load balancing. Configure two workers to listen to the above specified ajp ports. Disable one worker (for example, worker2) by default, so that no requests are sent to it. Now, configure another worker (that is, worker1), so that, in case of failure, it redirects all incoming requests to the disabled worker (that is, worker2). This worker, in case of failure, now becomes the active worker.The worker.propeties file should contain the following properties:
5. Add Tomcat connectors mod_jk.so (you can download mod_jk from, if you don’t have one) under the modules folder.You can download mod_jk from the following location:
6. Configure Apache httpd to load this module and redirect all requests to the load balancer defined earlier. Add the following snippet to httpd.conf, after completion of all the basic module load statements:
8.
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |