Forum Discussion
Rob_Wotton_8024
Nimbostratus
Oct 20, 2009Pool redirection and healthcheck
Hi,
I have been banging my head against the wall for the past couple of days with this one, so any help would be greatly appreciated.
We need to redirect certain URL's to...
hoolio
Cirrostratus
Oct 20, 2009If you use a two pool approach, you would probably want to also check if the second pool has active members before using it. And then you'd want to handle the case where both pools are down.
It might be easier to use a single pool for each app and add the second set of servers at a lower priority in the same pool. LTM would automatically use the second set of pool members if no higher priority member was available.
Either way, you could use switch to do this a bit more efficiently:
when HTTP_REQUEST {
Check requested URI
switch [string tolower [HTTP::uri]] {
"/sitea" {
pool webpool-1
}
"/siteb" {
pool webpool-2
}
default {
pool webpool-2
}
}
}
If you run into problems with this rule or your own version, try adding logging to each code section and check the /var/log/ltm output to see what portions of the rule are being hit.
Aaron
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