RE: Load balancing with apache2, mod_jk2 tomcat 5.0

2004-04-16 Thread Thomas D. Zeimet
HI again,

Are you using the AJP13 connector in tomcat or did you install and configure
the coyote connector.

Thanks,
-Tom

--- Yang Xiao [EMAIL PROTECTED] wrote:
 Hi,
 Hmm. I commented out the shm.file line in my jk2.properties because it
 doesn't seem to be working, but I just did a test with it uncommented, LD
 still works fine. 
 However, if I use anything other than file=anon in the workers2.properties
 file, I don't get the Scoreboard info on the jkstatus page, kind of strange.
 Yang
 
 
 -Original Message-
 From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, April 15, 2004 4:55 PM
 To: Tomcat Users List
 Subject: RE: Load balancing with apache2, mod_jk2  tomcat 5.0
 
 Does the shm play a role in this?  I note that you have the following:
 [shm]
 info=Scoreboard. Requried for reconfiguration and status with multiprocess
 servers.
 file=anon
 #size=104856
 #debug=1
 
 Do your tomcat servers have a corresponding entry in their jk2.properties
 file?
  Like this?
 
 channelSocket.port=8019
 shm.file=/mnt/logs/jk2.shm
 
 Is this even necessary for load balancing?
 
 -Tom
 
 
 --- Yang Xiao [EMAIL PROTECTED] wrote:
  Yes.
  
  -Original Message-
  From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, April 15, 2004 9:42 AM
  To: Tomcat Users List
  Subject: RE: Load balancing with apache2, mod_jk2  tomcat 5.0
  
  Thanks.  The only change that you made to the tomcat server.xml conf file
 is
  assigning your timcatid values to the jvmRoute property, correct?
  
  Engine name=Catalina defaultHost=localhost debug=0
  jvmRoute=psahammerhead
  
  -Tom
  
  --- Yang Xiao [EMAIL PROTECTED] wrote:
   This is pretty much what I have and it works fine.
   [logger]
   level=DEBUG
   [config:]
   debug=0
   debigEnv=0
   
   [uriMap:]
   info=Maps the requests, Options: debug
   debug=0
   
   # Alternate file logger
   [logger.file:0]
   level=DEBUG
   file=/usr/local/apache/logs/jk2.log
   
   [shm]
   info=Scoreboard. Requried for reconfiguration and status with
 multiprocess
   servers.
   file=anon
   #size=104856
   #debug=1
   
   [workerEnv:]
   info=Global server options
   debug=0
   logger=logger.file:0
   
   # Defines a load balancer named lb. Use even if you only have one
 machine.
   [lb:lb]
   info=Default Load Balancer
   debug=10
   
   # Example socket channel, override port and host.
   [channel.socket:localhost:8009]
   port=8009
   host=127.0.0.1
   lb_factor=5
   tomcatid=tomcat1
   
   # Second Scoket Channel
   [channel.socket:localhost:8019]
   port=8019
   host=127.0.0.1
   lb_factor=10
   tomcatid=tomcat2
   
   # Third Scoket Channel
   [channel.socket:localhost:8029]
   port=8029
   host=127.0.0.1
   lb_factor=10
   tomcatid=tomcat3
   
   # define the worker
   [ajp13:localhost:8009]
   channel=channel.socket:localhost:8009
   group=lb
   
   # define the second worker
   [ajp13:localhost:8019]
   channel=channel.socket:localhost:8019
   group=lb
   
   # define the Third worker
   [ajp13:localhost:8029]
   channel=channel.socket:localhost:8029
   group=lb
   
   # Map the Tomcat examples webapp to the Web server uri space
   [uri:/jsp-examples/*]
   info=JSP Examples
   group=lb
   
   
   [uri:/webtest/*]
   info=Test JSP Page
   group=lb
   
   [status:]
   
   -Original Message-
   From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
   Sent: Thursday, April 15, 2004 7:46 AM
   To: Tomcat Users List
   Subject: RE: Load balancing with apache2, mod_jk2  tomcat 5.0
   
   Yes.  I did a full stop and start of apache.  There are no errors in the
  log
   files either.  Do you, or anyone else, have a workers2.properties file
 of
  a
   working system that you are willing to share?  I've gone through all the
   sections and properties in the latest jakarta jk2 document as well as
  other
   How-Tos and don't see what I've missed (I'm afraid I don't understand
 all
  of
   it
   either :).  Does the shm section play a part?  I interpretted it to be
   needed
   only if one wants to share session data between the differnet tomcat
   servers,
   and does not have anything to do with load balancing.
   
   Thanks,
   -Tom
   
   
   --- Yang Xiao [EMAIL PROTECTED] wrote:
Hi,
Did you restart the Apache2 server? My understanding is JK only
 reloads
  it
only if the section you modified in workers.properties has ver
  defined.
Also, check your jk.log and Catalina.log files for errors.
Yang

-Original Message-
From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 14, 2004 7:09 PM
To: Tomcat Users List
Subject: RE: Load balancing with apache2, mod_jk2  tomcat 5.0

Thanks but it doesn't seem to make any difference.  For each tomcat
  server
   I
added sections like the following:

[ajp13:psahammerhead:8009]
channel=channel.socket:psahammerhead:8009
group=lb
tomcatId=psahammerhead

It still only wants to use one of the servers

RE: Load balancing with apache2, mod_jk2 tomcat 5.0

2004-04-16 Thread Angus Mezick
The docs at
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configwebcom.htm
l#How%20Load%20Balancing%20Works have been improved.  Try reading them
again.

 -Original Message-
 From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, April 14, 2004 10:17 AM
 To: [EMAIL PROTECTED]
 Subject: Load balancing with apache2, mod_jk2  tomcat 5.0
 
 
 Hi,
 
 I have set up four tomcat 5.0 servers for load balancing 
 using an apache2
 server and mod_jk2 on RedHat 9.0.  The trouble that I am 
 having is that most of
 the user sessions are routed to only one of the tomcat 
 servers even though the
 lb_factor for all is the same, 10.  All tomcat servers seem 
 to be working since
 I can disable all but one in the workers2.properties file to 
 force that tomcat
 server to be used.  Chnaging the lb_factor can also cause a 
 different tomcat
 server to be used most of the time, but I haven't figured out 
 how to control
 the balancing by lb_factor.
 
 Below is the workers2.properties file that I am using.
 
 Thanks for any help you can provide,
 -Tom
 
 # workers2.properties 
 
 [logger]
 level=DEBUG
 
 [config:]
 debug=0
 debugEnv=0
 
 [uriMap:]
 info=Maps the requests. Options: debug
 debug=0
 
 # Alternate file logger
 [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=100
 #debug=0
 #disabled=0
 
 [workerEnv:]
 info=Global server options
 debug=0
 timing=1
 # Default Native Logger (apache2 or win32 )
 # can be overriden to a file logger, useful
 # when tracing win32 related issues
 #logger=logger.file:0
 
 [lb:lb]
 ver=1
 info=Default load balancer.
 debug=10
 
 [channel.socket:psahammerhead:8009]
 ver=1
 graceful=0
 info=A tomcat instance - psahammerhead.
 debug=0
 disabled=0
 group=lb
 tomcatId=psahammerhead
 lb_factor=10
 
 [channel.socket:psashovelhead:8009]
 ver=1
 graceful=0
 info=A tomcat instance - psashovelhead.
 debug=0
 disabled=0
 group=lb
 tomcatId=psashovelhead
 lb_factor=10
 
 [channel.socket:psabonnethead:8009]
 ver=1
 graceful=0
 info=A tomcat instance - psabonnethead.
 debug=0
 disabled=1
 group=lb
 tomcatId=psabonnethead
 lb_factor=10
 
 [channel.socket:psawinghead:8009]
 ver=1
 graceful=0
 info=A tomcat instance - psawinghead.
 debug=0
 disabled=1
 group=lb
 tomcatId=psawinghead
 lb_factor=10
 
 [status:status]
 info=Status worker, displays runtime informations
 
 [uri:/jkstatus]
 group=status:status
 
 # Map the Tomcat examples webbapp
 [uri:/myapp/*]
 info=Map the whole webapp
 group=lb
 
 
 
 
 
   
   
 __
 Do you Yahoo!?
 Yahoo! Tax Center - File online by April 15th
 http://taxes.yahoo.com/filing.html
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Load balancing with apache2, mod_jk2 tomcat 5.0

2004-04-15 Thread Thomas D. Zeimet
Yes.  I did a full stop and start of apache.  There are no errors in the log
files either.  Do you, or anyone else, have a workers2.properties file of a
working system that you are willing to share?  I've gone through all the
sections and properties in the latest jakarta jk2 document as well as other
How-Tos and don't see what I've missed (I'm afraid I don't understand all of it
either :).  Does the shm section play a part?  I interpretted it to be needed
only if one wants to share session data between the differnet tomcat servers,
and does not have anything to do with load balancing.

Thanks,
-Tom


--- Yang Xiao [EMAIL PROTECTED] wrote:
 Hi,
 Did you restart the Apache2 server? My understanding is JK only reloads it
 only if the section you modified in workers.properties has ver defined.
 Also, check your jk.log and Catalina.log files for errors.
 Yang
 
 -Original Message-
 From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, April 14, 2004 7:09 PM
 To: Tomcat Users List
 Subject: RE: Load balancing with apache2, mod_jk2  tomcat 5.0
 
 Thanks but it doesn't seem to make any difference.  For each tomcat server I
 added sections like the following:
 
 [ajp13:psahammerhead:8009]
 channel=channel.socket:psahammerhead:8009
 group=lb
 tomcatId=psahammerhead
 
 It still only wants to use one of the servers.  There are other properties
 that
 could be used but they're not documented too well.  Any other suggestions
 would
 be greatly appreciated.
 
 -Tom
 
 
 --- Yang Xiao [EMAIL PROTECTED] wrote:
  Hi,
  I think you need to further define the workers with 
  
  {ajp13:psahammerhead:8009]
  channel=channel.socket:psahammerhead:8009
  group=lb
  ...
  etc
  
  hope this helps.
  Yang
  
  
  
  -Original Message-
  From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
  Sent: Wednesday, April 14, 2004 10:17 AM
  To: [EMAIL PROTECTED]
  Subject: Load balancing with apache2, mod_jk2  tomcat 5.0
  
  Hi,
  
  I have set up four tomcat 5.0 servers for load balancing using an apache2
  server and mod_jk2 on RedHat 9.0.  The trouble that I am having is that
 most
  of
  the user sessions are routed to only one of the tomcat servers even though
  the
  lb_factor for all is the same, 10.  All tomcat servers seem to be working
  since
  I can disable all but one in the workers2.properties file to force that
  tomcat
  server to be used.  Chnaging the lb_factor can also cause a different
 tomcat
  server to be used most of the time, but I haven't figured out how to
 control
  the balancing by lb_factor.
  
  Below is the workers2.properties file that I am using.
  
  Thanks for any help you can provide,
  -Tom
  
  # workers2.properties 
  
  [logger]
  level=DEBUG
  
  [config:]
  debug=0
  debugEnv=0
  
  [uriMap:]
  info=Maps the requests. Options: debug
  debug=0
  
  # Alternate file logger
  [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=100
  #debug=0
  #disabled=0
  
  [workerEnv:]
  info=Global server options
  debug=0
  timing=1
  # Default Native Logger (apache2 or win32 )
  # can be overriden to a file logger, useful
  # when tracing win32 related issues
  #logger=logger.file:0
  
  [lb:lb]
  ver=1
  info=Default load balancer.
  debug=10
  
  [channel.socket:psahammerhead:8009]
  ver=1
  graceful=0
  info=A tomcat instance - psahammerhead.
  debug=0
  disabled=0
  group=lb
  tomcatId=psahammerhead
  lb_factor=10
  
  [channel.socket:psashovelhead:8009]
  ver=1
  graceful=0
  info=A tomcat instance - psashovelhead.
  debug=0
  disabled=0
  group=lb
  tomcatId=psashovelhead
  lb_factor=10
  
  [channel.socket:psabonnethead:8009]
  ver=1
  graceful=0
  info=A tomcat instance - psabonnethead.
  debug=0
  disabled=1
  group=lb
  tomcatId=psabonnethead
  lb_factor=10
  
  [channel.socket:psawinghead:8009]
  ver=1
  graceful=0
  info=A tomcat instance - psawinghead.
  debug=0
  disabled=1
  group=lb
  tomcatId=psawinghead
  lb_factor=10
  
  [status:status]
  info=Status worker, displays runtime informations
  
  [uri:/jkstatus]
  group=status:status
  
  # Map the Tomcat examples webbapp
  [uri:/myapp/*]
  info=Map the whole webapp
  group=lb
  
  
  
  
  
  
  
  __
  Do you Yahoo!?
  Yahoo! Tax Center - File online by April 15th
  http://taxes.yahoo.com/filing.html
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 
   
   
 __
 Do you Yahoo!?
 Yahoo! Tax Center - File online by April 15th
 http://taxes.yahoo.com

RE: Load balancing with apache2, mod_jk2 tomcat 5.0

2004-04-15 Thread Yang Xiao
This is pretty much what I have and it works fine.
[logger]
level=DEBUG
[config:]
debug=0
debigEnv=0

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

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

[shm]
info=Scoreboard. Requried for reconfiguration and status with multiprocess
servers.
file=anon
#size=104856
#debug=1

[workerEnv:]
info=Global server options
debug=0
logger=logger.file:0

# Defines a load balancer named lb. Use even if you only have one machine.
[lb:lb]
info=Default Load Balancer
debug=10

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
lb_factor=5
tomcatid=tomcat1

# Second Scoket Channel
[channel.socket:localhost:8019]
port=8019
host=127.0.0.1
lb_factor=10
tomcatid=tomcat2

# Third Scoket Channel
[channel.socket:localhost:8029]
port=8029
host=127.0.0.1
lb_factor=10
tomcatid=tomcat3

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
group=lb

# define the second worker
[ajp13:localhost:8019]
channel=channel.socket:localhost:8019
group=lb

# define the Third worker
[ajp13:localhost:8029]
channel=channel.socket:localhost:8029
group=lb

# Map the Tomcat examples webapp to the Web server uri space
[uri:/jsp-examples/*]
info=JSP Examples
group=lb


[uri:/webtest/*]
info=Test JSP Page
group=lb

[status:]

-Original Message-
From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 15, 2004 7:46 AM
To: Tomcat Users List
Subject: RE: Load balancing with apache2, mod_jk2  tomcat 5.0

Yes.  I did a full stop and start of apache.  There are no errors in the log
files either.  Do you, or anyone else, have a workers2.properties file of a
working system that you are willing to share?  I've gone through all the
sections and properties in the latest jakarta jk2 document as well as other
How-Tos and don't see what I've missed (I'm afraid I don't understand all of
it
either :).  Does the shm section play a part?  I interpretted it to be
needed
only if one wants to share session data between the differnet tomcat
servers,
and does not have anything to do with load balancing.

Thanks,
-Tom


--- Yang Xiao [EMAIL PROTECTED] wrote:
 Hi,
 Did you restart the Apache2 server? My understanding is JK only reloads it
 only if the section you modified in workers.properties has ver defined.
 Also, check your jk.log and Catalina.log files for errors.
 Yang
 
 -Original Message-
 From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, April 14, 2004 7:09 PM
 To: Tomcat Users List
 Subject: RE: Load balancing with apache2, mod_jk2  tomcat 5.0
 
 Thanks but it doesn't seem to make any difference.  For each tomcat server
I
 added sections like the following:
 
 [ajp13:psahammerhead:8009]
 channel=channel.socket:psahammerhead:8009
 group=lb
 tomcatId=psahammerhead
 
 It still only wants to use one of the servers.  There are other properties
 that
 could be used but they're not documented too well.  Any other suggestions
 would
 be greatly appreciated.
 
 -Tom
 
 
 --- Yang Xiao [EMAIL PROTECTED] wrote:
  Hi,
  I think you need to further define the workers with 
  
  {ajp13:psahammerhead:8009]
  channel=channel.socket:psahammerhead:8009
  group=lb
  ...
  etc
  
  hope this helps.
  Yang
  
  
  
  -Original Message-
  From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
  Sent: Wednesday, April 14, 2004 10:17 AM
  To: [EMAIL PROTECTED]
  Subject: Load balancing with apache2, mod_jk2  tomcat 5.0
  
  Hi,
  
  I have set up four tomcat 5.0 servers for load balancing using an
apache2
  server and mod_jk2 on RedHat 9.0.  The trouble that I am having is that
 most
  of
  the user sessions are routed to only one of the tomcat servers even
though
  the
  lb_factor for all is the same, 10.  All tomcat servers seem to be
working
  since
  I can disable all but one in the workers2.properties file to force that
  tomcat
  server to be used.  Chnaging the lb_factor can also cause a different
 tomcat
  server to be used most of the time, but I haven't figured out how to
 control
  the balancing by lb_factor.
  
  Below is the workers2.properties file that I am using.
  
  Thanks for any help you can provide,
  -Tom
  
  # workers2.properties 
  
  [logger]
  level=DEBUG
  
  [config:]
  debug=0
  debugEnv=0
  
  [uriMap:]
  info=Maps the requests. Options: debug
  debug=0
  
  # Alternate file logger
  [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=100
  #debug=0
  #disabled=0
  
  [workerEnv:]
  info=Global server options
  debug=0
  timing=1
  # Default Native Logger (apache2 or win32 )
  # can be overriden to a file logger, useful
  # when tracing win32 related issues
  #logger=logger.file:0
  
  [lb:lb]
  ver=1
  info=Default load balancer.
  debug=10

RE: Load balancing with apache2, mod_jk2 tomcat 5.0

2004-04-15 Thread Thomas D. Zeimet
Thanks.  The only change that you made to the tomcat server.xml conf file is
assigning your timcatid values to the jvmRoute property, correct?

Engine name=Catalina defaultHost=localhost debug=0
jvmRoute=psahammerhead

-Tom

--- Yang Xiao [EMAIL PROTECTED] wrote:
 This is pretty much what I have and it works fine.
 [logger]
 level=DEBUG
 [config:]
 debug=0
 debigEnv=0
 
 [uriMap:]
 info=Maps the requests, Options: debug
 debug=0
 
 # Alternate file logger
 [logger.file:0]
 level=DEBUG
 file=/usr/local/apache/logs/jk2.log
 
 [shm]
 info=Scoreboard. Requried for reconfiguration and status with multiprocess
 servers.
 file=anon
 #size=104856
 #debug=1
 
 [workerEnv:]
 info=Global server options
 debug=0
 logger=logger.file:0
 
 # Defines a load balancer named lb. Use even if you only have one machine.
 [lb:lb]
 info=Default Load Balancer
 debug=10
 
 # Example socket channel, override port and host.
 [channel.socket:localhost:8009]
 port=8009
 host=127.0.0.1
 lb_factor=5
 tomcatid=tomcat1
 
 # Second Scoket Channel
 [channel.socket:localhost:8019]
 port=8019
 host=127.0.0.1
 lb_factor=10
 tomcatid=tomcat2
 
 # Third Scoket Channel
 [channel.socket:localhost:8029]
 port=8029
 host=127.0.0.1
 lb_factor=10
 tomcatid=tomcat3
 
 # define the worker
 [ajp13:localhost:8009]
 channel=channel.socket:localhost:8009
 group=lb
 
 # define the second worker
 [ajp13:localhost:8019]
 channel=channel.socket:localhost:8019
 group=lb
 
 # define the Third worker
 [ajp13:localhost:8029]
 channel=channel.socket:localhost:8029
 group=lb
 
 # Map the Tomcat examples webapp to the Web server uri space
 [uri:/jsp-examples/*]
 info=JSP Examples
 group=lb
 
 
 [uri:/webtest/*]
 info=Test JSP Page
 group=lb
 
 [status:]
 
 -Original Message-
 From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, April 15, 2004 7:46 AM
 To: Tomcat Users List
 Subject: RE: Load balancing with apache2, mod_jk2  tomcat 5.0
 
 Yes.  I did a full stop and start of apache.  There are no errors in the log
 files either.  Do you, or anyone else, have a workers2.properties file of a
 working system that you are willing to share?  I've gone through all the
 sections and properties in the latest jakarta jk2 document as well as other
 How-Tos and don't see what I've missed (I'm afraid I don't understand all of
 it
 either :).  Does the shm section play a part?  I interpretted it to be
 needed
 only if one wants to share session data between the differnet tomcat
 servers,
 and does not have anything to do with load balancing.
 
 Thanks,
 -Tom
 
 
 --- Yang Xiao [EMAIL PROTECTED] wrote:
  Hi,
  Did you restart the Apache2 server? My understanding is JK only reloads it
  only if the section you modified in workers.properties has ver defined.
  Also, check your jk.log and Catalina.log files for errors.
  Yang
  
  -Original Message-
  From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
  Sent: Wednesday, April 14, 2004 7:09 PM
  To: Tomcat Users List
  Subject: RE: Load balancing with apache2, mod_jk2  tomcat 5.0
  
  Thanks but it doesn't seem to make any difference.  For each tomcat server
 I
  added sections like the following:
  
  [ajp13:psahammerhead:8009]
  channel=channel.socket:psahammerhead:8009
  group=lb
  tomcatId=psahammerhead
  
  It still only wants to use one of the servers.  There are other properties
  that
  could be used but they're not documented too well.  Any other suggestions
  would
  be greatly appreciated.
  
  -Tom
  
  
  --- Yang Xiao [EMAIL PROTECTED] wrote:
   Hi,
   I think you need to further define the workers with 
   
   {ajp13:psahammerhead:8009]
   channel=channel.socket:psahammerhead:8009
   group=lb
   ...
   etc
   
   hope this helps.
   Yang
   
   
   
   -Original Message-
   From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
   Sent: Wednesday, April 14, 2004 10:17 AM
   To: [EMAIL PROTECTED]
   Subject: Load balancing with apache2, mod_jk2  tomcat 5.0
   
   Hi,
   
   I have set up four tomcat 5.0 servers for load balancing using an
 apache2
   server and mod_jk2 on RedHat 9.0.  The trouble that I am having is that
  most
   of
   the user sessions are routed to only one of the tomcat servers even
 though
   the
   lb_factor for all is the same, 10.  All tomcat servers seem to be
 working
   since
   I can disable all but one in the workers2.properties file to force that
   tomcat
   server to be used.  Chnaging the lb_factor can also cause a different
  tomcat
   server to be used most of the time, but I haven't figured out how to
  control
   the balancing by lb_factor.
   
   Below is the workers2.properties file that I am using.
   
   Thanks for any help you can provide,
   -Tom
   
   # workers2.properties 
   
   [logger]
   level=DEBUG
   
   [config:]
   debug=0
   debugEnv=0
   
   [uriMap:]
   info=Maps the requests. Options: debug
   debug=0
   
   # Alternate file logger
   [logger.file:0]
   level=DEBUG
   file=/usr/local/apache2/logs/jk2.log
   
   #[shm:]
   #info

RE: Load balancing with apache2, mod_jk2 tomcat 5.0

2004-04-15 Thread Yang Xiao
Yes.

-Original Message-
From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 15, 2004 9:42 AM
To: Tomcat Users List
Subject: RE: Load balancing with apache2, mod_jk2  tomcat 5.0

Thanks.  The only change that you made to the tomcat server.xml conf file is
assigning your timcatid values to the jvmRoute property, correct?

Engine name=Catalina defaultHost=localhost debug=0
jvmRoute=psahammerhead

-Tom

--- Yang Xiao [EMAIL PROTECTED] wrote:
 This is pretty much what I have and it works fine.
 [logger]
 level=DEBUG
 [config:]
 debug=0
 debigEnv=0
 
 [uriMap:]
 info=Maps the requests, Options: debug
 debug=0
 
 # Alternate file logger
 [logger.file:0]
 level=DEBUG
 file=/usr/local/apache/logs/jk2.log
 
 [shm]
 info=Scoreboard. Requried for reconfiguration and status with multiprocess
 servers.
 file=anon
 #size=104856
 #debug=1
 
 [workerEnv:]
 info=Global server options
 debug=0
 logger=logger.file:0
 
 # Defines a load balancer named lb. Use even if you only have one machine.
 [lb:lb]
 info=Default Load Balancer
 debug=10
 
 # Example socket channel, override port and host.
 [channel.socket:localhost:8009]
 port=8009
 host=127.0.0.1
 lb_factor=5
 tomcatid=tomcat1
 
 # Second Scoket Channel
 [channel.socket:localhost:8019]
 port=8019
 host=127.0.0.1
 lb_factor=10
 tomcatid=tomcat2
 
 # Third Scoket Channel
 [channel.socket:localhost:8029]
 port=8029
 host=127.0.0.1
 lb_factor=10
 tomcatid=tomcat3
 
 # define the worker
 [ajp13:localhost:8009]
 channel=channel.socket:localhost:8009
 group=lb
 
 # define the second worker
 [ajp13:localhost:8019]
 channel=channel.socket:localhost:8019
 group=lb
 
 # define the Third worker
 [ajp13:localhost:8029]
 channel=channel.socket:localhost:8029
 group=lb
 
 # Map the Tomcat examples webapp to the Web server uri space
 [uri:/jsp-examples/*]
 info=JSP Examples
 group=lb
 
 
 [uri:/webtest/*]
 info=Test JSP Page
 group=lb
 
 [status:]
 
 -Original Message-
 From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, April 15, 2004 7:46 AM
 To: Tomcat Users List
 Subject: RE: Load balancing with apache2, mod_jk2  tomcat 5.0
 
 Yes.  I did a full stop and start of apache.  There are no errors in the
log
 files either.  Do you, or anyone else, have a workers2.properties file of
a
 working system that you are willing to share?  I've gone through all the
 sections and properties in the latest jakarta jk2 document as well as
other
 How-Tos and don't see what I've missed (I'm afraid I don't understand all
of
 it
 either :).  Does the shm section play a part?  I interpretted it to be
 needed
 only if one wants to share session data between the differnet tomcat
 servers,
 and does not have anything to do with load balancing.
 
 Thanks,
 -Tom
 
 
 --- Yang Xiao [EMAIL PROTECTED] wrote:
  Hi,
  Did you restart the Apache2 server? My understanding is JK only reloads
it
  only if the section you modified in workers.properties has ver
defined.
  Also, check your jk.log and Catalina.log files for errors.
  Yang
  
  -Original Message-
  From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
  Sent: Wednesday, April 14, 2004 7:09 PM
  To: Tomcat Users List
  Subject: RE: Load balancing with apache2, mod_jk2  tomcat 5.0
  
  Thanks but it doesn't seem to make any difference.  For each tomcat
server
 I
  added sections like the following:
  
  [ajp13:psahammerhead:8009]
  channel=channel.socket:psahammerhead:8009
  group=lb
  tomcatId=psahammerhead
  
  It still only wants to use one of the servers.  There are other
properties
  that
  could be used but they're not documented too well.  Any other
suggestions
  would
  be greatly appreciated.
  
  -Tom
  
  
  --- Yang Xiao [EMAIL PROTECTED] wrote:
   Hi,
   I think you need to further define the workers with 
   
   {ajp13:psahammerhead:8009]
   channel=channel.socket:psahammerhead:8009
   group=lb
   ...
   etc
   
   hope this helps.
   Yang
   
   
   
   -Original Message-
   From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
   Sent: Wednesday, April 14, 2004 10:17 AM
   To: [EMAIL PROTECTED]
   Subject: Load balancing with apache2, mod_jk2  tomcat 5.0
   
   Hi,
   
   I have set up four tomcat 5.0 servers for load balancing using an
 apache2
   server and mod_jk2 on RedHat 9.0.  The trouble that I am having is
that
  most
   of
   the user sessions are routed to only one of the tomcat servers even
 though
   the
   lb_factor for all is the same, 10.  All tomcat servers seem to be
 working
   since
   I can disable all but one in the workers2.properties file to force
that
   tomcat
   server to be used.  Chnaging the lb_factor can also cause a different
  tomcat
   server to be used most of the time, but I haven't figured out how to
  control
   the balancing by lb_factor.
   
   Below is the workers2.properties file that I am using.
   
   Thanks for any help you can provide,
   -Tom
   
   # workers2.properties 
   
   [logger]
   level=DEBUG
   
   [config:]
   debug=0
   debugEnv

RE: Load balancing with apache2, mod_jk2 tomcat 5.0

2004-04-15 Thread Thomas D. Zeimet
Does the shm play a role in this?  I note that you have the following:
[shm]
info=Scoreboard. Requried for reconfiguration and status with multiprocess
servers.
file=anon
#size=104856
#debug=1

Do your tomcat servers have a corresponding entry in their jk2.properties file?
 Like this?

channelSocket.port=8019
shm.file=/mnt/logs/jk2.shm

Is this even necessary for load balancing?

-Tom


--- Yang Xiao [EMAIL PROTECTED] wrote:
 Yes.
 
 -Original Message-
 From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, April 15, 2004 9:42 AM
 To: Tomcat Users List
 Subject: RE: Load balancing with apache2, mod_jk2  tomcat 5.0
 
 Thanks.  The only change that you made to the tomcat server.xml conf file is
 assigning your timcatid values to the jvmRoute property, correct?
 
 Engine name=Catalina defaultHost=localhost debug=0
 jvmRoute=psahammerhead
 
 -Tom
 
 --- Yang Xiao [EMAIL PROTECTED] wrote:
  This is pretty much what I have and it works fine.
  [logger]
  level=DEBUG
  [config:]
  debug=0
  debigEnv=0
  
  [uriMap:]
  info=Maps the requests, Options: debug
  debug=0
  
  # Alternate file logger
  [logger.file:0]
  level=DEBUG
  file=/usr/local/apache/logs/jk2.log
  
  [shm]
  info=Scoreboard. Requried for reconfiguration and status with multiprocess
  servers.
  file=anon
  #size=104856
  #debug=1
  
  [workerEnv:]
  info=Global server options
  debug=0
  logger=logger.file:0
  
  # Defines a load balancer named lb. Use even if you only have one machine.
  [lb:lb]
  info=Default Load Balancer
  debug=10
  
  # Example socket channel, override port and host.
  [channel.socket:localhost:8009]
  port=8009
  host=127.0.0.1
  lb_factor=5
  tomcatid=tomcat1
  
  # Second Scoket Channel
  [channel.socket:localhost:8019]
  port=8019
  host=127.0.0.1
  lb_factor=10
  tomcatid=tomcat2
  
  # Third Scoket Channel
  [channel.socket:localhost:8029]
  port=8029
  host=127.0.0.1
  lb_factor=10
  tomcatid=tomcat3
  
  # define the worker
  [ajp13:localhost:8009]
  channel=channel.socket:localhost:8009
  group=lb
  
  # define the second worker
  [ajp13:localhost:8019]
  channel=channel.socket:localhost:8019
  group=lb
  
  # define the Third worker
  [ajp13:localhost:8029]
  channel=channel.socket:localhost:8029
  group=lb
  
  # Map the Tomcat examples webapp to the Web server uri space
  [uri:/jsp-examples/*]
  info=JSP Examples
  group=lb
  
  
  [uri:/webtest/*]
  info=Test JSP Page
  group=lb
  
  [status:]
  
  -Original Message-
  From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, April 15, 2004 7:46 AM
  To: Tomcat Users List
  Subject: RE: Load balancing with apache2, mod_jk2  tomcat 5.0
  
  Yes.  I did a full stop and start of apache.  There are no errors in the
 log
  files either.  Do you, or anyone else, have a workers2.properties file of
 a
  working system that you are willing to share?  I've gone through all the
  sections and properties in the latest jakarta jk2 document as well as
 other
  How-Tos and don't see what I've missed (I'm afraid I don't understand all
 of
  it
  either :).  Does the shm section play a part?  I interpretted it to be
  needed
  only if one wants to share session data between the differnet tomcat
  servers,
  and does not have anything to do with load balancing.
  
  Thanks,
  -Tom
  
  
  --- Yang Xiao [EMAIL PROTECTED] wrote:
   Hi,
   Did you restart the Apache2 server? My understanding is JK only reloads
 it
   only if the section you modified in workers.properties has ver
 defined.
   Also, check your jk.log and Catalina.log files for errors.
   Yang
   
   -Original Message-
   From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
   Sent: Wednesday, April 14, 2004 7:09 PM
   To: Tomcat Users List
   Subject: RE: Load balancing with apache2, mod_jk2  tomcat 5.0
   
   Thanks but it doesn't seem to make any difference.  For each tomcat
 server
  I
   added sections like the following:
   
   [ajp13:psahammerhead:8009]
   channel=channel.socket:psahammerhead:8009
   group=lb
   tomcatId=psahammerhead
   
   It still only wants to use one of the servers.  There are other
 properties
   that
   could be used but they're not documented too well.  Any other
 suggestions
   would
   be greatly appreciated.
   
   -Tom
   
   
   --- Yang Xiao [EMAIL PROTECTED] wrote:
Hi,
I think you need to further define the workers with 

{ajp13:psahammerhead:8009]
channel=channel.socket:psahammerhead:8009
group=lb
...
etc

hope this helps.
Yang



-Original Message-
From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 14, 2004 10:17 AM
To: [EMAIL PROTECTED]
Subject: Load balancing with apache2, mod_jk2  tomcat 5.0

Hi,

I have set up four tomcat 5.0 servers for load balancing using an
  apache2
server and mod_jk2 on RedHat 9.0.  The trouble that I am having is
 that
   most
of
the user sessions are routed to only one

RE: Load balancing with apache2, mod_jk2 tomcat 5.0

2004-04-15 Thread Yang Xiao
Hi,
Hmm. I commented out the shm.file line in my jk2.properties because it
doesn't seem to be working, but I just did a test with it uncommented, LD
still works fine. 
However, if I use anything other than file=anon in the workers2.properties
file, I don't get the Scoreboard info on the jkstatus page, kind of strange.
Yang


-Original Message-
From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 15, 2004 4:55 PM
To: Tomcat Users List
Subject: RE: Load balancing with apache2, mod_jk2  tomcat 5.0

Does the shm play a role in this?  I note that you have the following:
[shm]
info=Scoreboard. Requried for reconfiguration and status with multiprocess
servers.
file=anon
#size=104856
#debug=1

Do your tomcat servers have a corresponding entry in their jk2.properties
file?
 Like this?

channelSocket.port=8019
shm.file=/mnt/logs/jk2.shm

Is this even necessary for load balancing?

-Tom


--- Yang Xiao [EMAIL PROTECTED] wrote:
 Yes.
 
 -Original Message-
 From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, April 15, 2004 9:42 AM
 To: Tomcat Users List
 Subject: RE: Load balancing with apache2, mod_jk2  tomcat 5.0
 
 Thanks.  The only change that you made to the tomcat server.xml conf file
is
 assigning your timcatid values to the jvmRoute property, correct?
 
 Engine name=Catalina defaultHost=localhost debug=0
 jvmRoute=psahammerhead
 
 -Tom
 
 --- Yang Xiao [EMAIL PROTECTED] wrote:
  This is pretty much what I have and it works fine.
  [logger]
  level=DEBUG
  [config:]
  debug=0
  debigEnv=0
  
  [uriMap:]
  info=Maps the requests, Options: debug
  debug=0
  
  # Alternate file logger
  [logger.file:0]
  level=DEBUG
  file=/usr/local/apache/logs/jk2.log
  
  [shm]
  info=Scoreboard. Requried for reconfiguration and status with
multiprocess
  servers.
  file=anon
  #size=104856
  #debug=1
  
  [workerEnv:]
  info=Global server options
  debug=0
  logger=logger.file:0
  
  # Defines a load balancer named lb. Use even if you only have one
machine.
  [lb:lb]
  info=Default Load Balancer
  debug=10
  
  # Example socket channel, override port and host.
  [channel.socket:localhost:8009]
  port=8009
  host=127.0.0.1
  lb_factor=5
  tomcatid=tomcat1
  
  # Second Scoket Channel
  [channel.socket:localhost:8019]
  port=8019
  host=127.0.0.1
  lb_factor=10
  tomcatid=tomcat2
  
  # Third Scoket Channel
  [channel.socket:localhost:8029]
  port=8029
  host=127.0.0.1
  lb_factor=10
  tomcatid=tomcat3
  
  # define the worker
  [ajp13:localhost:8009]
  channel=channel.socket:localhost:8009
  group=lb
  
  # define the second worker
  [ajp13:localhost:8019]
  channel=channel.socket:localhost:8019
  group=lb
  
  # define the Third worker
  [ajp13:localhost:8029]
  channel=channel.socket:localhost:8029
  group=lb
  
  # Map the Tomcat examples webapp to the Web server uri space
  [uri:/jsp-examples/*]
  info=JSP Examples
  group=lb
  
  
  [uri:/webtest/*]
  info=Test JSP Page
  group=lb
  
  [status:]
  
  -Original Message-
  From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, April 15, 2004 7:46 AM
  To: Tomcat Users List
  Subject: RE: Load balancing with apache2, mod_jk2  tomcat 5.0
  
  Yes.  I did a full stop and start of apache.  There are no errors in the
 log
  files either.  Do you, or anyone else, have a workers2.properties file
of
 a
  working system that you are willing to share?  I've gone through all the
  sections and properties in the latest jakarta jk2 document as well as
 other
  How-Tos and don't see what I've missed (I'm afraid I don't understand
all
 of
  it
  either :).  Does the shm section play a part?  I interpretted it to be
  needed
  only if one wants to share session data between the differnet tomcat
  servers,
  and does not have anything to do with load balancing.
  
  Thanks,
  -Tom
  
  
  --- Yang Xiao [EMAIL PROTECTED] wrote:
   Hi,
   Did you restart the Apache2 server? My understanding is JK only
reloads
 it
   only if the section you modified in workers.properties has ver
 defined.
   Also, check your jk.log and Catalina.log files for errors.
   Yang
   
   -Original Message-
   From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
   Sent: Wednesday, April 14, 2004 7:09 PM
   To: Tomcat Users List
   Subject: RE: Load balancing with apache2, mod_jk2  tomcat 5.0
   
   Thanks but it doesn't seem to make any difference.  For each tomcat
 server
  I
   added sections like the following:
   
   [ajp13:psahammerhead:8009]
   channel=channel.socket:psahammerhead:8009
   group=lb
   tomcatId=psahammerhead
   
   It still only wants to use one of the servers.  There are other
 properties
   that
   could be used but they're not documented too well.  Any other
 suggestions
   would
   be greatly appreciated.
   
   -Tom
   
   
   --- Yang Xiao [EMAIL PROTECTED] wrote:
Hi,
I think you need to further define the workers with 

{ajp13:psahammerhead:8009]
channel=channel.socket:psahammerhead:8009

RE: Load balancing with apache2, mod_jk2 tomcat 5.0

2004-04-14 Thread Ralph Einfeldt
Some members of this list have reported that the load 
balancing is broken as the instances of mod_jk[2] 
don't know the load of each other. So mod_jk[2] will 
balance to some extend but not as good as it could/should.

 -Original Message-
 From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 14, 2004 4:17 PM
 To: [EMAIL PROTECTED]
 Subject: Load balancing with apache2, mod_jk2  tomcat 5.0
 
 I have set up four tomcat 5.0 servers for load balancing 
 using an apache2
 server and mod_jk2 on RedHat 9.0.  The trouble that I am 
 having is that most of
 the user sessions are routed to only one of the tomcat 
 servers even though the
 lb_factor for all is the same, 10.  All tomcat servers seem 
 to be working since
 I can disable all but one in the workers2.properties file to 
 force that tomcat

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Load balancing with apache2, mod_jk2 tomcat 5.0

2004-04-14 Thread Yang Xiao
Hi,
I think you need to further define the workers with 

{ajp13:psahammerhead:8009]
channel=channel.socket:psahammerhead:8009
group=lb
...
etc

hope this helps.
Yang



-Original Message-
From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 14, 2004 10:17 AM
To: [EMAIL PROTECTED]
Subject: Load balancing with apache2, mod_jk2  tomcat 5.0

Hi,

I have set up four tomcat 5.0 servers for load balancing using an apache2
server and mod_jk2 on RedHat 9.0.  The trouble that I am having is that most
of
the user sessions are routed to only one of the tomcat servers even though
the
lb_factor for all is the same, 10.  All tomcat servers seem to be working
since
I can disable all but one in the workers2.properties file to force that
tomcat
server to be used.  Chnaging the lb_factor can also cause a different tomcat
server to be used most of the time, but I haven't figured out how to control
the balancing by lb_factor.

Below is the workers2.properties file that I am using.

Thanks for any help you can provide,
-Tom

# workers2.properties 

[logger]
level=DEBUG

[config:]
debug=0
debugEnv=0

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

# Alternate file logger
[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=100
#debug=0
#disabled=0

[workerEnv:]
info=Global server options
debug=0
timing=1
# Default Native Logger (apache2 or win32 )
# can be overriden to a file logger, useful
# when tracing win32 related issues
#logger=logger.file:0

[lb:lb]
ver=1
info=Default load balancer.
debug=10

[channel.socket:psahammerhead:8009]
ver=1
graceful=0
info=A tomcat instance - psahammerhead.
debug=0
disabled=0
group=lb
tomcatId=psahammerhead
lb_factor=10

[channel.socket:psashovelhead:8009]
ver=1
graceful=0
info=A tomcat instance - psashovelhead.
debug=0
disabled=0
group=lb
tomcatId=psashovelhead
lb_factor=10

[channel.socket:psabonnethead:8009]
ver=1
graceful=0
info=A tomcat instance - psabonnethead.
debug=0
disabled=1
group=lb
tomcatId=psabonnethead
lb_factor=10

[channel.socket:psawinghead:8009]
ver=1
graceful=0
info=A tomcat instance - psawinghead.
debug=0
disabled=1
group=lb
tomcatId=psawinghead
lb_factor=10

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

[uri:/jkstatus]
group=status:status

# Map the Tomcat examples webbapp
[uri:/myapp/*]
info=Map the whole webapp
group=lb







__
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Load balancing with apache2, mod_jk2 tomcat 5.0

2004-04-14 Thread Thomas D. Zeimet
Thanks but it doesn't seem to make any difference.  For each tomcat server I
added sections like the following:

[ajp13:psahammerhead:8009]
channel=channel.socket:psahammerhead:8009
group=lb
tomcatId=psahammerhead

It still only wants to use one of the servers.  There are other properties that
could be used but they're not documented too well.  Any other suggestions would
be greatly appreciated.

-Tom


--- Yang Xiao [EMAIL PROTECTED] wrote:
 Hi,
 I think you need to further define the workers with 
 
 {ajp13:psahammerhead:8009]
 channel=channel.socket:psahammerhead:8009
 group=lb
 ...
 etc
 
 hope this helps.
 Yang
 
 
 
 -Original Message-
 From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, April 14, 2004 10:17 AM
 To: [EMAIL PROTECTED]
 Subject: Load balancing with apache2, mod_jk2  tomcat 5.0
 
 Hi,
 
 I have set up four tomcat 5.0 servers for load balancing using an apache2
 server and mod_jk2 on RedHat 9.0.  The trouble that I am having is that most
 of
 the user sessions are routed to only one of the tomcat servers even though
 the
 lb_factor for all is the same, 10.  All tomcat servers seem to be working
 since
 I can disable all but one in the workers2.properties file to force that
 tomcat
 server to be used.  Chnaging the lb_factor can also cause a different tomcat
 server to be used most of the time, but I haven't figured out how to control
 the balancing by lb_factor.
 
 Below is the workers2.properties file that I am using.
 
 Thanks for any help you can provide,
 -Tom
 
 # workers2.properties 
 
 [logger]
 level=DEBUG
 
 [config:]
 debug=0
 debugEnv=0
 
 [uriMap:]
 info=Maps the requests. Options: debug
 debug=0
 
 # Alternate file logger
 [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=100
 #debug=0
 #disabled=0
 
 [workerEnv:]
 info=Global server options
 debug=0
 timing=1
 # Default Native Logger (apache2 or win32 )
 # can be overriden to a file logger, useful
 # when tracing win32 related issues
 #logger=logger.file:0
 
 [lb:lb]
 ver=1
 info=Default load balancer.
 debug=10
 
 [channel.socket:psahammerhead:8009]
 ver=1
 graceful=0
 info=A tomcat instance - psahammerhead.
 debug=0
 disabled=0
 group=lb
 tomcatId=psahammerhead
 lb_factor=10
 
 [channel.socket:psashovelhead:8009]
 ver=1
 graceful=0
 info=A tomcat instance - psashovelhead.
 debug=0
 disabled=0
 group=lb
 tomcatId=psashovelhead
 lb_factor=10
 
 [channel.socket:psabonnethead:8009]
 ver=1
 graceful=0
 info=A tomcat instance - psabonnethead.
 debug=0
 disabled=1
 group=lb
 tomcatId=psabonnethead
 lb_factor=10
 
 [channel.socket:psawinghead:8009]
 ver=1
 graceful=0
 info=A tomcat instance - psawinghead.
 debug=0
 disabled=1
 group=lb
 tomcatId=psawinghead
 lb_factor=10
 
 [status:status]
 info=Status worker, displays runtime informations
 
 [uri:/jkstatus]
 group=status:status
 
 # Map the Tomcat examples webbapp
 [uri:/myapp/*]
 info=Map the whole webapp
 group=lb
 
 
 
 
 
   
   
 __
 Do you Yahoo!?
 Yahoo! Tax Center - File online by April 15th
 http://taxes.yahoo.com/filing.html
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 





__
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Load balancing with apache2, mod_jk2 tomcat 5.0

2004-04-14 Thread Yang Xiao
Hi,
Did you restart the Apache2 server? My understanding is JK only reloads it
only if the section you modified in workers.properties has ver defined.
Also, check your jk.log and Catalina.log files for errors.
Yang

-Original Message-
From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 14, 2004 7:09 PM
To: Tomcat Users List
Subject: RE: Load balancing with apache2, mod_jk2  tomcat 5.0

Thanks but it doesn't seem to make any difference.  For each tomcat server I
added sections like the following:

[ajp13:psahammerhead:8009]
channel=channel.socket:psahammerhead:8009
group=lb
tomcatId=psahammerhead

It still only wants to use one of the servers.  There are other properties
that
could be used but they're not documented too well.  Any other suggestions
would
be greatly appreciated.

-Tom


--- Yang Xiao [EMAIL PROTECTED] wrote:
 Hi,
 I think you need to further define the workers with 
 
 {ajp13:psahammerhead:8009]
 channel=channel.socket:psahammerhead:8009
 group=lb
 ...
 etc
 
 hope this helps.
 Yang
 
 
 
 -Original Message-
 From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, April 14, 2004 10:17 AM
 To: [EMAIL PROTECTED]
 Subject: Load balancing with apache2, mod_jk2  tomcat 5.0
 
 Hi,
 
 I have set up four tomcat 5.0 servers for load balancing using an apache2
 server and mod_jk2 on RedHat 9.0.  The trouble that I am having is that
most
 of
 the user sessions are routed to only one of the tomcat servers even though
 the
 lb_factor for all is the same, 10.  All tomcat servers seem to be working
 since
 I can disable all but one in the workers2.properties file to force that
 tomcat
 server to be used.  Chnaging the lb_factor can also cause a different
tomcat
 server to be used most of the time, but I haven't figured out how to
control
 the balancing by lb_factor.
 
 Below is the workers2.properties file that I am using.
 
 Thanks for any help you can provide,
 -Tom
 
 # workers2.properties 
 
 [logger]
 level=DEBUG
 
 [config:]
 debug=0
 debugEnv=0
 
 [uriMap:]
 info=Maps the requests. Options: debug
 debug=0
 
 # Alternate file logger
 [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=100
 #debug=0
 #disabled=0
 
 [workerEnv:]
 info=Global server options
 debug=0
 timing=1
 # Default Native Logger (apache2 or win32 )
 # can be overriden to a file logger, useful
 # when tracing win32 related issues
 #logger=logger.file:0
 
 [lb:lb]
 ver=1
 info=Default load balancer.
 debug=10
 
 [channel.socket:psahammerhead:8009]
 ver=1
 graceful=0
 info=A tomcat instance - psahammerhead.
 debug=0
 disabled=0
 group=lb
 tomcatId=psahammerhead
 lb_factor=10
 
 [channel.socket:psashovelhead:8009]
 ver=1
 graceful=0
 info=A tomcat instance - psashovelhead.
 debug=0
 disabled=0
 group=lb
 tomcatId=psashovelhead
 lb_factor=10
 
 [channel.socket:psabonnethead:8009]
 ver=1
 graceful=0
 info=A tomcat instance - psabonnethead.
 debug=0
 disabled=1
 group=lb
 tomcatId=psabonnethead
 lb_factor=10
 
 [channel.socket:psawinghead:8009]
 ver=1
 graceful=0
 info=A tomcat instance - psawinghead.
 debug=0
 disabled=1
 group=lb
 tomcatId=psawinghead
 lb_factor=10
 
 [status:status]
 info=Status worker, displays runtime informations
 
 [uri:/jkstatus]
 group=status:status
 
 # Map the Tomcat examples webbapp
 [uri:/myapp/*]
 info=Map the whole webapp
 group=lb
 
 
 
 
 
   
   
 __
 Do you Yahoo!?
 Yahoo! Tax Center - File online by April 15th
 http://taxes.yahoo.com/filing.html
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 





__
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]