Question: Caching #4002
-
Hey there, I don't know where else to ask this so yeah. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Please use Discussions section for such kind of questions. The primary purpose of the optimistic cache is to respond with expired cache entries while refreshing those in the background. Thus it should reduce the time spent on resolving responses on demand. However, it introduces the possibility of outdated response data if the actual DNS record at the upstream server has been updated. That is why such responses having a diminished TTL of 60 seconds. In general, optimistic caching feature doesn't increase the resources used since it works with the same storage the common cache works with. The number of cached DNS entries is controlled by the Cache size setting in DNS settings section. It's hard to tell how much entries are stored exactly since the size of cache is specified in bytes and cached DNS messages may vary by their size. However, the maximum length of a message is 65536 bytes, so the maximum number of such messages stored in cache of default size of 4194304 bytes is about 64. In real world this number is much larger though. |
Beta Was this translation helpful? Give feedback.
Please use Discussions section for such kind of questions.
The primary purpose of the optimistic cache is to respond with expired cache entries while refreshing those in the background. Thus it should reduce the time spent on resolving responses on demand. However, it introduces the possibility of outdated response data if the actual DNS record at the upstream server has been updated. That is why such responses having a diminished TTL of 60 seconds. In general, optimistic caching feature doesn't increase the resources used since it works with the same storage the common cache works with.
The number of cached DNS entries is controlled by the Cache size setting in DNS settings section. It's…