Forum Discussion
LTM - Load Balancing iRule
- Jun 29, 2014
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)
http://support.f5.com/kb/en-us/solutions/public/14000/300/sol14358.htmlif 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
http://support.f5.com/kb/en-us/solutions/public/13000/000/sol13033.html
Hi!
Just wanted to recommend against using the global variables as it disables CMP.
You might want to try this one as well:
when HTTP_REQUEST {
if { [IP::client_addr] eq "10.0.0.1" } {
persist source_addr 255.255.255.255 60
}
}
Not tested for functionality nor syntax since the laptop running my lab environment died just now. 🙂
/Patrik
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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