Dayton_Gray_103
Aug 21, 2006Nimbostratus
Help with optimization of this iRule
I have been asked by F5 to post this iRule to see if there are any ways to optimize it as to lower the total CPU usage on the machine. This rule seems pretty straight-forward, but I'm open to suggestions.
Thanks in advance!
when HTTP_REQUEST {
if { (
([HTTP::header User-Agent] matches_regex ".*(\[sS\]lurp|msnbot|\[Ff\]\[Aa\]\[Ss\]\[Tt\]-|/\[Tt\]eoma).*")
or ([HTTP::header User-Agent] matches_regex ".*(\[Gg\]ooglebot/).*")
)
and ([HTTP::header host] eq "www.demodomain.com")
} {
use pool bots.80
}
else {
use pool demo_192.168.1.195.80
}
}