Forum Discussion
iRule
We have 3 pool members assigned to a Pool. When one of the specific pool member goes down out of the 3 pool member, the URL has to be redirected to sorry/maintenance page.
For example, if the names of the pool members are A, B and C. I need an iRule to redirect to sorry/maintenance page, only if Pool member B goes down. But if one of the other pool members like A or C goes down, traffic has to pass to other pool members.
Can you provide an iRule to accomplish this task ?
2 Replies
- kunjan
Nimbostratus
See if this helps:
when HTTP_REQUEST { if {! ([active_members -list [LB::server pool]] contains "") } { HTTP::respond 302 Location "some maintenance url" } } - nitass
Employee
you can also check status of specific pool member using LB::status and take action on it e.g. redirect to sorry page.
LB::status
https://devcentral.f5.com/wiki/iRules.LB__status.ashx
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