Forum Discussion
_Dmi_
Nov 17, 2023Altostratus
pool selection
Hi, is it poossible to implement irule logic below? By default traffic select Pool1, but it select Pool2 if online pool members of Pool1 below two. If all pool members became available in Pool1, tra...
Nov 20, 2023
I think the iRule below fill meet your requirements.
when CLIENT_ACCEPTED {
set pri_pool "/Common/pool_a"
set sec_pool "/Common/pool_b"
if {[table lookup active_pool] ne ""} {
if { [active_members [table lookup active_pool]] >= 2 } {
}
elseif { $active_pool eq $pri_pool } {
table replace active_pool $sec_pool indefinite
}
else {
table replace active_pool $pri_pool indefinite
}
}
else {
table set active_pool $pri_pool indefinite
}
pool [table lookup active_pool]
}
Have fun,
--Niels
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