Forum Discussion
Hank_Maurer_105
Nimbostratus
Jun 21, 2005Expression Persistence
I would like to use expression persistence or a rule to send traffic to a specific server in a pool. We have a wireless device application that will connect you up to a server in a pool behind a vip,...
Scott_Tennican_
Jun 22, 2005Historic F5 Account
Sorry to be confusing.
There are three different ways to solve your problem: a rule, a pool with a persist expression (universal persistence), a pool with a select expression. Because you have the IP address in the URI the select expression is the most efficient. However, I included a persist timeout for the persist expression in the my code example. This timeout is unnecessary because a select expression is not persistence and therefore does not create persistence sessions that need to be timed out. You can turn on one of the persistence modes at the same time as using a select expression but traffic would continue to be directed by the select expression.
Another important point, the third argument in the findstr function is the offset. Therefore, you need to use a 6 to jump over "bigip=":
node(findstr(http_uri, "bigip=", 6) + ":80")
Read the Reference Guide iRules section for more details.
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