You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by armalai <ar...@savantit.com> on 2004/03/17 14:52:03 UTC
Tomcat Loadbalancing
Hi.,
I'm trying to do Loadbalancing in tomcat.
My environement details are,
Windows
Tomcat 4.1.xx
Apace 2.x
Mod_jk2 connector
Right now i'm stuck up with apache to tomcat
communication thru ajp.
my questions are below..
1.How do i create multiple instance of tomcat?
using CATALINA_BASE i could able to create one
instance with new server.xml from different location.
but not able to retrieve the jsp pages from default
tomcat instances webapp.
i want to create more than two instances.
2.How do i do the loadbalancing & clustering?
give me the idea about worker properties config.
3.Is it possible to do session replication?in few
websites they talk about sticky session?
what is sticky?does it covers session replica?
Please advise me to get thru this task..
It will be great you can provide me document for
this.
Thanks.,
MALAI
RE: Tomcat Loadbalancing
Posted by Steve Gums <sg...@voast.com>.
Just something that I found to be very useful. If I use the minimal
server.xml and put the context.xml files into place. I can use the same
server.xml file as well. The only thing I have to do is to put the context
file into the new install and I am done. Works great!
Steve
-----Original Message-----
From: Tim Funk [mailto:funkman@joedog.org]
Sent: Wednesday, March 17, 2004 8:52 AM
To: Tomcat Users List
Subject: Re: Tomcat Loadbalancing
I typically copy all of CATALINA_HOME for each tomcat instance and never use
CATALINA_BASE.
So in other words - I start with one tomcat install. Get it working - then
copy the whole thing to a new dir. The only difference between those 2
tomcat
installations is server.xml. Yes - I end up with redundant copies but I
prefer it that way. But when I want to upgrade or make changes - its much
easier to keep things running 24x7 since the directories are NOT shared.
I do not keep any webapps inside my tomcat installation. They all live
somewhere else on my filesystem.
-Tim
armalai wrote:
> Tim.,
> I understand that i should use mod_jk instead of mod_jk2 ..
> Let me start with my basic problem.
> 1.How do i create more than two instances.?
> Using CATALINA_BASE i have created one instance.but i'm not able to
get
> the jsp pages from the original instances.
>
> Thanks.,
> MALAI
>
> ----- Original Message -----
> From: "Tim Funk" <fu...@joedog.org>
> To: "Tomcat Users List" <to...@jakarta.apache.org>
> Sent: Wednesday, March 17, 2004 9:21 AM
> Subject: Re: Tomcat Loadbalancing
>
>
>
>>Start here first
>>http://jakarta.apache.org/tomcat/faq/
>>
>>-Tim
>>
>>armalai wrote:
>>
>>
>>>Hi.,
>>> I'm trying to do Loadbalancing in tomcat.
>>>My environement details are,
>>>Windows
>>>Tomcat 4.1.xx
>>>Apace 2.x
>>>Mod_jk2 connector
>>>
>>>Right now i'm stuck up with apache to tomcat
>>>communication thru ajp.
>>>
>>>my questions are below..
>>>1.How do i create multiple instance of tomcat?
>>> using CATALINA_BASE i could able to create one
>>>instance with new server.xml from different location.
>>> but not able to retrieve the jsp pages from default
>>>tomcat instances webapp.
>>> i want to create more than two instances.
>>>2.How do i do the loadbalancing & clustering?
>>> give me the idea about worker properties config.
>>>3.Is it possible to do session replication?in few
>>>websites they talk about sticky session?
>>>what is sticky?does it covers session replica?
>>>
---------------------------------------------------------------------
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: Tomcat Loadbalancing
Posted by Tim Funk <fu...@joedog.org>.
I typically copy all of CATALINA_HOME for each tomcat instance and never use
CATALINA_BASE.
So in other words - I start with one tomcat install. Get it working - then
copy the whole thing to a new dir. The only difference between those 2 tomcat
installations is server.xml. Yes - I end up with redundant copies but I
prefer it that way. But when I want to upgrade or make changes - its much
easier to keep things running 24x7 since the directories are NOT shared.
I do not keep any webapps inside my tomcat installation. They all live
somewhere else on my filesystem.
-Tim
armalai wrote:
> Tim.,
> I understand that i should use mod_jk instead of mod_jk2 ..
> Let me start with my basic problem.
> 1.How do i create more than two instances.?
> Using CATALINA_BASE i have created one instance.but i'm not able to get
> the jsp pages from the original instances.
>
> Thanks.,
> MALAI
>
> ----- Original Message -----
> From: "Tim Funk" <fu...@joedog.org>
> To: "Tomcat Users List" <to...@jakarta.apache.org>
> Sent: Wednesday, March 17, 2004 9:21 AM
> Subject: Re: Tomcat Loadbalancing
>
>
>
>>Start here first
>>http://jakarta.apache.org/tomcat/faq/
>>
>>-Tim
>>
>>armalai wrote:
>>
>>
>>>Hi.,
>>> I'm trying to do Loadbalancing in tomcat.
>>>My environement details are,
>>>Windows
>>>Tomcat 4.1.xx
>>>Apace 2.x
>>>Mod_jk2 connector
>>>
>>>Right now i'm stuck up with apache to tomcat
>>>communication thru ajp.
>>>
>>>my questions are below..
>>>1.How do i create multiple instance of tomcat?
>>> using CATALINA_BASE i could able to create one
>>>instance with new server.xml from different location.
>>> but not able to retrieve the jsp pages from default
>>>tomcat instances webapp.
>>> i want to create more than two instances.
>>>2.How do i do the loadbalancing & clustering?
>>> give me the idea about worker properties config.
>>>3.Is it possible to do session replication?in few
>>>websites they talk about sticky session?
>>>what is sticky?does it covers session replica?
>>>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Tomcat Loadbalancing
Posted by armalai <ar...@savantit.com>.
Tim.,
I understand that i should use mod_jk instead of mod_jk2 ..
Let me start with my basic problem.
1.How do i create more than two instances.?
Using CATALINA_BASE i have created one instance.but i'm not able to get
the jsp pages from the original instances.
Thanks.,
MALAI
----- Original Message -----
From: "Tim Funk" <fu...@joedog.org>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Wednesday, March 17, 2004 9:21 AM
Subject: Re: Tomcat Loadbalancing
> Start here first
> http://jakarta.apache.org/tomcat/faq/
>
> -Tim
>
> armalai wrote:
>
> > Hi.,
> > I'm trying to do Loadbalancing in tomcat.
> > My environement details are,
> > Windows
> > Tomcat 4.1.xx
> > Apace 2.x
> > Mod_jk2 connector
> >
> > Right now i'm stuck up with apache to tomcat
> > communication thru ajp.
> >
> > my questions are below..
> > 1.How do i create multiple instance of tomcat?
> > using CATALINA_BASE i could able to create one
> > instance with new server.xml from different location.
> > but not able to retrieve the jsp pages from default
> > tomcat instances webapp.
> > i want to create more than two instances.
> > 2.How do i do the loadbalancing & clustering?
> > give me the idea about worker properties config.
> > 3.Is it possible to do session replication?in few
> > websites they talk about sticky session?
> > what is sticky?does it covers session replica?
> >
> > Please advise me to get thru this task..
> > It will be great you can provide me document for
> > this.
> >
> > Thanks.,
> > MALAI
>
> ---------------------------------------------------------------------
> 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: Tomcat Loadbalancing
Posted by Tim Funk <fu...@joedog.org>.
Start here first
http://jakarta.apache.org/tomcat/faq/
-Tim
armalai wrote:
> Hi.,
> I'm trying to do Loadbalancing in tomcat.
> My environement details are,
> Windows
> Tomcat 4.1.xx
> Apace 2.x
> Mod_jk2 connector
>
> Right now i'm stuck up with apache to tomcat
> communication thru ajp.
>
> my questions are below..
> 1.How do i create multiple instance of tomcat?
> using CATALINA_BASE i could able to create one
> instance with new server.xml from different location.
> but not able to retrieve the jsp pages from default
> tomcat instances webapp.
> i want to create more than two instances.
> 2.How do i do the loadbalancing & clustering?
> give me the idea about worker properties config.
> 3.Is it possible to do session replication?in few
> websites they talk about sticky session?
> what is sticky?does it covers session replica?
>
> Please advise me to get thru this task..
> It will be great you can provide me document for
> this.
>
> Thanks.,
> MALAI
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org