You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Hay <da...@hotmail.com> on 2005/07/14 20:41:55 UTC

mod_jk - multiple workers for same Tomcat instance?

Hi,

Is it possible to specify multiple workers for the same Tomcat instance?

We'd like to balance different contexts with different load factors to the 
same Tomcat (hope that makes sense!).

I'm thinking we could define another AJP13 connector on a different port, 
but not sure how to specify things in workers.properties and server.xml.

cheers,

David



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: mod_jk - multiple workers for same Tomcat instance?

Posted by David Hay <da...@hotmail.com>.
Any thoughts?

>From: "David Hay" <da...@hotmail.com>
>Reply-To: "Tomcat Users List" <to...@jakarta.apache.org>
>To: tomcat-user@jakarta.apache.org
>Subject: Re: mod_jk - multiple workers for same Tomcat instance?
>Date: Thu, 14 Jul 2005 15:00:33 -0400
>
>Hi,
>
>We have set up several contexts eg one for client requests and one for 
>admin requests, for a set of Tomcat servers, fronted by Apache.
>
>We would like to balance them differently, allowing one machine to take 
>most of the admin load.
>
>There doesn't seem to be a lbfactor parameter for a loadbalancing worker, 
>so our second option is to create a seperate client and admin worker for 
>each machine, and set their lbfactors separately.  Unless you can recommend 
>a better way?
>
>If we go down this route, could you explain how to set up two connectors in 
>the tomcat's server.xml with different jvmRoute values to put in 
>workers.properties?
>
>many thanks,
>
>David
>
>
>>From: Mladen Turk <ml...@jboss.com>
>>Reply-To: "Tomcat Users List" <to...@jakarta.apache.org>
>>To: Tomcat Users List <to...@jakarta.apache.org>
>>Subject: Re: mod_jk - multiple workers for same Tomcat instance?
>>Date: Thu, 14 Jul 2005 20:49:06 +0200
>>
>>David Hay wrote:
>>>Hi,
>>>
>>>Is it possible to specify multiple workers for the same Tomcat instance?
>>>
>>
>>Yes.
>>But this will impose additional load to the tomcat doubling the number
>>of connections from apache to mod_jk for each worker.
>>For ten workers you may end up with 2500 connections with
>>250 MaxClients defined in the httpd.conf.
>>
>>>We'd like to balance different contexts with different load factors to 
>>>the same Tomcat (hope that makes sense!).
>>>
>>
>>No. But you may feel free to express the idea that led you to consider
>>something like that.
>>
>>Regards,
>>Mladen.
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: mod_jk - multiple workers for same Tomcat instance?

Posted by David Hay <da...@hotmail.com>.
Hi,

We have set up several contexts eg one for client requests and one for admin 
requests, for a set of Tomcat servers, fronted by Apache.

We would like to balance them differently, allowing one machine to take most 
of the admin load.

There doesn't seem to be a lbfactor parameter for a loadbalancing worker, so 
our second option is to create a seperate client and admin worker for each 
machine, and set their lbfactors separately.  Unless you can recommend a 
better way?

If we go down this route, could you explain how to set up two connectors in 
the tomcat's server.xml with different jvmRoute values to put in 
workers.properties?

many thanks,

David


>From: Mladen Turk <ml...@jboss.com>
>Reply-To: "Tomcat Users List" <to...@jakarta.apache.org>
>To: Tomcat Users List <to...@jakarta.apache.org>
>Subject: Re: mod_jk - multiple workers for same Tomcat instance?
>Date: Thu, 14 Jul 2005 20:49:06 +0200
>
>David Hay wrote:
>>Hi,
>>
>>Is it possible to specify multiple workers for the same Tomcat instance?
>>
>
>Yes.
>But this will impose additional load to the tomcat doubling the number
>of connections from apache to mod_jk for each worker.
>For ten workers you may end up with 2500 connections with
>250 MaxClients defined in the httpd.conf.
>
>>We'd like to balance different contexts with different load factors to the 
>>same Tomcat (hope that makes sense!).
>>
>
>No. But you may feel free to express the idea that led you to consider
>something like that.
>
>Regards,
>Mladen.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: mod_jk - multiple workers for same Tomcat instance?

Posted by Mladen Turk <ml...@jboss.com>.
David Hay wrote:
> Hi,
> 
> Is it possible to specify multiple workers for the same Tomcat instance?
>

Yes.
But this will impose additional load to the tomcat doubling the number
of connections from apache to mod_jk for each worker.
For ten workers you may end up with 2500 connections with
250 MaxClients defined in the httpd.conf.

> We'd like to balance different contexts with different load factors to 
> the same Tomcat (hope that makes sense!).
> 

No. But you may feel free to express the idea that led you to consider
something like that.

Regards,
Mladen.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org