Forum Discussion
jonesy77_222167
Nimbostratus
Sep 16, 2015iRule to forward traffic depending on specific IP to original pool when holding pool enabled.
I'm trying to setup an iRule for when our sites are being upgraded.
I've setup holding pools that will be enabled when sites are being upgraded so end users will see just a banner site when enabled...
Stanislas_Piro2
Cumulonimbus
Sep 22, 2015your scenario is strange....
holding pool with 2 members --> default pool holding pool with 1 members --> holding pool
most of customer want to disable holding pool if less than 2 members are up.
I never used
ne operator with class match... can you check this irule :
when CLIENT_ACCEPTED {
set default_pool [LB::server pool]
set holding_pool Holding_$default_pool
if { ([active_members $holding_pool] >= 2) && !([class match [IP::remote_addr] equals Internal_ip]) } {
pool $default_pool
} else {
pool $holding_pool
}
}
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
