Forum Discussion
swjo_264656
Cirrostratus
Jan 10, 2018About i-Rule active_members...
Hi guys.
I`m using i-Rule about using 'active_members'
when CLIENT_ACCEPTED {
if {[active_members P-10.10.10.10-80-L3DSR] < 1}{
reject
}
}
I ll apply this rule to many virtual server but I d...
Lee_Sutcliffe
Nacreous
Jan 10, 2018You do not need an iRule for this. You can select 'Action On Service Down' to 'Reject' under the pool configuration.
That way when the pool is down (active members < 1 ) it will reject subsequent requests
Alternatively, if you really want to use an iRule, you can retrieve the default pool assigned to the VIP with
[LB::server pool] - iRule below is untested
when CLIENT_ACCEPTED {
set default_pool [LB::server pool]
if {[active_members $default_pool] < 1}{
reject
}
}
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
