0

I have machine A running Apache 2.2 (acting as load balancer) and 2 machines(B & C) both running Tomcat and Java Web Application on Windows 7 in a network. Is there any way I can check:

  1. If the Web application is down but the Tomcat is still running on Machine B and redirect the request to Machine C

Does this has to do with modifying the Tomcat or Apache 2.2 config? I have read Is Tomcat running? but couldnt find any information. Thanks.

Community
  • 1
  • 1
newbie
  • 958
  • 4
  • 13
  • 25

3 Answers3

0

Try with a rest endpoint. If the rest endpoint is available the application is running.

rinjan
  • 550
  • 5
  • 19
0

if you can install a linux or cygwin, you can use varnish : https://www.varnish-cache.org/ and create a probe on our WebApp with 2 backends.

Guillaume USE
  • 436
  • 1
  • 4
  • 6
0

You can do that using a load balancer (you can tell the load balancer to use a http health monitor vs tcp monitor). Unfortunately, Apache+tomcat only performs a tcp check and hence cannot tell if only the app is down. But if you find something, please share as this issue has been bugging me for a few years now !

souser
  • 5,868
  • 5
  • 35
  • 50