tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Igor" <ia_...@ukr.net>
Subject Re: Synchronization in cluster
Date Thu, 30 Sep 2004 18:58:43 GMT
Hello!

Thank you for advice ! I will think about restructure my application.

Users of my application can upload comma separeted files, that are imported
in database.
This process can take 10-30 minutes, if file is large, so new Thread is
started with import process and user is redirected to refreshing page, that
displays status of import. Information about import process is stored in
static variable (import thread and status jsp can access this information).

If it happens in one JVM, everething is ok. But what will be in the case of
load balancing?

Thank you,
Igor


----- Original Message ----- 
From: "Filip Hanik - Dev" <devlists@hanik.com>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Thursday, September 30, 2004 6:36 PM
Subject: Re: Synchronization in cluster


> sounds like your system needs a little rethinking, if you have singleton
access to your DB.
> That is why the DBs are transactional, so that you can use connection
pooling.
>
> you can use JGroups, but you might run into serious performance problems,
not because of JGroups, but because of the fact that you
> want to lock several tomcats in a distributed lock when accessing the DB.
>
> Filip
>
>
> ----- Original Message -----
> From: "Igor" <ia_rud@ukr.net>
> To: <tomcat-user@jakarta.apache.org>
> Sent: Thursday, September 30, 2004 10:16 AM
> Subject: Re: Synchronization in cluster
>
>
> Hello!
>
> Thank you for answers! I will try to use JGroups
>
> We have data, that is often need to be read. And it is rarely written.
> It is implemented using Singleton pattern.
>
> Synchronization is used in several parts of web application.
> It is used mostly to access database
>
> Thank you,
> Igor
>
> ----- Original Message -----
> From: "LERBSCHER Jean-Pierre" <jean-pierre.lerbscher@cofiroute.fr>
> To: "'Tomcat Users List'" <tomcat-user@jakarta.apache.org>
> Sent: Thursday, September 30, 2004 10:41 AM
> Subject: RE : Synchronization in cluster
>
>
> Hi,
> What are your needs? Why distributed singleton or distributed locking are
so
> important ?
> Perhaps you can use Database to implement locking functionality and
Jgroups
> library to replicate state (or distributed singleton) across members of a
> group (see www.jgroups.org).
>
>
>
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message