Weighted Least Connections: How to add a pool member via iControl interface
We are using the iControl interface to manipulate pools/members in devices running version 10.2.3. Whenever we have configured a pool with a Load Balancing method of "Weighted Least Connections", and attempt to add a pool member, we get an exception:
The weighted least connections algorithm for pool (abc) requires all pool members to have a connection limit.
Yet, in either the add_member or add_member_v2 methods of iControl::LocalLB::Pool, I see no means of indicating the connection limit while the member is being added. So, I assume that it is defaulting to zero (unlimited) connections. As you can imagine, this kind of puts us in a catch-22.
I'm guessing we might be able to work around this by first changing the pool's load balancing method to something else, then adding our members and setting their connection limits, and then finally switching the LB method back to Weighted Least Connections. Obviously, this is kind of a kludgy way to go about it, and I'd also be concerned about flipping LB methods around for a pool that could easily be taking active connections while this is going on.
Am I missing something in the documentation, or is there a better workaround for this problem?
Thanks in advance, John