Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Tomcat and the fly likes can tomcat cluster only leaves one server up, if that server is down, then start the second server? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "can tomcat cluster only leaves one server up, if that server is down, then start the second server?" Watch "can tomcat cluster only leaves one server up, if that server is down, then start the second server?" New topic
Author

can tomcat cluster only leaves one server up, if that server is down, then start the second server?

Hai Lin
Ranch Hand

Joined: May 23, 2004
Posts: 79
All,

I am new to Tomcat cluster, so I will greatly appreciate any your help on my questin below.

I want to set up a tomcat cluster including 2 servers, but each time I only want one server is up; if that running server is down, the cluster will automatically start up the second server?

Can tomcat cluster do this? if so, could you tell me any info or link that how to do it?

Many thanks!
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14487
    
    7

What is the benefit? It takes time to start/stop a Tomcat server. Not much, compared to its bigger relatives, but still it takes time. Keeping both nodes in a cluster alive means millisecond-speed failover instead of tens of seconds or more. And it's not like Tomcat is a major resource hog.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: can tomcat cluster only leaves one server up, if that server is down, then start the second server?
 
Similar Threads
Re: WAS Cluster
tomcat clustring
Singleton MDB in a clustered environment
WebSphere 6.0.2 ND : Cluster member Weight Setting for failover server
WAS 6.0.2 : ARchitectural Question