Forum Discussion
ryan_rockwell_1
Nimbostratus
Apr 18, 2014active members check on multiple pools
I have an iRule that redirects traffic to another pool by uri. I want to be able to mark the site offline with a placeholder if the default pool is unavailable. I have a seperate pool for my placeh...
ryan_rockwell_1
Nimbostratus
Apr 22, 2014So I took Kevin and nitass's advice. I created a new rule: when RULE_INIT {
set static::DEBUG 1
}
when HTTP_REQUEST {
if { [active_members INF-HC-HTTP] < 1 } {
if { $static::DEBUG } { log local0. "Primary pool offline" }
HTTP::uri /
pool QA-PH
} elseif { [class match [string tolower [HTTP::uri]] starts_with QA-HC-URI] } {
pool INF-HC-HTTPDNN
} else {
pool INF-HC-HTTP
}
}}
with a string data group called QA-HC-URI and everything works like a charm except for one piece. When the maintenance page comes up it loads the text but the CSS and the images are missing. When I wireshark it, it says everything is fine and the logs on the server say it's being delivered but they don't show up. If I host file to the server directly it comes up perfectly. I'm clueless. Thanks.
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