tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luminous Heart <luminoushe...@yahoo.com>
Subject Re: Tomcat Clustering.
Date Mon, 02 Sep 2002 21:07:37 GMT
Ok. I made the modifications you suggested. As you saw
in my workers file I have 3 tcs; tc13, extra13, and
intra13.
I turned cookies on with IE. When I go to
http://mySite.com I see a cookie being set by let us
say tc13. Then I click on the link to my application
on the front page and sometimes I get another cookie
sent by tc13, other times by another worker. And of
course I am using tc13 as an example, but I saw this
behavior with the three.

Does that mean I am in good shape now? Clustering is a
great thing. I am thinking to move next to Oriely's
memory space clustering model. Has anyone tried it?

Thank, David, for your help.

--- David Cassidy <david@twocats.co.uk> wrote:
> helps only good if it works ...
> 
> let us know if it does !
> 
> you might want to see what jsessionid gets set to.
> if the loadbalancer is working correctly it'll
> append the servers name 
> to the
> jsessionid cookie.
> 
> If you've got mozilla you can examine the cookies
> easily
> 
> D
> 
> 
> Luminous Heart wrote:
> 
> >I will try your suggestion and hope it works for
> me.
> >Thanks a million for your help.
> >
> >--- David Cassidy <david@twocats.co.uk> wrote:
> >  
> >
> >>I think i can see what it is :)
> >>
> >>Your workers.list defines for mod_jk what servers
> to
> >>use.
> >>
> >>In the case below it will use tc13 until it
> doesn't
> >>work / too overworked.
> >>
> >>Change the line so it's
> >>
> >>worker.list=loadbalancer
> >>
> >>Now your balanced_workers will work as the
> >>loadbalancer is in control.
> >>
> >>worker.loadbalancer.balanced_workers=tc13,
> intra13,
> >>extra13
> >>
> >>Hope this works
> >>
> >>David
> >>
> >>
> >>Luminous Heart wrote:
> >>
> >>    
> >>
> >>>Here is my workers file. Please notice that I
> >>>      
> >>>
> >>mounting
> >>    
> >>
> >>>tomcat context as such in my mod_jk.conf file:
> >>>  JkMount /* loadbalancer
> >>>  JkMount /servlet/* loadbalancer
> >>>
> >>>loadbalancer is defined in the following workers
> >>>      
> >>>
> >>file.
> >>    
> >>
> >>>Thank you in advance.
> >>>
> >>>=============== workers.properties =============
> >>>workers.tomcat_home=/usr/local/tomcat
> >>>workers.java_home=/usr/local/j2sdk1.4.0
> >>>ps=/
> >>>
> >>>worker.list=tc13,intra13, extra13, loadbalancer
> >>>
> >>>worker.tc13.port=8039
> >>>worker.tc13.host=localhost
> >>>worker.tc13.type=ajp13
> >>>worker.tc13.lbfactor=1
> >>>
> >>>worker.intra13.port=8049
> >>>worker.intra13.host=localhost
> >>>worker.intra13.type=ajp13
> >>>worker.intra13.lbfactor=1
> >>>
> >>>worker.extra13.port=8059
> >>>worker.extra13.host=localhost
> >>>worker.extra13.type=ajp13
> >>>worker.extra13.lbfactor=1
> >>>
> >>>worker.tc41Intra.port=9009
> >>>worker.tc41Intra.host=localhost
> >>>worker.tc41Intra.type=ajp13
> >>>worker.tc41Intra.lbfactor=1
> >>>
> >>>
> >>>worker.loadbalancer.type=lb
> >>>worker.loadbalancer.balanced_workers=tc13,
> intra13,
> >>>extra13
> >>>
> >>>worker.inprocess.type=jni
> >>>      
> >>>
>
>>worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
> >>    
> >>
> >>>worker.inprocess.cmd_line=start
> >>>      
> >>>
>
>>worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)libjvm.so
> >>
>
>>worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
> >>
>
>>worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr
> >>    
> >>
> >>>============== End workers.properties ==========
> >>>--- David Cassidy <david@twocats.co.uk> wrote:
> >>> 
> >>>
> >>>      
> >>>
> >>>>Would you like to post your workers file
> >>>>
> >>>>D
> >>>>
> >>>>
> >>>>Luminous Heart wrote:
> >>>>
> >>>>   
> >>>>
> >>>>        
> >>>>
> >>>>>Greetings,
> >>>>>
> >>>>>I have a cluster of 3 tomcats running on linux
> >>>>>          
> >>>>>
> >>box.
> >>    
> >>
> >>>>>     
> >>>>>
> >>>>>          
> >>>>>
> >>>>I
> >>>>   
> >>>>
> >>>>        
> >>>>
> >>>>>have the three tc4.0.4 instances in a
> >>>>>          
> >>>>>
> >>loadbalancing
> >>    
> >>
> >>>>>mode. The problem is when one fails none of the
> >>>>>     
> >>>>>
> >>>>>          
> >>>>>
> >>>>others
> >>>>   
> >>>>
> >>>>        
> >>>>
> >>>>>pick up and my app wont serve any requests
> untill
> >>>>>          
> >>>>>
> >>I
> >>    
> >>
> >>>>>shut the faulty tc. Only at that point one of
> the
> >>>>>other two will work. And if I restart the
> faulty
> >>>>>     
> >>>>>
> >>>>>          
> >>>>>
> >>>>one
> >>>>   
> >>>>
> >>>>        
> >>>>
> >>>>>it will start working again.
> >>>>>
> >>>>>Should there be a failover behavior or
> >>>>>          
> >>>>>
> >>loadbalance
> >>    
> >>
> >>>>>     
> 
=== message truncated ===


__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

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


Mime
View raw message