LTM - Load Balancing iRule
We have a VIP that takes two connections per day coming from the same client. The client opens the two connections within the same second of each other, each connection stays open for 30 seconds. Persistence is not configured on the VIP. The pool behind the VIP contains two members. LB method is Round Robin. We've also tried Least Connections with no luck. The intermittent issue is that sometimes the two connections get load balanced to one member and sometimes each member receives one connection. Is there an iRule I can put in place to ensure one connection goes to each member every time?
The intermittent issue is that sometimes the two connections get load balanced to one member and sometimes each member receives one connection. Is there an iRule I can put in place to ensure one connection goes to each member every time?
what you are seeing is due to how cmp works. i think disabling cmp should work.
sol14358: Overview of Clustered Multiprocessing (11.3.0 and later)
if you do not want to disable cmp, irule similar to Matt's suggestion is needed (global variable will demote cmp, so you have to store global_myvsconncnt in session table instead).
sol13033: Constructing CMP-compatible iRules