Forum Discussion
kunalPatel_3157
Cirrus
Oct 25, 2018Persistence through IRULE
I have following irule:
when HTTP_REQUEST
{
if {([HTTP::uri] contains "Communication") or ([HTTP::uri] contains "Builder") }
{
persist cookie
pool XYZ
}
elseif { ([HTTP::...
Andy_McGrath
Cumulonimbus
Oct 26, 2018First your
persist cookie command is incomplete so to remove the need for the the Persistence profile on the virtual server (see the wiki iRule wiki: persist).
So should be the following:
persist cookie insert
e.g.
persist cookie insert f5Cookie 0
Second I would put the
pool selection command before the persist, not sure if you need to do this but always done it my self and more examples show this to be done, e.g.:
if {([HTTP::uri] contains "Communication") or ([HTTP::uri] contains "Builder") } {
pool XYZ
persist cookie insert f5Cookie 0
} elseif {([HTTP::uri] contains "PDFTemp") or ([HTTP::uri] contains "DOCTemp")} {
pool ABC
persist none
}
Finally if you want to make sure you are enforcing the pool and persistence selection on every HTTP request I would attach a OneConnect profile to the virtual server K7208: Overview of the OneConnect profile if you don't already have one.
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
