Forum Discussion
unRuleY_95363
Aug 03, 2005Historic F5 Account
The only thing I can think of at the moment is to define an array in RULE_INIT that maps how many nodes are in each pool. That might be a bit unmanageable though...
when RULE_INIT {
array set ::node_count {
pool_A 15
pool_B 20
pool_C 5
}
}
when LB_SELECTED {
set pool [LB::server pool]
if { ([active_members $pool] * 100 / $::node_count($pool)) < 10 } {
log "Pool $pool is has less than 10% active members!"
}
}