Forum Discussion
Kim_Stephan_510
Nimbostratus
Nov 19, 2012URL to Node persistency
Hello,
I have to write some iRule for Customers and i'm not sure that i'm done correctly, but I can't test it.
Following situation:
Some Application-Servers (Nodes) do sent directly (bypass LT...
What_Lies_Bene1
Cirrostratus
Nov 19, 2012You can switch with the whole URL, use something like this instead;
when HTTP_REQUEST {
set clienturl [string tolower [HTTP::host]][string tolower [HTTP::uri]]
switch -glob $clienturl {
"*/application1*" { pool poolname member ip port }
"*application2*" { pool poolname member ip port }
default { pool some-pool-name }
}
}
I can rewrite the rule for that number no problem and I might have suggested a Data Group if there were a great number of URLs but 12 should be manageable, I might do it anyway as it reduces the risk of errors when updating the URLs.
A regex would be far more CPU intensive.
Before I do the final rewrite, can I just check, are all 12 URLs going to the same member?
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