Forum Discussion
Dave_24664
Nimbostratus
Dec 11, 2007problem with Eduardo Saito irule_limit_num_connections_googlebot
I am new.
I tried just cutting and pasting Eduardo Saito's winning iRule into my 6400, but I get an error:
Code is:
when RULE_INIT {
array set ::active_clients { }
}
when C...
hoolio
Cirrostratus
Dec 12, 2007I hadn't considered LTM caching with that rule. I haven't worked with caching events in iRules. I would assume you wouldn't want to limit requests which would be answered from cache as there isn't a resource hit on the web servers in the pool. If that's the case, you'd need to figure out if the request was going to be answered from cache and not increment the request counter or decrement it on the cache response event. Reading over the wiki pages (Click here and Click here), it isn't clear to me what triggers them.
Can anyone shed light on how the HTTP_REQUEST/HTTP_RESPONSE and CACHE_REQUEST/CACHE_RESPONSE events work together when you have caching enabled on the HTTP profile? I would assume the HTTP_REQUEST event is triggered first. Could you determine in the HTTP_REQUEST event whether the request will be answered from cache? If not, I would think you'd want to increment the request counter in HTTP_RESPONSE and decrement the counter in both CACHE_RESPONSE and HTTP_RESPONSE (assuming only one would possibly be called per request).
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