Forum Discussion
xett_113697
Nimbostratus
Nov 26, 2007Updating Persistence from an iRule
I'm trying to find a way to update my persistence from a URL parameter. Here is my problem:
Lets say I have a pool called test-pool. In that pool I have server1, server2, server3. I need ...
xett_113697
Nimbostratus
Nov 27, 2007Thanks for your response Aaron.
We have the Default Persistence Profile set to custom_source_addr with Mirror Persistence checked, Match Across Services checked, Match Across Virtual Servers checked, Match Across Pools unchecked, Timeout 10800, Mask: None, and Map Proxies checked.
I set the virtual server's OneConnect profile to oneconnect with the following iRule, but it does not update the persistence record. If I remove the URI parameter I will be returned to the previous server.
when HTTP_REQUEST {
set requested_host ""
... logic for selecting the server from the URI because ...
... URI::query complains about wrong of args when retrieving a param ...
switch $requested_host {
"" {
pool my-pool
}
"long" {
node 10.0.0.10
}
"orbw" {
node 10.0.0.11
}
default {
pool my-pool
}
}
}
Thanks for your help.
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
