Forum Discussion
dkinsler_23191
Nimbostratus
Feb 15, 2010fallback to different VIP in Irule??
Hello All,
I have been looking for a way to do this but I have not been able to find it. I am trying to select a completely different VIP when all the pool members are down. I have found th...
hoolio
Cirrostratus
Feb 15, 2010If you want to select a second VIP to handle the request when a new request is parsed and the default pool is down, you can use something like:
when HTTP_REQUEST {
Check if currently selected pool has no active members
if {[active_members [LB::server pool]] == 0}{
Use the fallback VIP
virtual fallback_vip
}
}
Of for lower overhead, you could change from the HTTP_REQUEST to the CLIENT_ACCEPTED event. Then the check would only be done when a client establishes a new TCP connection to the VIP versus on each HTTP request.
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