File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Load balancing/failover for Tomcats Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Load balancing/failover for Tomcats" Watch "Load balancing/failover for Tomcats" New topic
Author

Load balancing/failover for Tomcats

Matthew Seaborn
Greenhorn

Joined: May 13, 2008
Posts: 1
I need to load balance (but not cluster) a collection of Tomcats.

We have existing load balancers/failover that can probe with an HTTP requests to see if a service is up. However out Tomcats have a number of webapps on and the start-up/shotdown can take quite a few minutes, so the failover isn't quite working.

I want to create a servlet that report whther the Tomcat it is running in if fully operational. Amongst other checks the servelt needs to know

1. That the server is not in the a startup, shutdown stage in it lifecycle.
2. That all of the webapps are running.

Stage 1 can be achieved by a creating a LifecycleListener but 2 cannot. Can MBeans provide the ability to do both? If so how? I can find precious little docu on Tomcat's MBeans.

Thanks.
Jaffer Sadiq
Greenhorn

Joined: May 19, 2008
Posts: 24
Hi,
Which operating system you are using.....

Thanks,
Jaffer
Jaffer Sadiq
Greenhorn

Joined: May 19, 2008
Posts: 24
Hi,

1. That the server is not in the a startup, shutdown stage in it lifecycle.

-- This is configuration issue

2. That all of the webapps are running.

-- Some time services will run, But the invoked thread may be expired...due to that apache may not perform well

Thanks,
Jaffer
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Load balancing/failover for Tomcats
 
Similar Threads
Load Balancing Problem with jsessionid
Tomcat 4.1 DEV instance on multiple partition NT Server
JMS Clustering
Tomcat Cluster Application Only Failover
UnpackWAR