costin 02/05/02 12:46:17 Modified: jk/conf workers2.properties Log: Changed to use the new proposed attributes. I used tomcatId as a temporary name - instance is a bit too generic. If you have a better sugestion for the name - please let me know ! ( route is also a bit overloaded ) I also started to add 'group' attributes - it'll be used to automatically create lb workers. The current config will have 2 workers, and send all the requests to the unix socket. If that fails, it should fall back to the second worker. The /examples1 should allwasy go to the second worker. ( that doesn't work yet - I need to plug in the 'group' magic ). Revision Changes Path 1.10 +23 -19 jakarta-tomcat-connectors/jk/conf/workers2.properties Index: workers2.properties =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/jk/conf/workers2.properties,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- workers2.properties 30 Apr 2002 06:50:05 -0000 1.9 +++ workers2.properties 2 May 2002 19:46:17 -0000 1.10 @@ -28,46 +28,40 @@ # Default channel [channel.socket:localhost:8009] -# lbfactor=1 +lbfactor=1 +tomcatId=localhost:8009 # Example additional socket channel. The location is in the name ( URL-style [channel.socket:localhost:8019] - - -# Example 2 - explicitely set the host/port, the name can be anything. -# [channel.socket:myWorker] -# host=myHost -# port=8109 +tomcatId=localhost:8019 +lbfactor=1 +group=lb_1 +group=lb_2 # Example unix socket. # XXX We must use an explicit setting to use substitution - resolve this [channel.apr:unixSocket] file=${TOMCAT_HOME}/work/jk2.socket +tomcatId=localhost:8009 +lbfactor=0 +# +# The JNI channel is enabled and configured automatically +# if a VM is detected and tomcat started. [channel.jni:jni] #################### Workers #################### # All non-ajp13 workers or workers with special configurations +# There is no configuration for ajp13 workers - you just configure +# channels # The status worker. [worker.status] -# This is created by default - and used for all webapps that don't specify -# explicitely an worker. -# It'll automatically get all the 'forwarding' workers/channels. -# [worker.lb] - - -# Note that we use separate lines instead of , separated values. -# This is also created by default - when a forwarding worker has a -# 'group' property -# [worker.lb:group1] - - # Requirements: libjvm.so MUST BE INCLUDED in LD_LIBRARY_PATH for this # to work reliably and on all platforms. Same for other java libs. # "java" script is a good example, Sun needs it to start java and we need it to. @@ -106,6 +100,10 @@ [uri:/examples] context=/examples +[uri:/examples1] +context=/examples +group=lb_1 + [uri:localhost:8080/examples] context=/examples @@ -122,6 +120,12 @@ # Prefix mapping [uri:/examples/servlet/RequestInfoExample/*] + +[uri:/examples/*] + +[uri:/examples1/*] +# XXX The setting should be only on host and context +group=lb_1 # Extension match [uri:/examples/*.jsp]
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>