Forum Discussion
Puli
Dec 13, 2011Nimbostratus
performance and impact of STREAM Expression
We created a new iRule, which will replace links from one doamin to another in page content.
Below is the iRule
if {[HTTP::header vaule Content-Type] contains "text"}{
STREAM:...
hooleylist
Dec 13, 2011Cirrostratus
Hi Puli,
I haven't done or seen any stream specific performance testing. I've implemented it at a number of customer sites though. I wouldn't add the iRule to a unit which is already at 80 or 90%. But I'd be confident in using it on a lower unit with lower utilization.
Make sure to disable the stream filter in HTTP_REQUEST in your rule though:
when HTTP_REQUEST {
Disable the stream filter by default on all requests
STREAM::disable
}
when HTTP_RESPONSE {
Check if response is text
if {[HTTP::header value Content-Type] contains "text"}{
Set expression to find/replace and enable the stream filter
STREAM::expression {@http://domainA@http://domainB@}
STREAM::enable
}
}
If you want to get estimates before putting it into production, you could enable timing on the iRule and test it on a test virtual server or test LTM:
http://devcentral.f5.com/wiki/iRules.timing.ashx
Aaron
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