Forum Discussion

Livius's avatar
Livius
Icon for Altostratus rankAltostratus
Sep 27, 2017

Trigger message to client based on health monitor response from server

Hi all,

 

I have the following scenario :

 

C - F5 - S

 

I am using a HTTP health monitor towards the Server pool members which keep the members UP based on 200 OK.

 

What I want to achieve, though, is whenever I get a 5xx error code from the server pool member, on health monitoring, generate a HTTP message towards the client, informing that it should retry after a number of seconds. An iRule would be ideal. Did anyone implement something similar before?

 

regards, Liviu

 

1 Reply

  • An irule cannot see the status response of the health monitor - it can only see if the pool members are up or down.

     

    If all your pool members are down, you can use the http profile fallback host setting to send the client to another address with a maintenance page.

     

    You can also set the "fallback on error code", but your monitor will need to mark the pool member as UP for a 5xx response as well as a 200 response.

     

    K7124: Configuring the BIG-IP LTM to redirect client requests based on HTTP server response codes

     

    Please note: using "Fallback on Error Code" prevents re-balancing connections on pool member down. This may not be desirable.

     

    I hope this helps.