You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Miguel Gonzalez <mi...@yahoo.es> on 2013/04/04 11:14:50 UTC

IIS and Tomcat workers groups

Dear all,
 
  We currently have an IIS 6 fronting several Tomcat 6 containers with a list of workers for each redirection we want to forward from IIS to each tomcat. 
 
  We are thinking of migrating to IIS 7.5 and Tomcat 7. Also we would like that two of the nodes share the same redirection and so we can balance the load to two servers instead of having one server.   Is it possible that two of the nodes are balanced in a group while the other nodes are stand-alone?
 
  Many thanks
 
  Miguel

Re: IIS and Tomcat workers groups

Posted by André Warnier <aw...@ice-sa.com>.
Miguel Gonzalez wrote:
> Dear all,
> 
> 
>   We currently have an IIS 6 fronting several Tomcat 6 containers with a list of workers for each redirection we want to forward from IIS to each tomcat. 
> 
>   We are thinking of migrating to IIS 7.5 and Tomcat 7. Also we would like that two of the nodes share the same redirection and so we can balance the load to two servers instead of having one server.   Is it possible that two of the nodes are balanced in a group while the other nodes are stand-alone?
> 
As far as I know, at the front-end level you can set "workers" to be either real 
individual Tomcat nodes, and/or one or more "load balancing worker" each of which has its 
own set of real Tomcat workers.
Does that not cover the need that you express ?

Say you have 6 real Tomcats, named T1..T6.

You want to pass some requests directly to T1 and T2.
For the rest, you make 2 groups of 2 load-balanced Tomcats :
group1: T3 & T4
group2 : T5 & T6
For each of the above "groups", you define one "load-balancing worker".

Very roughly, in workers.properties (please check the original on-line documentation for 
precise syntax and properties) :

worker.list=T1,T2,LB1,LB2

(you name here only the workers to which you are going to pass requests directly.  You do 
not name T3..T6, because you will not send requests to them directly. Instead, you will 
send requests for them through LB1 and LB2).

# define all "real" workers T1-T6 :

worker.T1.type=AJP13
worker.T1.host=T1.mydomain.com
....

worker.T6.type=AJP13
worker.T6.host=T6.mydomain.com

# (note: using a "template" for the above will save typing)

# define the 2 load-balancing workers :

worker.LB1.type=lb   (for "load-balancer")
worker.LB1.balance_workers=T3,T4
...

worker.LB2.type=lb   (for "load-balancer")
worker.LB2.balance_workers=T5,T6
...


Now, for the requests that you want to forward specifically to T1 or T2, you use :

JkMount /someurl T1
JkMount /someotherurl T2

For the requests which you want to pass to T3 or T4 with load-balancing, you use :

JkMount /someadditionalurl LB1

For the requests which you want to pass to T5 or T6 with load-balancing, you use :

JkMount /somemoreurl LB2


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


IIS and Tomcat workers groups

Posted by Miguel Gonzalez <mi...@yahoo.es>.
Dear all,


  We currently have an IIS 6 fronting several Tomcat 6 containers with a list of workers for each redirection we want to forward from IIS to each tomcat. 

  We are thinking of migrating to IIS 7.5 and Tomcat 7. Also we would like that two of the nodes share the same redirection and so we can balance the load to two servers instead of having one server.   Is it possible that two of the nodes are balanced in a group while the other nodes are stand-alone?

  Many thanks

  Miguel

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


Re: IIS and Tomcat workers groups

Posted by Miguel Gonzalez <mi...@yahoo.es>.
Thanks for your prompt answer. there is no way to mix LB nodes and the nodes we currently have in the tomcat IIS plugin?

Regards,

Miguel


----- Mensaje original -----
De: Martin Gainty <mg...@hotmail.com>
Para: Tomcat Users List <us...@tomcat.apache.org>
CC: 
Enviado: Jueves 4 de abril de 2013 12:14
Asunto: RE: IIS and Tomcat workers groups

The only way I know how is to have IIS route all requests to a Proxy (such as Squid)

http://wiki.squid-cache.org/Features/Redirectors

The Proxy Server (Squid) can redirect to LB all  requests for GroupNode1 and GroupNode2 

Saludos Cordiales desde EEUU

Martin 

______________________________________________ 
Porfavor..no altere ni interrumpir esta communicacion..Gracias


> Date: Thu, 4 Apr 2013 10:14:50 +0100
> From: miguel_3_gonzalez@yahoo.es
> Subject: IIS and Tomcat workers groups
> To: users@tomcat.apache.org
> 
> Dear all,
>  
>  We currently have an IIS 6 fronting several Tomcat 6 containers with a list of workers for each redirection we want to forward from IIS to each tomcat. 
>  
>  We are thinking of migrating to IIS 7.5 and Tomcat 7. Also we would like that two of the nodes share the same redirection and so we can balance the load to two servers instead of having one server.  Is it possible that two of the nodes are balanced in a group while the other nodes are stand-alone?
>  
>  Many thanks
>  
>  Miguel

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


RE: IIS and Tomcat workers groups

Posted by Martin Gainty <mg...@hotmail.com>.
The only way I know how is to have IIS route all requests to a Proxy (such as Squid)

http://wiki.squid-cache.org/Features/Redirectors

The Proxy Server (Squid) can redirect to LB all  requests for GroupNode1 and GroupNode2 

Saludos Cordiales desde EEUU

Martin 

______________________________________________ 
Porfavor..no altere ni interrumpir esta communicacion..Gracias


> Date: Thu, 4 Apr 2013 10:14:50 +0100
> From: miguel_3_gonzalez@yahoo.es
> Subject: IIS and Tomcat workers groups
> To: users@tomcat.apache.org
> 
> Dear all,
>  
>   We currently have an IIS 6 fronting several Tomcat 6 containers with a list of workers for each redirection we want to forward from IIS to each tomcat. 
>  
>   We are thinking of migrating to IIS 7.5 and Tomcat 7. Also we would like that two of the nodes share the same redirection and so we can balance the load to two servers instead of having one server.   Is it possible that two of the nodes are balanced in a group while the other nodes are stand-alone?
>  
>   Many thanks
>  
>   Miguel