tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Wang" <pw...@uclink.berkeley.edu>
Subject Load Balance not working for mod_jk???
Date Fri, 21 Jul 2006 17:01:21 GMT
Hi:

Here is my situation:

Linux Fedora 4.0
Apache 2.0.54
Tomcat 5.0.28
Mod_JK 1.2.14.
JVM 1.5.0

I started 2 tomcat Instances listening on port 8009/8010, verified using JSVC
nlp. They 2 instances shared the same code base but has their own webapp and
server.xml/web.xml etc.

Here is he workers.properties

worker.list=worker2,worker1

# Define a worker using ajp13
worker.worker1.port=8009
worker.worker1.host=localhost
worker.worker1.type=ajp13
worker.worker1.lbfactor=1
# Define prefered failover node for worker1
# worker.worker1.redirect=worker2

# Define another worker using ajp13
worker.worker2.port=8010
worker.worker2.host=localhost
worker.worker2.type=ajp13
worker.worker2.lbfactor=1
# Disable worker2 for all requests except failover
# worker.worker2.disabled=True

# Define the LB worker
worker.router.type=lb
worker.router.balance_workers=worker1,worker2

Here is my httpd.conf

JkMount /ucdiscovery/* worker1
JkMount /ucdiscovery worker1
JkMount /simple/* worker2
JkMount /simple worker2



Things work beautifully.

But as soon as I put the worker.list=router
And change the JkMount to router, nothing works.

I checked the error log 

[Fri Jul 21 09:04:47 2006]  [mod_jk.c (1689)]: Into handler r->proxyreq=0
r->handler=jakarta-servlet r->notes=146188272 worker=router
[Fri Jul 21 09:04:47 2006]  [jk_worker.c (90)]: Into wc_get_worker_for_name
router
[Fri Jul 21 09:04:47 2006]  [jk_worker.c (94)]: wc_get_worker_for_name, done did
not find a worker

It seems that the router worker supposed to be created by the mod_jk never got
created.

Thanks
Pat


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message