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...
unRuleY_95363
Jun 20, 2005Historic F5 Account
The way to do this is to write a handler for the LB_FAILED event.
You can then query the pool and take action according to which pool was selected.
Eg:
when LB_FAILED {
switch [LB::server pool] {
pool-customer1 { HTTP::redirect http:://foo/customer1 }
pool-customer2 { HTTP::redirect http:://bar/notavail }
default { HTTP::redirect http:://sitedown/ }
}
}
You can also use "HTTP::respond" instead of "HTTP::redirect" and then you can completely customize the response.
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
