Load balancing - fail-over support with mod_webapp

2001-12-18 Thread Tom Drake
I have two questions about mod_webapp and/or mod_jk. But first a little background: Most of you know that I'm working on a distributed session management solution the purpose for which is to provide fail-over capability in the context of a load balanced environment. By fail-over, I mean

Re: Load balancing - fail-over support with mod_webapp

2001-12-18 Thread Mathias Herberts
Hi, I have been working on load balancing Apache/Tomcat clusters. In mod_jk, the fail-over is done in the function get_most_suitable_worker. Basically if the worker who initiated the session is available (i.e. not in error state), use it, otherwise loop through the workers and select either the

Re: Load balancing - fail-over support with mod_webapp

2001-12-18 Thread costinm
Hi Mathias, Maybe you could contribute some docs, you seem very familiar with the subject ! Code would be even better :-) In jk2 it should be possible for 'callbacks' to change anything, and all the information about lb is exposed in accessible structures ( private data has been greatly reduced

Re: Load balancing - fail-over support with mod_webapp

2001-12-18 Thread Mathias Herberts
Tom Drake wrote: Mathias; Thanks for your very informative reply. From your reply, it seems that mod_jk comes close to doing what I want, and should actually provide the fail-over I'm looking for, however not in the most optimal way. What would be involved in adding (optionally

Re: Load balancing - fail-over support with mod_webapp

2001-12-18 Thread Tom Drake
[EMAIL PROTECTED] Sent: Tuesday, December 18, 2001 12:23 PM Subject: Re: Load balancing - fail-over support with mod_webapp | Tom Drake wrote: | | Mathias; | | Thanks for your very informative reply. From your reply, it seems | that mod_jk comes close to doing what I want, and should actually

Re: Load balancing - fail-over support with mod_webapp

2001-12-18 Thread Craig R. McClanahan
On Tue, 18 Dec 2001, Tom Drake wrote: Date: Tue, 18 Dec 2001 13:25:07 -0800 From: Tom Drake [EMAIL PROTECTED] Reply-To: Tomcat Developers List [EMAIL PROTECTED], Tom Drake [EMAIL PROTECTED] To: Tomcat Developers List [EMAIL PROTECTED] Subject: Re: Load balancing - fail-over support

Re: Load balancing - fail-over support with mod_webapp

2001-12-18 Thread costinm
On Tue, 18 Dec 2001, Craig R. McClanahan wrote: The load balancer routing from JK hasn't ever been implemented in Catalina yet. Patches welcome :-). Can we get a 'setRequest' method on Manager ? I'm trying to find workarounds, but that would be the simple solution. Again, adding support for

Re: Load balancing - fail-over support with mod_webapp

2001-12-18 Thread Tom Drake
PM Subject: Re: Load balancing - fail-over support with mod_webapp | On Tue, 18 Dec 2001, Craig R. McClanahan wrote: | | The load balancer routing from JK hasn't ever been implemented in | Catalina yet. Patches welcome :-). | | Can we get a 'setRequest' method on Manager ? I'm trying to find

Re: Load balancing - fail-over support with mod_webapp

2001-12-18 Thread Craig R. McClanahan
On Tue, 18 Dec 2001 [EMAIL PROTECTED] wrote: Date: Tue, 18 Dec 2001 14:14:10 -0800 (PST) From: [EMAIL PROTECTED] Reply-To: Tomcat Developers List [EMAIL PROTECTED] To: Tomcat Developers List [EMAIL PROTECTED] Subject: Re: Load balancing - fail-over support with mod_webapp On Tue, 18 Dec

Re: Load balancing - fail-over support with mod_webapp

2001-12-18 Thread Mathias Herberts
Another solution would be to calculate some sort of checksum on each session id received for a vm that is no longer on the air. Then modulo that number by the number of available tc instances in the cluster, and route the request to the the jth server in the cluster (where j is the

Re: Load balancing - fail-over support with mod_webapp

2001-12-18 Thread Bill Barker
PROTECTED] Sent: Tuesday, December 18, 2001 6:09 PM Subject: Re: Load balancing - fail-over support with mod_webapp On Tue, 18 Dec 2001 [EMAIL PROTECTED] wrote: Date: Tue, 18 Dec 2001 14:14:10 -0800 (PST) From: [EMAIL PROTECTED] Reply-To: Tomcat Developers List [EMAIL PROTECTED