Forum Discussion
CLDU
Nimbostratus
Jul 24, 2007Irule call persistence profile
Hello,
I have a Virtual server with 4 backend servers.
I create a Irule so we can test the 4 servers one by one:
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/front"} {
if { [HTTP::uri] starts_with "/front1A"} {
HTTP::uri "/"
node xx.xx.xx.xx 80
}
if { [HTTP::uri] starts_with "/front2Y"} {
HTTP::uri "/"
node xx.xx.xx.xx 80
}
if { [HTTP::uri] starts_with "/front3S"} {
HTTP::uri "/"
node xx.xx.xx.xx 80
}
if { [HTTP::uri] starts_with "/front4E"} {
HTTP::uri "/"
node xx.xx.xx.xx 80
}
}
}
But with this irule the cookie persistance profile don't match anymore.
how can i call my persistance profile in the irule.
I see persistence after first rule pick, this is what I want but with the persistance profile I already create.
Thanks for your help,
Clement
- Colin_Walker_12Historic F5 AccountYou should be able to call your persistence profile by name with the persist command.
when HTTP_REQUEST { if { [HTTP::uri] starts_with "/front"} { if { [HTTP::uri] starts_with "/front1A"} { HTTP::uri "/" persist MyCookiePersistence node xx.xx.xx.xx 80 } ...
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