Forum Discussion
Gordon_Johnston
Nimbostratus
Jan 06, 2006Selecting persist profile
I'm sure I'm missing something obvious here but I can't figure it out.
I need to achive something like this in an iRule:
if { statement } {
persist profile_one
use pool pool_a
}
elseif { statement } {
persist profile_two
use pool pool_a
}
elseif { statement } {
persist none
use pool pool_a
}Where profile_one and profile_two are two different cookie insertion profiles (different timeouts)
What I need is how to make the persistance profile selection above work, "persist profile_name" is clearly not the right syntax.
It seems to be possible to do "persist cookie insert"
but that appears to use the persistance profile associated with the VS which isn't really what I need.
Any ideas, scratching my head here.
5 Replies
- Gordon_Johnston
Nimbostratus
I've just seen the "[iRule - v9.0] URI switching & Persistence" document in the code share. That explains how to set distinct cookie names which half gets to where I need to be, but I still need to be able to set different timeouts.
Also as far as I can tell a VS can only have 2 persistance profiles attached, the default and the fallback. If I want to use 3 different types of persistance, selected with an iRule, how would I go about this? - Gordon_Johnston
Nimbostratus
Any ideas on this? - Gordon_Johnston
Nimbostratus
I've been pointed in the direction of this post which answers my query http://devcentral.f5.com/default.aspx?tabid=28&view=topic&forumid=5&postid=1276
Are there any plans to make this a bit simpler, i.e. so that you could select a persistance profile directly by name? This would make administration somewhat easier in the case where you have the same pool referenced a few dozen times. - rapmaster_c_127Historic F5 AccountYou could always pull the "use pool a" statement out of the braces after the if clause.
- Colin_Walker_12Historic F5 AccountAs far as I know, there aren't currently any plans to change the way that this functionality behaves, but you can always submit a change request via Technical Support, and it will be reviewed and considered for future versions.
-Colin
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