Forum Discussion
Load balance to lower priority group member with iRule
Hello,
I have following scenario: 4 pool members - 3 of them with priority 2 and 1 with priority 1. I want all traffic to go to higher priority group and with an iRule, I want to forward traffic from one specific source IP to lower priority group member. As I cannot this test in advance I'd like to ask if it will work before I'll start with implementation .
iRule would be:
when CLIENT_ACCEPTED {
if { [LB::status pool $poolname member $ip $port] eq "up"} {
if { [IP::addr [IP::client_addr] equals 192.168.1.1] } {
pool $poolname member $ip $port
}
}
}
that should work fine my only concern is if F5 won't have problem to send the traffic to lower priority group member when there are available members in higher priority group.
Thanks
Your rule looks good. The
command doesn't care about the load balancing method on a pool when you chose a specific member with it. It is overriding the LB method and priority when you use it this way.pool
- Brad_ParkerCirrus
Your rule looks good. The
command doesn't care about the load balancing method on a pool when you chose a specific member with it. It is overriding the LB method and priority when you use it this way.pool
- duBeN_123857Nimbostratusperfect, thanks
- Brad_Parker_139Nacreous
Your rule looks good. The
command doesn't care about the load balancing method on a pool when you chose a specific member with it. It is overriding the LB method and priority when you use it this way.pool
- duBeN_123857Nimbostratusperfect, thanks
Recent Discussions
Related Content
* 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