Forum Discussion

Parveez_70209's avatar
Parveez_70209
Icon for Nimbostratus rankNimbostratus
Dec 26, 2013

To alert when Tomcat services go down

Hi,

 

We have a Web URL, which is consisting of two web-servers W01 and W02, which is using round-robin to divide traffic and listening port of the member-servers are port 80( W01:80 AND W02:80),

 

Query:

 

Tomcat services were in hung state in W01 server and query is why it doesn't diverted the traffic to secondary web-server: W02 which is mapped into the pool ?

 

But as tomcat services are basically into port 8080, so is there a way we can let the load0balancer know to switch back to the other member-server server, whenever tomcat services got any issue ?

 

By any Irule or by addditionally adding the member servers as:

 

W01:80 W02:80 W01:8080 W02:8080 ?

 

Thanks and Regards Parveez

 

3 Replies

  • Tomcat services were in hung state in W01 server and query is why it doesn't diverted the traffic to secondary web-server: W02 which is mapped into the pool ?

     

    did health monitor work (i.e. did it mark server down)?

     

    if not, have you configured receive string in the monitor?

     

    But as tomcat services are basically into port 8080

     

    you can specify port when creating health monitor (i.e. port is not needed to be what pool member is listening).

     

    By any Irule or by addditionally adding the member servers as: W01:80 W02:80 W01:8080 W02:8080 ?

     

    no special configuration is required (i.e. translate-port will be enabled by default when creating host virtual server).

     

  • Hi,

     

    No Health monitor didn't worked it seems,it doesn't marked the member as down. Bcoz the listening port of the member is 80 while Tomcat services are running into port 8080 by default.

     

    And health monitor currently used is TCP only? So, is http customized monitor suggested ? with Send and Receive String ?

     

    Whether HTTP can monitor both 80 and 8080 ?

     

    Thanks and Regards Parveez

     

  • So, is http customized monitor suggested ? with Send and Receive String ?

     

    sol2167 explains how to construct http send string. the receive string can be any string in response. you can test http monitor by using tool such as telnet, curl, etc.

     

    sol2167: Constructing HTTP requests for use with the HTTP or HTTPS application health monitor

     

    http://support.f5.com/kb/en-us/solutions/public/2000/100/sol2167.html

     

    Making HTTP requests via telnet

     

    http://blog.tonycode.com/tech-stuff/http-notes/making-http-requests-via-telnet

     

    Whether HTTP can monitor both 80 and 8080 ?

     

    yes