Forum Discussion
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
- What_Lies_Bene1
Cirrostratus
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.
- Chandan_Kumar_1
Nimbostratus
Thank you, let me try both and easiest one I will pick it. Thanks for guidelines. I will update you the results.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com