You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by John Coleman <jo...@eurobase-international.com> on 2007/09/26 17:05:20 UTC

clustering

Hi,

 

We have a thin web application that basically just manages the front end
for a remote business layer that handles the heavy session state stuff
and persistence. Basically the webapp emits and receives data as XML and
after some processing makes it available to the clients.

 

We want to cluster Tomcat in order to support more users, but I expect
each Tomcat instance will be able to manage 500+ sessions, whereas each
of our web applications can only have 250 sessions with the remote
business layer.

 

Is there a way for a single Tomcat instance to run 2 copies of the
application, each one pointing to its own instance of the business
layer? It seems silly to run 2 Tomcats, one for each application
instance, as I suspect that will waste memory and processor. I expect I
will just have to deploy the application twice to 2 different contexts,
but how is that dealt with when configuring load balancing and
clustering, or can I just use different port numbers?

 

Also, can I set a limit of 250 sessions in tomcat for a given
application so we don't blow out on the remote system?

 

John


Eurobase International Limited and its subsidiaries (Eurobase) are unable to exercise control over the content of information in E-Mails. Any views and opinions expressed may be personal to the sender and are not necessarily those of Eurobase. Eurobase will not enter into any contractual obligations in respect of any part of its business in any E-mail. 

Privileged / confidential information may be contained in this message and /or any attachments. This E-mail is intended for the use of the addressee(s) only and may contain confidential information. If you are not the / an intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited.  If you receive this transmission in error, please notify us immediately, and then delete this E-mail. 

Neither the sender nor Eurobase accepts any liability whatsoever for any defects of any kind either in or arising from this E-mail transmission. E-Mail transmission cannot be guaranteed to be secure or error-free, as messages can be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or incomplete. Eurobase does not accept any responsibility for viruses and it is your responsibility to scan any attachments.

Eurobase Systems Limited is the main trading company in the Eurobase International Group; registered in England and Wales as company number 02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex CM2 0RE, UK.


RE: clustering

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: John Coleman [mailto:john.coleman@eurobase-international.com] 
> Subject: clustering
> 
> I expect I will just have to deploy the application 
> twice to 2 different contexts, but how is that dealt
> with when configuring load balancing and clustering,
> or can I just use different port numbers?

Yes, you can use two different contexts, rather than running multiple
Tomcats.  Each must have a unique name, of course.  You could write a
simple filter or valve that tracks current usage and forwards requests
to the less busy context.

> Also, can I set a limit of 250 sessions in tomcat for a given
> application so we don't blow out on the remote system?

Not with any standard configuration parameters that I'm aware of.
Again, a fairly simple filter could be used to track and limit the
number of concurrent sessions for a given context.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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