You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Alberto Jesus La Rosa Agramonte <al...@gmail.com> on 2009/05/26 16:30:59 UTC

tomcat clusters

Hello, I need to set more than two tomcat clusters. How I can configure that
in the workers.properties file on apache load balancer?

Regards...

Re: tomcat clusters

Posted by Alberto Jesus La Rosa Agramonte <al...@gmail.com>.
thanks.

2009/5/27 Rainer Jung <ra...@kippdata.de>

> On 26.05.2009 17:43, Alberto Jesus La Rosa Agramonte wrote:
> > of course, the complet configuration is that...
> >
> > workers.tomcat_home=/var/lib/tomcat5.5
> > workers.java_home=/usr/lib/jvm/
>
> Remove the above two, they are useless.
>
> > worker.list=balancer,jkstatus
> >
> > worker.c1.port=8009
> > worker.c1.host=10.7.12.2
> > worker.c1.type=ajp13
> > worker.c1.lbfactor=1
> >
> > worker.c1.port=8009
> > worker.c1.host=10.7.12.3
> > worker.c1.type=ajp13
> > worker.c1.lbfactor=1
>
> Use c2 instead of c1 in the above four.
>
> > worker.c1.port=8009
> > worker.c1.host=10.7.12.4
> > worker.c1.type=ajp13
> > worker.c1.lbfactor=1
>
> Use c3 instead of c1 in the above four.
>
> > worker.balancer.type=lb
> > worker.balancer.host=10.7.12.1
>
> Remove the above one line, it doesn't make sense.
>
> > worker.balancer.balance_workers=c1,c2,c3
>
> What did you think c2 and c3 were?
>
> > worker.balancer.method.B
> > worker.balancer.sticky_session=True
> > worker.jkstatus.type=status
>
> Also set jvmRoute in your server.xml to c1, c2 and c3 respectively.
>
> For the second Tomcat farm, add nodes like e.g. d1, d2 and d3, and a
> second balancer, e.g. named "d" with balance_workers "d1, d2, d3".
>
> Finally add "d" to worker.list and use it in some JkMounts.
>
> Regards,
>
> Rainer
>
> > 2009/5/27 Rainer Jung <ra...@kippdata.de>
> >
> >> That's not the full configuration. It can't work.
> >>
> >> On 26.05.2009 17:16, Alberto Jesus La Rosa Agramonte wrote:
> >>> worker.c1.port=8009
> >>> worker.c1.host=10.7.12.2
> >>> worker.c1.type=ajp13
> >>> worker.c1.lbfactor=1
> >>>
> >>> 2009/5/27 Rainer Jung <ra...@kippdata.de>
> >>>
> >>>> How did you configure your first cluster?
> >>>>
> >>>> On 26.05.2009 16:30, Alberto Jesus La Rosa Agramonte wrote:
> >>>>> Hello, I need to set more than two tomcat clusters. How I can
> configure
> >>>> that
> >>>>> in the workers.properties file on apache load balancer?
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >> For additional commands, e-mail: users-help@tomcat.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: tomcat clusters

Posted by Rainer Jung <ra...@kippdata.de>.
On 26.05.2009 17:43, Alberto Jesus La Rosa Agramonte wrote:
> of course, the complet configuration is that...
> 
> workers.tomcat_home=/var/lib/tomcat5.5
> workers.java_home=/usr/lib/jvm/

Remove the above two, they are useless.

> worker.list=balancer,jkstatus
> 
> worker.c1.port=8009
> worker.c1.host=10.7.12.2
> worker.c1.type=ajp13
> worker.c1.lbfactor=1
> 
> worker.c1.port=8009
> worker.c1.host=10.7.12.3
> worker.c1.type=ajp13
> worker.c1.lbfactor=1

Use c2 instead of c1 in the above four.

> worker.c1.port=8009
> worker.c1.host=10.7.12.4
> worker.c1.type=ajp13
> worker.c1.lbfactor=1

Use c3 instead of c1 in the above four.

> worker.balancer.type=lb
> worker.balancer.host=10.7.12.1

Remove the above one line, it doesn't make sense.

> worker.balancer.balance_workers=c1,c2,c3

What did you think c2 and c3 were?

> worker.balancer.method.B
> worker.balancer.sticky_session=True
> worker.jkstatus.type=status

Also set jvmRoute in your server.xml to c1, c2 and c3 respectively.

