Forum Discussion

Ben_Kennedy_502's avatar
Ben_Kennedy_502
Icon for Nimbostratus rankNimbostratus
Aug 23, 2013

Do RESOLV::lookup responses get cached?

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

  • 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" }