tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luca Cicale" <i...@alsoftware.it>
Subject Re: [programmazione] Re: Tomcat failover
Date Tue, 12 Aug 2008 21:32:52 GMT
Answering your question:
assuming you have a apache web server proxing the first tomcat with mod_jk 
(so mod_jk help),
you shuold have a thread in your second tomcat which interrogate a servlet 
in the first tomcat and if the answer fails this thread should reconfigure 
the worker (the mod_jk) so that apache web server redirect the requests to 
the second tomcat.
Honestly it doesn't seems to me to be a solid solution (what about the 
second tomcat crashes too? what about the sessions in the first tomcat?).
A better solution could be clustering:
http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html

Also give a try to terracotta to keep save your sessions.
In this case you could also have a typical load balanced cluster with net 
balancer.
Regards
Luca Cicale

--------------------------------------------------
From: "Ofer Kalisky" <kalisky@sendm.biz>
Sent: Tuesday, August 12, 2008 8:30 AM
To: "Tomcat Users List" <users@tomcat.apache.org>
Subject: [programmazione] Re: Tomcat failover

> Is there a reason why no one is answering this?
>  ----- Original Message ----- 
>  From: Ofer Kalisky
>  To: Tomcat Users List
>  Sent: Monday, August 11, 2008 3:26 PM
>  Subject: Tomcat failover
>
>
>  Hi,
>
>  I have a Tomcat that has a thread that reads entries from a DB and 
> handles them. In each cycle, it reads all the entries (to a certain 
> limit). I would like to set up a configuration that has a failover Tomcat, 
> that when the first one crashes the second starts to read from the same DB 
> (or a replicated, doesn't matter) and handle entries.
>  I wouldn't want the second Tomcat to read from the DB, because it would 
> harm the operation of the first when the first is up. I would like it to 
> start working only when the first is down...
>
>  How can I know in the second Tomcat that the first have crashed? can 
> mod_jk help?
>
>  Thanks.
>
>
>  __________ Information from ESET NOD32 Antivirus, version of virus 
> signature database 3345 (20080811) __________
>
>  The message was checked by ESET NOD32 Antivirus.
>
>  http://www.eset.com
> 

---------------------------------------------------------------------
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


Mime
View raw message