Forum Discussion
Carol_Williams_
Nimbostratus
Oct 28, 2009help optimize iRule
Could someone please help me. I have a redirect iRule that is slow. I need to make sure all images are 1 not going through my httpclass profile and 2 if they are coming from a list of BOTs going to ...
hoolio
Cirrostratus
Oct 28, 2009Hi Carol,
For your iRule...
when HTTP_REQUEST {
if { [matchclass [HTTP::uri] ends_with ::images] } {
if { [matchclass [HTTP::header User-Agent] contains ::robots] } {
pool MyBotPool
} else {
pool MyImagePool
}
HTTP::class disable
}
}
...the HTTP class selection is being disabled on every request. Is this what you intended?
Can you clarify what you are trying to use an HTTP class for? Also, which LTM version are you running?
When you say the iRule is slow under load, can you provide more detail? How are you quantifying the slowness? Is the slowness occurring for all requests from all User-Agents--or just specific clients or specific requests?
Are you seeing high TMM CPU utilization in tmstat output or the performance graphs? Do you think it's an LTM resource issue?
Aaron
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