Forum Discussion
ChrisK
Nimbostratus
Dec 01, 2009iRule Question - persistance
I have a question regarding irules.
First off, is it possible to add persistence to a pool via a Virtual Server iRule?
Also, if so, how would this be accomplished? I’m s...
hoolio
Cirrostratus
Dec 01, 2009Hi CK,
You're correct in that in 4.x you could specify persistence per pool. Now in 9.x/10.x, persistence is set per VIP. You can use an iRule to make more granular persistence decisions.
Take a look at this post for a close example:
http://devcentral.f5.com/Default.aspx?tabid=53&view=topic&postid=33272&ptarget=33284
when HTTP_REQUEST {
Check requested path
if {[HTTP::path] ends_with ".wav"}{
Use cookie persistence (session - no timeout) for this request
persist cookie insert my_persist_cookie 0
} else {
Use no persistence for this request
persist none
}
}
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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