Forum Discussion
Gregory_Gerard_
Nimbostratus
Jun 18, 2005How do I detect if a pool is down in an iRule?
Use Case:
pool is down
Current behavior:
I have an http profile setup that sends back an impersonal redirect to the client.
Desired behavior:
I'd lik...
Colin_Walker_12
Mar 09, 2007Historic F5 Account
Not that you don't have valid questions, because they're good ones, but wouldn't it be easier to just check to see if the pool is down prior to sending the request to it? If all you're looking to do is redirect when no members in the pool are available, something like this would work:
when HTTP_REQUEST {
if { [active_members your_pool] < 1 } {
HTTP::redirect "http://somedomain.com/somepage.html"
} else {
pool your_pool
}
}I know it doesn't answer your questions (which I'd love to do, when I get a minute to look into them), but I would think it would give you the desired behavior, no?
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
