Forum Discussion

Chandan_Kumar_1's avatar
Chandan_Kumar_1
Icon for Nimbostratus rankNimbostratus
Sep 19, 2013

iRule to mark pool member down if HTTP Status Code 502/503

Hi,

 

I need help in iRule creation for following scenario. There are two members in pool and both are serving normally.

 

How do I mark pool member down if any member is returning HTTP Status Code 502 for 5 or more times due to any application issue?

 

Thanks

 

2 Replies

  • I'd suggest that using a HTTP health monitor would be more appropriate. In this case perhaps a second monitor configured for 'reverse' mode so the Pool Member is marked up unless a 502 is received; you can configure it to mark down after 5 occurances using the appropriate timer values. Then you'd just need to add the monitor to the Pool and configure it to mark down if either monitor fails.

     

  • Thank you, let me try both and easiest one I will pick it. Thanks for guidelines. I will update you the results.