Forum Discussion
ItTim_39238
Nimbostratus
Apr 14, 2008What to use
First, let me say that I'm a tech guy, not a coder. Second, I'm not looking for a final solution - just someone to point me in the right direction so I can pass on some basic info to my Dev team to work out the details...
I have a custom application which communicates outside of HTTP/HTTPS over fixed ports that communicates to a business tier. I would like to find a way to create a virtual server supporting two or more business tiers to help scale the app. However, the app requires some level of persistance between the client and the business server. Although source_addr does work if I set the timeouts high-enough, I need to go beyond that level due to NAT within my network. I have tried the other persistent options with no success. I'm sure that the iRules probably have enough power to create this, but when I look at the samples, I find reference to standard protocols like HTTP, FTP, etc. Where can I find true custom persistance options for non-standard applications? I would like to point my developers at something that they can either update our app generate tags to support custom iRules, or if possible find some identity in the app as it is and build an iRule around.
Thank you all in advance.
Tim
- hoolio
Cirrostratus
Hi Tim, - Nicolas_Menant
Employee
Hi,when CLIENT_ACCEPTED { TCP::collect 44 } when CLIENT_DATA { set ConStr [TCP::payload 44] set SessionID [substr [getfield $ConStr "@" 2] 0 " CHID" ] log local0.info $SessionID if { $SessionID equals "" } { No SessionID, just load balance as usual log local0.info "No session ID, load balancing the connection." pool YOUR_DEFAULT_POOL_NAME } else { All clients with this SessionID go to this server timeout is 120 seconds persist uie $SessionID 120 } }
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