tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Kuz <m...@ServiceIntelligence.com>
Subject [PATCH] gracefull shutdown/removal of worker from load balance...
Date Wed, 03 Jan 2001 23:03:52 GMT
I didn't get any response to this emai (for taking a worker out of the load
balance worker), so I created a patch for mod_jk.
 
The patch allows for a worker.name.active parameter to be added to the
workers.property file.
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.
 
Now all we need is a way to determine actives sessions in a worker... 
 
Not sure if the format is _exactly_ what you require as this is my first
patch. 
Comments?
 

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

-----Original Message-----
From: Michael Kuz [mailto:mkuz@ServiceIntelligence.com]
Sent: Tuesday, January 02, 2001 6:51 PM
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 


Mime
View raw message