Forum Discussion
Chuck_Adkins_13
Nimbostratus
Nov 15, 2005priority LB - maybe better suited to iRule?
In this setup - as long as there are one priority 2 nodes available - traffic is directed to them. This is correct behavior. If all the priority 2 nodes are down, then traffic is directed to priority ...
unRuleY_95363
Dec 06, 2005Historic F5 Account
Ok. Sorry about that. To add logging use the "log" statement.
So, for example:
when LB_FAILED {
log local0. "failed for pool [LB::server pool], active mbrs = [active_members [LB::server pool]]"
}This will generate a log message into syslog that will end up in /var/log/ltm.
Now, on to your problem. Just a hunch but try adding parenthesis () around the two parts of the expression in your if:
if { ( [LB::server pool] eq "main_pool" ) and ( [active_members main_pool] == 0 ) } {If this fixes it, try searching for "operator precendence" and you should find some reasonable explanation that I've already made elsewhere on devcentral.
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