Forum Discussion
Shawn_Higgin_84
Nimbostratus
Jun 25, 2005How to redirect if less than x nodes are avail
I was wondering if anyone knoes how do setup a iRule to do a redirect if there are less than x nodes available within a pool. Is there an easy way to do this? I have it working if there are no nodes...
Colin_Walker_12
Jun 07, 2006Historic F5 Account
That would be a relatively simple iRule:
when HTTP_REQUEST {
if { [active_members http_pool] < X } {
reject
}
}
X would be changed to the minimum number of active members, of course.
This code is almost identical to the example in the Wiki on the active_members page: Click here
HTH,
Colin
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects