RE: session affinity with loadbalancing (apache2, mod_jk, tomcat5 on linux 9, jdk1.4.2)
Yah I missed that one. thanks -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 3:50 PM To: Tomcat Users List Subject: RE: session affinity with loadbalancing (apache2, mod_jk, tomcat5 on linux 9, jdk1.4.2) Did you set the jvmRoute in the Engine tag in server.xml. The value must match the name of the workers. (I'm not shure if it's the name or the attribute 'tomcatid') - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: session affinity with loadbalancing (apache2, mod_jk, tomcat5 on linux 9, jdk1.4.2)
Hi Don't you also have to provide the properties for the loadbalancer worker? eg # properties for load balanced workers worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=tomcat1,tomcat2 and then add the extra properties you require (to worker.loadbalancer.XXX)? Hope that helps. John Sidney-Woollett ian said: > I've read in the Workers How To of apache that the property > sticky_session for lb worker properties enables / disables session > affinity for the load balancer. When I tried it on my system the session > doesn't seem to be retained often resulting to a session timed out or a > not logged in error. Below is my worker.properties configuration. > > # > # worker.properties > # > > # In Unix, we use forward slashes: > ps=/ > > # list the workers by name > worker.list=tomcat1, tomcat2, loadbalancer > > # > # tomcat1 worker > # > > worker.tomcat1.host=192.168.0.61 > worker.tomcat1.port=8009 > worker.tomcat1.lbfactor=100 > worker.tomcat1.type=ajp13 > worker.tomcat1.cachesize=10 > worker.tomcat1.cache_timeout=600 > worker.tomcat1.socket_keepalive=1 > worker.tomcat1.socket_timeout=300 > > # > # tomcat2 worker > # > > worker.tomcat2.host=192.168.0.65 > worker.tomcat2.port=8009 > worker.tomcat2.lbfactor=100 > worker.tomcat2.type=ajp13 > worker.tomcat2.cache_timeout=600 > worker.tomcat2.socket_keepalive=1 > worker.tomcat2.socket_timeout=300 > > # > # end of file > # > > > Can anyone give me an idea where I may have an error? > Thanks. > > - ian > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: session affinity with loadbalancing (apache2, mod_jk, tomcat5 on linux 9, jdk1.4.2)
Did you set the jvmRoute in the Engine tag in server.xml. The value must match the name of the workers. (I'm not shure if it's the name or the attribute 'tomcatid') > -Original Message- > From: ian [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 15, 2004 9:34 AM > To: 'Tomcat Users List' > Subject: session affinity with loadbalancing (apache2, mod_jk, tomcat5 > on linux 9, jdk1.4.2) > > > I've read in the Workers How To of apache that the property > sticky_session for lb worker properties enables / disables session > affinity for the load balancer. When I tried it on my system > the session doesn't seem to be retained often resulting to a session > timed out or a not logged in error. Below is my worker.properties > configuration. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]