Forum Discussion
Gary_Bright_120
Nimbostratus
Mar 13, 2006Persist iRule based on URI
Hi there I'm trying to write an iRule that will allow us Admins the choice of selecting a pool member and have persistence with that member.
At the moment we have a persistance profile or source_a...
James_Thomson
Employee
Mar 15, 2006Wouldn't you want it the other way around? If you find gb=3, persist none because there's only one server to send you to so you don't need to persist.
Also, add some logging to make sure the logic is catching.
when HTTP_REQUEST {
if { [URI::decode [string tolower [HTTP::uri]]] contains "gb=" } {
persist source_addr 1800
log "Persist"
}
if { [URI::decode [string tolower [HTTP::uri]]] contains "gb=3" } {
use pool webpool member 1.1.1.3 80
persist none
log "NO -- Persist"
}
}
I think persistence takes precedence over selecting a pool member directly. Can anyone confirm that?
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