Forum Discussion

Davethoonsen's avatar
Davethoonsen
Icon for Altocumulus rankAltocumulus
Jun 27, 2019

Monitor multiple actions on pool

Hi all,

 

We have configured two http health monitors for one pool which contains two nodes. The two nodes maintain an individual txt statuspage, indicating their current status with either receive string TSN-200 (OK) and receive disable strings TSN-500 (ERROR) and TSN-503 (MAINTENANCE). We have two health monitors since we can't include two receive disable strings in one health monitor, so we've split TSN-500 and TSN-503 over both.

 

The current 'action on status down' is set to none, which means that it will drain the node when either 5xx status pops up on the statuspage. However, we would like TSN-500 errors to reject all the current and new connections to the faulty node. TSN-503 status should still drain the node.

 

Version 13.x

 

Could anybody assist us in this, or is it simply not possible to leverage different actions for TSN-500 and TSN-503, eventually via other methods like iRules?

 

Kind regards,

 

Dave

3 Replies

  • nathe's avatar
    nathe
    Icon for Cirrocumulus rankCirrocumulus

    Dave,

     

    the only way i think you could do this is to create two pools, both with the same nodes in, but one group as the TSN-500 disable string and the other pool has TSN-503 one. You then can ensure the Action on Service Down is set to Reject. You would then need an iRule to choose pool based on number of available pool members, or something like that.

     

    Hope this helps,

     

    N

  • Hamish's avatar
    Hamish
    Icon for Cirrocumulus rankCirrocumulus

    Have you tried an external monitor?

     

    That can be written in perl or something similar. Then you can perform a curl to query the pool member and have as many tests as you like on the response.

     

    H

  • Hi guys,

     

    Thanks for the info. I'l look into it and see what fits best.

     

    Cheers!