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
}
...
Martin_Machacek
Sep 02, 2005Historic F5 Account
Mike,
a Rule by itself would never cause a delay in order of seconds. Application of a rule however makes your virtual server use so called "late binding", i.e. do TCP handshake on behalf of the server, accept enough data (in your case the request line) in order to make loadbalancing decision and only then establish connection to the server. So, the BIG-IP surely does more work, but the observer difference is in the order of 100 microseconds or miliseconds, not 10 seconds. I believe the root cause for the delay must be elsewhere. You need to collect packet captures both on client- and server-side and look what's going on. You should contact F5 support, if you cannot resolve the problem yourself.
Although the rule is almost certainly not causing your performance problems, it can be optimized (slightly) by using a class, like this:
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
}
}
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