tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Kuz <m...@ServiceIntelligence.com>
Subject [PATCH PROPOSAL] for mod_jk (was: RE: gracefull shutdown/removal of worker from load balance...)
Date Thu, 04 Jan 2001 16:22:31 GMT
Thanks Dave, here you go!
 
WARNING
This is not an official patch and that it has only been tested on Linux.
Use at your own risk :)

OVERVIEW
 
The patch allows for a worker.name.active parameter to be added to the 
workers.property file. eg: worker.tc7.active=0
 
If the active parameter = 1, worker will accept new connections as 
per SOP (this is also the default state, so if the parameter is not 
in the file it still works, or if the value is anything other then 0 
it still works...)
 
If the active parameter = 0, the worker will continue to service 
existing sessions, but will not accept new sessions.
 
I'm still working on a way to determine actives sessions in a worker... 
 
Feedback appreciated!
 
Michael R. Kuz 
Developer 
Service Intelligence 
(403) 261-5000 ext. 363 
mkuz@serviceintelligence.com 

-----Original Message-----
From: Dave Smith [mailto:sat-guru@home.com]
Sent: Friday, October 20, 2000 9:01 AM
To: tomcat-user@jakarta.apache.org
Subject: Re: gracefull shutdown/removal of worker from load balance...


Michael,
 
Please post the patch, if you would. Sounds like a very useful piece of
code.
 
Regards,
 
Dave

----- Original Message ----- 
From: Michael Kuz <mailto:mkuz@ServiceIntelligence.com>  
To: 'tomcat-user@jakarta.apache.org'
<mailto:'tomcat-user@jakarta.apache.org'>  
Sent: Thursday, January 04, 2001 9:51 AM
Subject: RE: gracefull shutdown/removal of worker from load balance...


We've got the load balancer working just fine, but had to patch mod_jk in
order to allow for the removal of TC worker from the pool. 

I've added a setting called 'active' for each worker. When active is set to
0, the worker will not accept new connections, but continue with the
existing sessions. (This allows us to remove the Tomcat box with no loss of
users session info...)

I submitted the patch, but have heard nothing back. If you (or anyone else)
is interested I will post it. 

Michael R. Kuz 
Developer 
Service Intelligence 
(403) 261-5000 ext. 363 
mkuz@serviceintelligence.com 



> -----Original Message----- 
> From: Boaz Shaham [ mailto:Boazs@farechase.com
<mailto:Boazs@farechase.com> ] 
> Sent: Wednesday, January 03, 2001 3:21 AM 
> To: 'tomcat-user@jakarta.apache.org' 
> Subject: RE: gracefull shutdown/removal of worker from load balance... 
> 
> 
> mod_jserv documentation indicates that this should be done. 
> Take a look at 
> http://java.apache.org/jserv/howto.load-balancing.html
<http://java.apache.org/jserv/howto.load-balancing.html>  
> 
> However, we tried it but could not make it work. I dont know if mod_jk 
> supports this, but I"ll be glad to hear that someone succeeded 
> 
> - Boaz 
> 
> -----Original Message----- 
> From: Michael Kuz [ mailto:mkuz@ServiceIntelligence.com
<mailto:mkuz@ServiceIntelligence.com> ] 
> Sent: Wednesday, January 03, 2001 03:51 
> To: 'tomcat-user@jakarta.apache.org'; 'tomcat-dev@jakarta.apache.org' 
> Subject: gracefull shutdown/removal of worker from load balance... 
> 
> 
> Hello all, 
> How do I remove a worker from the load balancer without 
> killing its current 
> sessions? 
> i.e.: I don't want any new sessions created on that worker, 
> and the existing 
> sessions must be allowed to expire 'naturally' 
> (I can't just delete the entry from the balanced_workers 
> property of the 
> load balancer or current/established sessions get killed/ are 
> not redirected 
> to the 
> proper worker) 
> Our setup: We've got multiple Apache web servers behind LVS 
> with multiple 
> TC(3.2) boxes behind the web servers... 
> Thanks in advance.... 
> 
> 
> 
> 
> Michael R. Kuz 
> Developer 
> Service Intelligence 
> (403) 261-5000 ext. 363 
> mkuz@serviceintelligence.com 
> 
> --------------------------------------------------------------------- 
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org 
> For additional commands, email: tomcat-user-help@jakarta.apache.org 
> 


Mime
View raw message