You are right.
1) You need a load redirector(if you want to control at TCP/IP level) - this is
the best soluton.
2) Other wise, You need to control at Application level( Having an application
at the front-end and redirecting to the servers) - Inferior solution but
cheaper.
Best,
Gangadhar
Mark Galbreath wrote:
> I don't understand how that could possibly work without the
> implementation of some hardware like Cisco Redirector.
>
> Cheers!
> Mark
>
> ----- Original Message -----
> From: "Gangadhar Kasa" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, April 03, 2001 5:20 PM
> Subject: Re: loadbalancing
>
> > You can do load balancing as follows:
> >
> > 1) Store the real server name in the form of cookie along with the
> Session info.
> >
> > 2) Check every request for the cookie info.
> > 3) If the Cookie contains a different server name use HTTP redirect
> to send the
> > request to the other server.
> >
> >
> > Gangadhar
> >
> > Gokul Singh wrote:
> >
> > > ----- Original Message -----
> > > From: "Thomas Brusa" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > >
> > > > we're installing tomcat on two webservers and want to establish
> > > > loadbalancing.
> > > > since we couldn't find any documentation I'm asking you.
> > >
> > > I am not sure how tomcat supports distributed environments, but as
> it is the
> > > referance implementation, I believe it should do what the specs
> say about
> > > it.
> > >
> > > > how is it possible to share servletcontext across servers?
> > >
> > > <from servlet spec 2.3PFD>
> > > 3.3.1 Context Attributes in a Distributed Container
> > > Context attributes exist locally to the VM in which they were
> created and
> > > placed. This
> > > prevents the ServletContext from being used as a distributed
> shared memory
> > > store. If
> > > information needs to be shared between servlets running in a
> distributed
> > > environment, that
> > > information should be placed into a session (See Chapter 8,
> "Sessions"), a
> > > database or set in
> > > an Enterprise JavaBean.
> > > </from servlet spec 2.3PFD>
> > >
> > > > what about sessions?
> > >
> > > Please refer *section 7.7.2* of the servlet specs. It details all
> the
> > > details of sessions in a distributed environment.
> > >
> > > How much of the above is supported by Tomcat, I am not sure. I
> think you can
> > > get more details about this on the tomcat mailing lists at
> > > http://jakarta.apache.org/site/mail2.html
> > >
> > > Regds,
> > > Gokul
> > >
> > > >
> > > > thanx thomas
> > > >
> > >
> > >
> ______________________________________________________________________
> _____
> > > To unsubscribe, send email to [EMAIL PROTECTED] and include in
> the body
> > > of the message "signoff SERVLET-INTEREST".
> > >
> > > Archives:
> http://archives.java.sun.com/archives/servlet-interest.html
> > > Resources:
> http://java.sun.com/products/servlet/external-resources.html
> > > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
> >
> ______________________________________________________________________
> _____
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in
> the body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives:
> http://archives.java.sun.com/archives/servlet-interest.html
> > Resources:
> http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html