Hello all,

        I am trying to load balance 2 machines with tomcat 3.2.1
        My set up is as follows:
        mach1 has Apache with mod_jk and tomcat, mach2 only has tomcat.

        in the workers.properties file on mach1 I have :

        worker.list=loadbalancer, rinv002, rinv001

        worker.rinv001.port=8007
        worker.rinv001.host=localhost
        worker.rinv001.type=ajp12
        worker.rinv001.lbfactor=1

        worker.rinv002.port=8007
        worker.rinv002.host=10.1.2.4
        worker.rinv002.type=ajp12
        worker.rinv002.lbfactor=2

        worker.loadbalancer.type=lb
        worker.loadbalancer.balanced_workers=rinv001, rinv002


        in the mod_jk.conf file on mach1 I have :

        LoadModule jk_module libexec/mod_jk.so
        AddModule mod_jk.c
        JkWorkersFile
/usr/local/jakarta-tomcat-3.2.1/conf/workers.properties
        JkLogFile /usr/local/jakarta-tomcat-3.2.1/logs/mod_jk.log

        JkLogLevel debug

        JkMount /*.jsp loadbalancer
        JkMount /servlet/* loadbalancer

        Alias /examples "/usr/local/jakarta-tomcat-3.2.1/webapps/examples"
        <Directory "/usr/local/jakarta-tomcat-3.2.1/webapps/examples">
                Options Indexes FollowSymLinks
        </Directory>

        JkMount /examples/servlet/* loadbalancer
        JkMount /examples/*.jsp loadbalancer

        
        in the apache httpd.conf file on mach1 I have:

        include /usr/local/jakarta-tomcat-3.2.1/conf/mod_kf.conf


        I then start tomcat on mach2 and mach1 and apache on mach1.
        In the mod_jk.log the three workers rinv001, rinv002 and
loadbalancer are created but 
        all requests go to mach1 and nothing is forwarded to mach2. 
        
        Could anyone shed any light on what I am doing wrong. 
        
        Do I need to do any configuration on mach2?
        regards 

        Ian

Reply via email to