Forum Discussion

billzhou_10066's avatar
billzhou_10066
Icon for Nimbostratus rankNimbostratus
Apr 07, 2008

Best 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 balance manager version 9.4.3 in place. I am looking into ways to simply our infrastructure environment. Does anyone have a best practise regarding using F5 and apache in a mixed environment? If F5 can replace the functionality of the apache mod_jk, that will be great.

 

Any suggestion is welcome.

 

 

Thanks,

 

 

Bill

 

  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    Given the flexibility of iRules, iControl and even just the out of the box features of the BIG-IP, there's an incredible amount you can do with the systems. However, it would be much easier to answer your question if you gave some specifics. What is it you're trying to do? If you tell us more specifically what you're trying to accomplish, we'll likely be able to tell you whether or not it's possible via the BIG-IP.

     

     

    Thanks!

     

    Colin
  • Colin,

     

    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
  • I would be interested in knowing this since I'm about to embark on this very same voyage. My company is looking to deploy 2 Apache/mod_jk servers and if I can leverage the BIGIP F5 hardware to perform the very same functions, I can convince management to conserve resource and have the F5 do all the dirty work.