Forum Discussion

Mark_Curole's avatar
Mark_Curole
Icon for Nimbostratus rankNimbostratus
Oct 02, 2008

HTTP Health Check Question

I am trying to work up a health check for Kentico - a dotnet based CMS. I am wanting to hit a page that can be controlled from the CMS so the stake holders can take a node out of load balancing as required.

 

 

Right now to get individual node control like this the developer has put in a seperate page for ever node (once a page is added it is replicated automatically), and I have setup Monitor-to-Pool Member association.

 

 

What I would prefer to do would be use a receive string with a regex so that I could do a Monitor-to-Pool association. I would look for something like Up.

 

 

Is this possibly?

4 Replies

  • You could potentially configure a monitor with the request being made to a status page. The receive string would check for one particular node IP and its status. The downside is that you'd need to configure one monitor per pool member and assign a member-specific monitor to every pool member individually. I'm guessing it would be easier to use your existing method.

    The monitor configuration would look something like this:

     
     monitor http_alias_monitor { 
        defaults from http 
        dest 1.1.1.1:http 
        recv "10.0.0.1 UP" 
        send "GET /status_page.php" 
     } 
     

    The dest is the IP:port for the server which hosts the status page. The send field is the request LTM would send. The recv field is what LTM would expect to get back in the response for that request. 10.0.0.10 would be the IP address listed in the page content of the status page.

    Aaron
  • I keep running across this post as we host a number of Kentico sites, and I am constantly Google'ing terms.

     

    I like to do my healthcheck by putting a meta tag of "heathcheck" into the master page(stored in the DB). Reason why, the kentico cms will only render that tag if the CMS is functioning. Hope this helps someone else. Another tip for anyone with Kentico. If you don't license webfarm, you can only have this running on 1 server. The app goes bonkers because of it's cache layer.

     

  • I am not familiar with Kentico, but I guess the server can be aware on which IP:port it received the healtcheck request and then include it in the response string which the monitor checks as you suggested .. " Up"

     

    Typically I hate to do it since it launches too many processes frequently but this could be a scenario in which external monitor might be suitable.

     

    Best !!

     

  • I am not familiar with Kentico, but I guess the server can be aware on which IP:port it received the healtcheck request and then include it in the response string which the monitor checks as you suggested .. " Up"

     

    Typically I hate to do it since it launches too many processes frequently but this could be a scenario in which external monitor might be suitable.

     

    Best !!