Forum Discussion
Rusty_Hale_8009
Nimbostratus
Apr 02, 2007Need redirect to different pool
I know that I have seen an iRule which says if the primary pool hass no active memebers, then send to another pool (kinda like a maintenance page). I searched the forums and code shares and could not...
hoolio
Cirrostratus
Apr 03, 2007You can check to see that there is at least one node in the pool marked up using active_members (Click here😞
when LB_SELECTED {
if {[active_members my_pool] < 1}{
no nodes available, so set a new pool, send a redirect or send another HTTP response
...
}
}You could use LB::server pool with active_members to get the active nodes in the currently selected pool:
[active_members [LB::server pool]] < 1Try searching for active_members for more examples or reply here.
Aaron
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
