Forum Discussion
Shishir_84445
Oct 20, 2011Nimbostratus
iRule Help on LB:reslect
Hello,
I need some help on the iRule. I have this iRule
----------------------------------------------------------------
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr] equals 10.10.10.10] } {
pool CSW_185_POOL
}
else {pool CSW_186_POOL}
}
when LB_FAILED {
LB::reselect
log local0. "Selected server [LB::server] did not respond. Re-selecting node from CSW_POOL2"
}
------------------------------------------------------------------------
CSW_185_POOL Contains one Member 1.1.1.185:80
CSW_186_POOL Contains one Member 1.1.1.186:80
CSW_POOL2 Contains 2 Members--> 1.1.1.185:80 and 1.1.1.186:80
CSW_POOL2 is applied to the VIP.
Now load balancing works when both servers are UP, but if one of the server is kept DOWN or rebooting, the LB:reselect does not pick up the other active member from the pool CSW_POOL2. As per the theory "LB::reselect" should pick up the active member in the pool.
Can anyone advice if the logic in not proper?
Thanks.
---Shishir
- nitassEmployeecan you try LB::reselect pool CSW_POOL2?
- nitassEmployee
e.g.
when LB_SELECTED {
when LB_FAILED {
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