• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

set up a temporary site when Tomcat and aplication are off

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,
I'm asking for your advice. I would like to set up a temporary site when Tomcat and aplication are off. Unfortunately, our Tomcat turns off after apr. 4 minutes. I was thinking of setting up another Tomcat, with the temporary site. After closing the first Tomcat (with the main aplication), I could quickly open the other Tomcat, the one with the temporary site. What are you thinking about this? Do you have any other ideas? I want to avoid the 4 minutes moment, when the client sees nothing.
 
Rancher
Posts: 43016
76
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

The usual approach to this would be to run another server in failover (or load balancing) mode. You could either use Tomcat's built-in load-balancing, or put an Apache in front of the Tomcats and have it load-balance between them (that's what I would recommend).
 
Saloon Keeper
Posts: 22482
151
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If Tomcat goes out after only 4 minutes of operation, you have a serious application bug and really need to fix it as soon as possible. Did I understand correctly?

Clustering Tomcat probably won't help, since with a failure rate that high, every Tomcat in the cluster would probably go down as fast as it came up.
 
Anderson gave himself the promotion. So I gave myself this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic