Forum Discussion
Craig_Jackson_2
Nimbostratus
Mar 11, 2013Limitation on LB::reselect?
I've coded an iRule that's supposed to search for a server that's not on an "avoid" list. I've tried to do this by doing LB::reselect repeatedly until I reach one that's not on the list. However, it'...
Craig_Jackson_2
Nimbostratus
Mar 26, 2013Ahh. So it's a recursion issue. I wasn't thinking of LB_SELECTED being called directly out of the previous LB::reselect event, but I guess it is.
Still, it should be documented.
Too bad they don't offer an iRule interface to affect the load balancing decision itself. What I really need is "pick a server, but not one of the ones in this list, unless you have no other choice".
My final solution was to check if the assigned server was in the "avoid" list. If it is, I loop through the available nodes and pick the first one not in the avoid list. If there are none, I just let it go through to the selected server.
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
