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, 2015Hi,
did you try the irule with a test VS?
If you use multiple time the holding pool, create a variable.. I recommend you to adapt the irule to:
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] ne external_ip]) } {
pool $holding_pool
} else {
pool $default_pool
}
}
The logic of the expected scenario is not the same than the irule... can you check your expected scenario and add the name of the pool you want to count member.
- 2 members servers enabled (Pool default or holding???) and remote_addr is equal external_ip = $default_pool
- 2 members servers enabled (Pool default or holding???) and remote_addr is not equals external_ip = Holding_$default_pool
- 1 members servers enabled (Pool default or holding???) and remote_addr is equal external_ip = $Holding_$default_pool
- 1 members servers enabled (Pool default or holding???) and remote_addr is not equal external_ip = $Holding_$default_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
