You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jerry Chen <je...@googlegear.com> on 2001/12/21 20:36:46 UTC
Load Balance problem
Hi , Folks
I've some question about the mod_jk load balance . I'hv 3 linux box right
now , the 1st is running apache 1.3.12 , others are running tomcat 3.2.1, I
try to config the tomcat load balance with those 2 tomcat box . But I found
all the request from the apache box is redirect to the first tomcat box that
I define in the works.properties(tomcat1) , if I just shutdown that tomcat
box , I got error 500 Internal Server error from Apache .
That seems the load balance doesn't work , please help me
Thanks alot
This is part of my httpd.conf
=====================================================
LoadModule jk_module libexec/mod_jk.so
JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel error
JkMount /*.jsp loadbalancer
======================================================
This is my works.properties
# The workers that your plugins should create and work with
#
worker.list=loadbalancer
#
#------ DEFAULT ajp12 WORKER DEFINITION ------------------------------
#---------------------------------------------------------------------
#------ DEFAULT ajp13 WORKER DEFINITION ------------------------------
#---------------------------------------------------------------------
#
#
# Defining a worker named ajp13 and of type ajp13
# Note that the name and the type do not have to match.
#
worker.tomcat1.port=8009
worker.tomcat1.host=tomsrv1
worker.tomcat1.type=ajp13
worker.tomcat1.lbfactor=1
worker.tomcat1.cachesize=10
worker.tomcat2.prot=8009
worker.tomcat2.host=tomsrv2
worker.tomcat2.type=ajp13
worker.tomcat2.lbfactor=1
worker.tomcat2.cachesize=10
#
#------ DEFAULT LOAD BALANCER WORKER DEFINITION ----------------------
#---------------------------------------------------------------------
#
#
# The loadbalancer (type lb) workers perform wighted round-robin
# load balancing with sticky sessions.
# Note:
# ----> If a worker dies, the load balancer will check its state
# once in a while. Until then all work is redirected to peer
# workers.
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tomcat1, tomcat2
#
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>