Skip to content

Cache - recordcache / packetcache (hit / misses) #15081

Closed Answered by paddg
vecinohk asked this question in Q&A
Discussion options

You must be logged in to vote

Should I try experimenting with different values like maxTTL / minTTL or are the default values ideal?

In general, the default values ​​are always a good choice, you should only change them if you know exactly what you are doing and the new values ​​are confirmed by tests.

pc = newPacketCache(10000, {maxTTL=86400, minTTL=0, temporaryFailureTTL=60, staleTTL=60, dontAge=false})
getPool(""):setCache(pc)

Limiting maxTTL is a good idea. This protects you from mistakes made by third parties. minTTL=0 is default, caching records with a short lifespan doesn't do much good, but it doesn't really do any harm either. temporaryFailureTTL relieves the processes, you have to weigh up the pros and …

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@paddg
Comment options

Answer selected by vecinohk
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants