Forum Discussion
Mike_Pones_6391
Nimbostratus
Sep 02, 2005Performance Using a Rule
Here is the rule I have setup:
if (http_uri contains "testing") {
redirect to "https://%h/%u"
}
else if (http_uri contains "test2") {
use pool Test-Pool1
}
else if (http_uri contains "test3") {
use pool Test-Pool1
}
else {
use pool Prod-Pool
}
If I hit a URL that will fall all the way through the rule and get forwarded to the "Prod-Pool" I am seeing about 10 second difference in response time than if I hit another Virtual Server pointing directly to the "Prod-Pool". So I am confident it is not the server, is it possable that it takes that long to get through the rule? Is there a way to optimize this rule since the 2nd and 3rd if statement go to the same pool (Test-Pool1). Or can only one session use the rule at a time.
I am totally stumped on this one.
Thanks
Mike
- Martin_MachacekHistoric F5 AccountMike,
class test { "test2" "test3" } rule test_redir { if(http_uri contains "testing") { redirect to "https://%h/%u" } else if(http_uri contains one of test) { use pool Test-Pool1 } else { use pool Prod-Pool } }
- Mike_Pones_6391
Nimbostratus
mmac, - Mike_Pones_6391
Nimbostratus
Colin, I relized that after I posted my reply. LOL I really did not think the rule was causing the slowness, but I had to ask.
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