Forum Discussion
JRahm
Admin
Mar 02, 2006Persist syntax
What is the difference?
persist uie [string tolower [HTTP::host]] 120
and
persist add uie [string tolower [HTTP::host]] 120
Also, I noticed in another post that the session table is broken in 9.1.1? Does this apply to persist command as well, since they use the same table? My goal is very simple, I have proxies that load balance requests to IWSS servers, and I'd like to persist all the requests for a particular internet destination (cisco, ebay, etc) to a single IWSS server. Here's the rule:
when HTTP_REQUEST {
if { [persist lookup uie [string tolower [HTTP::host]]] equals ""} {
persist uie [HTTP::host] 120
}
}
Suggestions? Thanks in advance.
- unRuleY_95363Historic F5 Account
This command is intended to be used before the load-balancing decision. It means, lookup a persistence record matching this key and use it if found, otherwise add a persist record under that key after making the load-balancing decision.persist uie [string tolower [HTTP::host]] 120
This command is intended to be used only after the load-balancing decision and it merely adds (or updates) a persistence record to the currently connected pool member.persist add uie [string tolower [HTTP::host]] 120
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