You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Alkesh Badshah <al...@email.com> on 2003/06/05 20:11:03 UTC

clustering

I'm trying to run multiple instances of tomcat on a single machine listening on different ports. Something to the effect of:

http://localhost:8000
http://localhost:8001

I've modified the server.xml file, placed the javagroups.jar and tomcat-javagroups.jar in the server/lib directory, and implement java.io.serializable.

Unfortunately, its not working as I hoped. Once I have a logged in session, I'm hoping to be able to simply switch port(8000 <-> 8001) and have it be seemless to the user. Any idea on what the problem could be?

AB
-- 
_______________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup


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


RE: clustering

Posted by Ben Ricker <br...@wellinx.com>.
I knew that, but the original message was so ambiguous about what
exactly they were running, I thought a little clarity of terminology
would help; blame my philosophy degree *grin*. I did not mean it in a
condescending way.

Ben Ricker
Wellinx.com

On Fri, 2003-06-06 at 16:17, Filip Hanik wrote:
> you are correct of course with the terminology,
> how ever in the lazy days of today's IT, you say that you cluster your
> tomcat servers when you enable session replication.
> 
> :)
> 
> Filip
> 
> > -----Original Message-----
> > From: Ben Ricker [mailto:bricker@wellinx.com]
> > Sent: Friday, June 06, 2003 11:00 AM
> > To: Tomcat Users List
> > Subject: Re: clustering
> >
> >
> > You seem to be confused (or maybe it is me). You are not doing
> > clustering. You are trying to do session replication across Tomcats. If
> > you are not using something like Apache in the front, how will the user
> > ever know to switch from 8000 to 8001? They will never know.
> >
> > Clustering is a totally different thing where you utilize special
> > hardware and software to slave multiple servers into one virtual server
> > which share processing among the CPUs on the servers. it is basically
> > Multi-Processing across servers.
> >
> >
> > Ben Ricker
> > Wellinx.com
> >
> > On Thu, 2003-06-05 at 13:11, Alkesh Badshah wrote:
> > > I'm trying to run multiple instances of tomcat on a single
> > machine listening on different ports. Something to the effect of:
> > >
> > > http://localhost:8000
> > > http://localhost:8001
> > >
> > > I've modified the server.xml file, placed the javagroups.jar
> > and tomcat-javagroups.jar in the server/lib directory, and
> > implement java.io.serializable.
> > >
> > > Unfortunately, its not working as I hoped. Once I have a logged
> > in session, I'm hoping to be able to simply switch port(8000 <->
> > 8001) and have it be seemless to the user. Any idea on what the
> > problem could be?
> > >
> > > AB
> >
> >
> > ---------------------------------------------------------------------
> > 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: clustering

Posted by Filip Hanik <ma...@filip.net>.
you are correct of course with the terminology,
how ever in the lazy days of today's IT, you say that you cluster your
tomcat servers when you enable session replication.

:)

Filip

> -----Original Message-----
> From: Ben Ricker [mailto:bricker@wellinx.com]
> Sent: Friday, June 06, 2003 11:00 AM
> To: Tomcat Users List
> Subject: Re: clustering
>
>
> You seem to be confused (or maybe it is me). You are not doing
> clustering. You are trying to do session replication across Tomcats. If
> you are not using something like Apache in the front, how will the user
> ever know to switch from 8000 to 8001? They will never know.
>
> Clustering is a totally different thing where you utilize special
> hardware and software to slave multiple servers into one virtual server
> which share processing among the CPUs on the servers. it is basically
> Multi-Processing across servers.
>
>
> Ben Ricker
> Wellinx.com
>
> On Thu, 2003-06-05 at 13:11, Alkesh Badshah wrote:
> > I'm trying to run multiple instances of tomcat on a single
> machine listening on different ports. Something to the effect of:
> >
> > http://localhost:8000
> > http://localhost:8001
> >
> > I've modified the server.xml file, placed the javagroups.jar
> and tomcat-javagroups.jar in the server/lib directory, and
> implement java.io.serializable.
> >
> > Unfortunately, its not working as I hoped. Once I have a logged
> in session, I'm hoping to be able to simply switch port(8000 <->
> 8001) and have it be seemless to the user. Any idea on what the
> problem could be?
> >
> > AB
>
>
> ---------------------------------------------------------------------
> 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: clustering

Posted by Ben Ricker <br...@wellinx.com>.
You seem to be confused (or maybe it is me). You are not doing
clustering. You are trying to do session replication across Tomcats. If
you are not using something like Apache in the front, how will the user
ever know to switch from 8000 to 8001? They will never know.

Clustering is a totally different thing where you utilize special
hardware and software to slave multiple servers into one virtual server
which share processing among the CPUs on the servers. it is basically
Multi-Processing across servers.


Ben Ricker
Wellinx.com

On Thu, 2003-06-05 at 13:11, Alkesh Badshah wrote:
> I'm trying to run multiple instances of tomcat on a single machine listening on different ports. Something to the effect of:
> 
> http://localhost:8000
> http://localhost:8001
> 
> I've modified the server.xml file, placed the javagroups.jar and tomcat-javagroups.jar in the server/lib directory, and implement java.io.serializable.
> 
> Unfortunately, its not working as I hoped. Once I have a logged in session, I'm hoping to be able to simply switch port(8000 <-> 8001) and have it be seemless to the user. Any idea on what the problem could be?
> 
> AB


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


RE: clustering

Posted by Filip Hanik <ma...@filip.net>.
remove the old javagroups jars, they are not valid unless you are running
4.0.x.

The new stuff is in http://cvs.apache.org/~fhanik/

also, you will need a loadbalancer in order to not change the URL, because
changing the URL (the port) will cause the browser to not send up the
session cookie.

the new implementation requires JDK 1.4
Filip

> -----Original Message-----
> From: Alkesh Badshah [mailto:alkesh@email.com]
> Sent: Thursday, June 05, 2003 11:11 AM
> To: tomcat-user@jakarta.apache.org
> Subject: clustering
>
>
> I'm trying to run multiple instances of tomcat on a single
> machine listening on different ports. Something to the effect of:
>
> http://localhost:8000
> http://localhost:8001
>
> I've modified the server.xml file, placed the javagroups.jar and
> tomcat-javagroups.jar in the server/lib directory, and implement
> java.io.serializable.
>
> Unfortunately, its not working as I hoped. Once I have a logged
> in session, I'm hoping to be able to simply switch port(8000 <->
> 8001) and have it be seemless to the user. Any idea on what the
> problem could be?
>
> AB
> --
> _______________________________________________
> Sign-up for your own FREE Personalized E-mail at Mail.com
> http://www.mail.com/?sr=signup
>
>
> ---------------------------------------------------------------------
> 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