tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Cassidy <da...@twocats.co.uk>
Subject Re: Tomcat Clustering.
Date Mon, 02 Sep 2002 15:51:10 GMT
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
>>    
>>
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>>on
>>>>   
>>>>
>>>>        
>>>>
>>>>>tc does not support that?
>>>>>
>>>>>Thank you.
>>>>>
>>>>>          
>>>>>
>>>>__________________________________________________
>>>>        
>>>>
>>>>>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>
>>>>   
>>>>
>>>>        
>>>>
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>>--
>>>>To unsubscribe, e-mail:  
>>>>        
>>>>
>>><mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>>>      
>>>
>>>>For additional commands, e-mail:
>>>><mailto:tomcat-user-help@jakarta.apache.org>
>>>>
>>>>   
>>>>
>>>>        
>>>>
>>>__________________________________________________
>>>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>
>>    
>>
>>> 
>>>
>>>      
>>>
>>
>>
>>--
>>To unsubscribe, e-mail:  
>><mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>>For additional commands, e-mail:
>><mailto:tomcat-user-help@jakarta.apache.org>
>>
>>    
>>
>
>
>__________________________________________________
>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>
>
>  
>




--
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