Forum Discussion
24x7_199
Mar 23, 2012Nimbostratus
Not your average Persistence iRule
So we have a server that is being load balanced to on .47, this sits in a pool with .46. We are only sending traffic to .47 unless .47 goes down or a health check fails in which case traffic will go ...
Sashi_81625
Mar 26, 2012Nimbostratus
add .47 to poolA
add .46 to poolB
assign below iRule to virtual
when RULE_INIT {
set static::fg 1
}
when HTTP_REQUEST {
if { ([active_members poolA] < 1) } {
set static::fg 0
}
if { ([active_members poolB] < 1) } {
set static::fg 1
}
if { $static::fg == 1 } {
pool poolA
else
pool poolB
}
}
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