Forum Discussion
Angel_Martinez_
Nimbostratus
Nov 18, 2010LB::server pool
Hi
I've this iRule running in two different boxes:
rule iRule_Sorry_Redirect {
when LB_FAILED {
if { [active_members [LB::server pool]] < 1 } {
HTTP::fallb...
Angel_Martinez_
Nimbostratus
Nov 25, 2010Hi
I had time to test...
$default_pool is always pool_ni.cm.es_80 which is the default pool of the virtual server. So, I should use the event CLIENT_ACCEPTED to be sure that iRule manages the correct pool it a great idea.
I'm going to set up on the production enviroment this iRule:
rule Sorry-Redirect {
when CLIENT_ACCEPTED {
set default_pool [LB::server pool]
}
when LB_FAILED {
if { [active_members [LB::server pool]] < 1 } {
HTTP::fallback "http://sorry-[HTTP::header host]"
}
}
I've tried on the pre-production enviroment but I need load to be sure that works right.
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