For the second Tomcat farm, add nodes like e.g. d1, d2 and d3, and a
second balancer, e.g. named "d" with balance_workers "d1, d2, d3".

Finally add "d" to worker.list and use it in some JkMounts.

Regards,

Rainer

> 2009/5/27 Rainer Jung <ra...@kippdata.de>
> 
>> That's not the full configuration. It can't work.
>>
>> On 26.05.2009 17:16, Alberto Jesus La Rosa Agramonte wrote:
>>> worker.c1.port=8009
>>> worker.c1.host=10.7.12.2
>>> worker.c1.type=ajp13
>>> worker.c1.lbfactor=1
>>>
>>> 2009/5/27 Rainer Jung <ra...@kippdata.de>
>>>
>>>> How did you configure your first cluster?
>>>>
>>>> On 26.05.2009 16:30, Alberto Jesus La Rosa Agramonte wrote:
>>>>> Hello, I need to set more than two tomcat clusters. How I can configure
>>>> that
>>>>> in the workers.properties file on apache load balancer?
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org

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


Re: tomcat clusters

Posted by Alberto Jesus La Rosa Agramonte <al...@gmail.com>.
of course, the complet configuration is that...

workers.tomcat_home=/var/lib/tomcat5.5
workers.java_home=/usr/lib/jvm/
worker.list=balancer,jkstatus

worker.c1.port=8009
worker.c1.host=10.7.12.2
worker.c1.type=ajp13
worker.c1.lbfactor=1

worker.c1.port=8009
worker.c1.host=10.7.12.3
worker.c1.type=ajp13
worker.c1.lbfactor=1

worker.c1.port=8009
worker.c1.host=10.7.12.4
worker.c1.type=ajp13
worker.c1.lbfactor=1

worker.balancer.type=lb
worker.balancer.host=10.7.12.1
worker.balancer.balance_workers=c1,c2,c3
worker.balancer.method.B
worker.balancer.sticky_session=True
worker.jkstatus.type=status



2009/5/27 Rainer Jung <ra...@kippdata.de>

> That's not the full configuration. It can't work.
>
> On 26.05.2009 17:16, Alberto Jesus La Rosa Agramonte wrote:
> > worker.c1.port=8009
> > worker.c1.host=10.7.12.2
> > worker.c1.type=ajp13
> > worker.c1.lbfactor=1
> >
> > 2009/5/27 Rainer Jung <ra...@kippdata.de>
> >
> >> How did you configure your first cluster?
> >>
> >> On 26.05.2009 16:30, Alberto Jesus La Rosa Agramonte wrote:
> >>> Hello, I need to set more than two tomcat clusters. How I can configure
> >> that
> >>> in the workers.properties file on apache load balancer?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: tomcat clusters

Posted by Rainer Jung <ra...@kippdata.de>.
That's not the full configuration. It can't work.

On 26.05.2009 17:16, Alberto Jesus La Rosa Agramonte wrote:
> worker.c1.port=8009
> worker.c1.host=10.7.12.2
> worker.c1.type=ajp13
> worker.c1.lbfactor=1
> 
> 2009/5/27 Rainer Jung <ra...@kippdata.de>
> 
>> How did you configure your first cluster?
>>
>> On 26.05.2009 16:30, Alberto Jesus La Rosa Agramonte wrote:
>>> Hello, I need to set more than two tomcat clusters. How I can configure
>> that
>>> in the workers.properties file on apache load balancer?

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


Re: tomcat clusters

Posted by Alberto Jesus La Rosa Agramonte <al...@gmail.com>.
worker.c1.port=8009
worker.c1.host=10.7.12.2
worker.c1.type=ajp13
worker.c1.lbfactor=1

2009/5/27 Rainer Jung <ra...@kippdata.de>

> How did you configure your first cluster?
>
> On 26.05.2009 16:30, Alberto Jesus La Rosa Agramonte wrote:
> > Hello, I need to set more than two tomcat clusters. How I can configure
> that
> > in the workers.properties file on apache load balancer?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: tomcat clusters

Posted by Rainer Jung <ra...@kippdata.de>.
How did you configure your first cluster?

On 26.05.2009 16:30, Alberto Jesus La Rosa Agramonte wrote:
> Hello, I need to set more than two tomcat clusters. How I can configure that
> in the workers.properties file on apache load balancer?

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