cancel
Showing results for 
Search instead for 
Did you mean: 
Login & Join the DevCentral Connects Group to watch the Recorded LiveStream (May 12) on Basic iControl Security - show notes included.

Do RESOLV::lookup responses get cached?

Ben_Kennedy_502
Nimbostratus
Nimbostratus

Hello,

 

I'm looking at an irule where I need to use RESOLV::lookup to determine the node for ongoing connections. My concern about this method is whether the lookup will be done every time the rule fires or whether it uses an internal cache in TMM until the TTL expires and a new lookup happens?

 

If it doesn't cache the result anywhere, I believe I could use a persistence uie table as a sort of cache, would there be any better ways of doing it?

 

Thanks

 

3 REPLIES 3

Kevin_Stewart
F5 Employee
F5 Employee

Refer to:

 

RESOLV::lookup wiki page

 

Note: The results for all query types should be cached according to the Time To Live on the response. Subsequent calls using RESOLV::lookup will use the cache

 

Ben_Kennedy_502
Nimbostratus
Nimbostratus

ah, thanks - I read that page a couple of times and didn't spot it! Thanks, Ben

 

nitass
F5 Employee
F5 Employee

just in case you have not seen the db variables.

 

[root@ve11a:Active:Changes Pending] config tmsh list sys db one-line |grep -i tmm.resolv sys db tmm.resolv.cachesize { value "8192" } sys db tmm.resolv.retry { value "3" } sys db tmm.resolv.timeout { value "5" }