Forum Discussion
billzhou_10066
Nimbostratus
Apr 07, 2008Best Practise for using apache mod_jk and F5 version 9.4.3
All,
Currently, I am using mod_jk version 1.2.26 to load balance the traffic between one apache server version 2.2.6 and two jboss servers, version 4.0.5.
We also have F5, local load balan...
billzhou_10066
Nimbostratus
Apr 09, 2008Colin,
Thanks for your quick response. What I am trying to achieve to is replace mod_jk (software loadbalancer) with F5 (hardware loadbalancer) to achieve round robin load balancing and fail over.
The mod_jk files contain the following files that perform round robin load balancing and fail over.
1. workers.properties file
2. uriworkermap.properties file
Here is the lay out for workers.properties file
workers.properties
In Unix, we use forward slashes:
ps=/
Define list of workers that will be used
for mapping requests
worker.list=loadbalancer,status
------------------------
First tomcat server
------------------------
worker.tomcatAUS1.port=41009
worker.tomcatAUS1.host=170.13.57.56
worker.tomcatAUS1.type=ajp13
worker.tomcatAUS1.lbfactor=1
worker.tomcatAUS1.cachesize=100
------------------------
Second tomcat server
------------------------
worker.tomcatAUS2.port=41009
worker.tomcatAUS2.host=170.13.57.57
worker.tomcatAUS2.type=ajp13
worker.tomcatAUS2.lbfactor=1
worker.tomcatAUS2.cachesize=100
Load-balancing behaviour
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=tomcatAUS1,tomcatAUS2
worker.loadbalancer.sticky_session=1
Status worker for managing load balancer
worker.status.type=status
The purpose of this file is to load balancing web trafffic between two tomcats node using round robin with session affinity.
uriworkermap.properties look like this:
Simple worker configuration file
Mount the Servlet context to the ajp13 worker
/jmx-console=loadbalancer
/jmx-console/*=loadbalancer
/web-console=loadbalancer
/web-console/*=loadbalancer
/fnmcreditmanager=loadbalancer
/fnmcreditmanager/*=loadbalancer
/ausws=loadbalancer
/ausws/*=loadbalancer
/amnetdtd=loadbalancer
/amnetdtd/*=loadbalancer
/iqueh-web=loadbalancer
/iqueh-web/*=loadbalancer
/iquea-web=loadbalancer
/iquea-web/*=loadbalancer
This file is to do url redirect.
These two files are the key files for mod_jk along with mod_jk.conf.
My question is if I plan to use F5 to replace mod_jk in front of apache, is there any equivant files that I can modify for F5?
Thanks,
Bill
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
