Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Loadbalancing with mod_jk2

Johann Uhrmann

2003-12-17


Hello,

what is the correct way to use JK2 for load balancing?

According to the docs, jk2 should support load balancing
and "graceful" shutdown of a worker. (Meaning that a particular
worker will not get any new sessions.)

This is a snippet my current configuration:

[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

[channel.socket:localhost:8010]
port=8010
host=127.0.0.1

[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

[ajp13:localhost:8010]
channel=channel.socket:localhost:8010

[uri:/foobar/*]
worker=ajp13:localhost:8009



How can I tell jk2 that foobar is served by both tomcat instances?
How to tell that tomcat2 should not get new sessions for foobar?


Thank You very much,


Johann Uhrmann


--
Johann Uhrmann
xpecto AG | Lindenstrasse 81 | D-84030 Ergolding
Telefon: 0700 xpecto 00 (0700 973286 00)
Telefax: 0700 xpecto 10 (0700 973286 10)
Internet: http://www.xpecto.com


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.