Hi I’m trying to write an iRule to ensure that one of our largest client applications gets evenly distributed across our services pool. We currently have 4 nodes in the pool with round-robbin LB in place.
The problem with this is that if another client requests a connection at the same time as our ‘biggest hitter’ client, the large client can end up with multiple connections to only a singe member of the pool instead of being properly distributed across all of the available members.
The backend and client are both weblogic based so the other standard LB profiles do not provide much assistance.
How are your applications configured on the LTM? Virtual for each application, or do you switch all applications via a single virtual? Do the requests to your LTM come directly from the clients or is there a web tier proxying these requests?
The applications we host are all configured with virtual addresses, but the client accessing them are not. All clients connect to the service via the vip which does least observed connection LB to the 4 backends through one pool.
The client connections are all internal, there is no proxying involved.
I’m trying to make sure that a single client (with multiple IPs) is spread evenly across the available nodes, for performance considerations.
At the moment, the LB can end up distributing all of the desired client connections to one or two of the nodes, due to other client requests occurring at the same time, but not evenly across all four.
Ultimately I end up with a disproportional load on two nodes that my target client is connected to as they are heavy users of the application…
The details of the t3 protocol have never been released to my knowledge. Unless you can build classes of who belongs where, I don’t know that I can help you. You might consider a separate vip for your heavy hitters and use a different load balancing method for them.
Thanks jsabe for the code snip, it looks good I’ll try it out an see how we get on. I have two slight concerns though, each ‘big hitter’ client will have multiple connections from each IP, so I’m not sure what the client to backend split will look like and what happens when one of the nodes is unavailable? - we use iControl to offline members of the pool in the event of application issues or failures?
With some minimal tweaking, the iRule above seems to be working a charm. Quick question though…
Our default LB is least observed connections, when this rule is applied to the VIP with this configuration we see weird jumping around behavior. I assume this is because the LB:server for the incoming connection is moving about as per the initial LB.
Is there a way to get the iRule to change the LB to round robin for only the selected big-hitter list?