Forum Discussion
David_Bradley_2
Nimbostratus
Apr 10, 2007LB::reselect not working as expected
I'm got an LB_SELECTED that is checking if the choice made by the LB is acceptable, and doing an LB::reselect if not. I setup an artificial condition in my lab in which no choice is acceptable. Base...
David_Bradley_2
Nimbostratus
Apr 11, 2007I'm going through serious contortions trying to accomplish something relatively simple. I have clients of different "weights". Each server in my pool has a finite "capacity". Each time a client connects to a server I decrement the server's capacity by the client's weight. I'm trying to optimize the distribution of connections and prevent any server from becoming overloaded. I'm using 'ratio' to store the server's capacity value. I use this because it's visible to irules and I can modify it from iControl, and the ratio values are replicated to the backup LTM using session mirroring, unlike TCL global variables. I'm almost there. I can only check a server's 'ratio' in the LB_SELECTED rule, and I can only check the selected server. Ideally i'd like to be able to get a list of servers in a particular pool and query all ratios in that loop. I'd like to do this in the CLIENT_DATA rule. I can't. So i'm forced to do it in LB_SELECTED. Now if I could just get LB::reselect to loop through all of the available servers in the pool, not just two, it would work. Why is it limited to 2? I completely don't understand that one at all.
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