I'm trying to set up jk2 load balancing for 2 Virtual Hosts in Apache with 2 Tomcats each. I have it mostly working, except it doesn't actually load balance the Tomcats... however it will do fail-over just fine if I kill one VM.

All my server.xml's have the correct jvmRoute set for the Engine.

Any help on how to fix or debug this?

Nick Wesselman
---------------------------------------------------------------------

Environment:
RedHat 7.2
Apache 2.0.43
Tomcat 4.1.12
mod_jk2

workers2.properties (names obfuscated to protect the innocent):
[logger]
level=DEBUG

[config:]
file=/usr/local/apache2/conf/workers2.properties
debug=0
debugEnv=0

[uriMap:]
info=Maps the requests. Options: debug
debug=0

[logger.file:0]
level=DEBUG
file=/usr/local/apache2/logs/jk2.log

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess servers
file=/usr/local/apache2/logs/jk2.shm
size=1000000
debug=0
disabled=0

[workerEnv:]
info=Global server options
timing=1
debug=0

[status:]
info=Status worker, displays runtime information

[uri:/jkstatus/*]
group=status:

[lb:vhost1]
debug=0

[channel.socket:vhost1_vm1]
port=8015
host=127.0.0.1
debug=0
group=vhost1
tomcatId=vhost1_vm1
lb_factor=1

[channel.socket:vhost1_vm2]
port=8019
host=127.0.0.1
debug=0
group=vhost1
tomcatId=vhost1_vm2
lb_factor=1

[uri:www.vhost1.com]
info=blah

[uri:www.vhost1.com/*.jsp]
group=vhost1
info=blah

[lb:vhost2]
debug=0

[channel.socket:vhost2_vm1]
port=8015
host=127.0.0.1
debug=0
group=vhost2
tomcatId=vhost2_vm1
lb_factor=1

[channel.socket:vhost2_vm2]
port=8019
host=127.0.0.1
debug=0
group=vhost2
tomcatId=vhost2_vm2
lb_factor=1

[uri:www.vhost2.com]
info=blah

[uri:www.vhost2.com/*.jsp]
group=vhost2
info=blah


--
To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to