Title: RE: gracefull shutdown/removal of worker from load balance...
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
[EMAIL PROTECTED]
-----Original Message-----
From: Dave Smith [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 20, 2000 9:01 AM
To: [EMAIL PROTECTED]
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 -----
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
[EMAIL PROTECTED]



> -----Original Message-----
> From: Boaz Shaham [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 03, 2001 3:21 AM
> To: '[EMAIL PROTECTED]'
> 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
>
> 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:[EMAIL PROTECTED]]
> Sent: Wednesday, January 03, 2001 03:51
> To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
> 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
> [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>

activeState.patch

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to