Forum Discussion
jgranieri_42214
Nimbostratus
Jul 01, 2014Load Balancing based off TCP Payload entity
Hello,
I believe I constructed an irule to properly a variable from text captured from two distinct points in the TCP Payload but I am not 100% certain the Irule will is persisting off this entity....
Kevin_Stewart
Employee
Jul 01, 2014A few thoughts:
-
It looks like the iRule should work as it is. Are you seeing different or just questioning if it could fail?
-
Unless you're specifically doing mblb, I don't think you need the TCP::notify. TCP load balancing is by default session-based, so all traffic within a single TCP session will stick to the same node after an initial decision. I threw in some additional logging to show what the persistence record actually points to per TCP session.
when CLIENT_ACCEPTED { TCP::collect } when CLIENT_DATA { set entityID [findstr [TCP::payload] "User-Agent: " 12 " "] log local0. "entityID = $entityID" persist uie $entityID log local0. "using persistence for entityId ($entityID): [persist lookup uie $entityID]" TCP::release }
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