-
-
Notifications
You must be signed in to change notification settings - Fork 358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unbound Serve expired; cache hit rate reducing with time #1115
Comments
If this is using cachemiss or cachehits to measure it, it turns out that the code counts serve expired refresh attempts as a cachemiss. So the cachemiss counter is increased when a query comes in and gets an expired answer and then recursion takes place to refresh the data item. The counter for the number of expired answers is incremented as well. So perhaps the measurement reading is due to the statistic counters, not really the server response behaviour itself. |
[ Edited the issue post to put the config in a code block, that shows the commented out entries with |
@wcawijngaards thanks |
That would need a test to see if there is an expired answer at that time. That there is a recursion to refresh is not so much the problem, I would think. If the cache size was too small, also expired answers from cache could fail. |
i see the total entries cached and the total memory cache values have remained the same with time too |
Hi, Adding support for this as per conversations on the email lists. From our experience it appears that the forwarder/recurse/prefetch logic paths are able to poison cache records with negative responses. We are looking for configuration options to configure Unbound to never cache negative responses. We are aware you can limit the ttl of negative caches, which provides some of this. However poisoning the cache works against the serve-stale and RFC 8767 goodness. Will try and post some explicit examples to reproduce when I find time. Thanks again for all the great work :) |
Unbound generates negative responses from cache, using |
Hi
I have installed unbound version: 1.20.0 on a FreeBSD 14 server. This was working fine until the server lost internet connectivity to the upstream internet provider. Prior to this the average cache hit rate on the server was 99.0% with only 1% recursive replies.
Part of my unbound.conf file is shown below
After loss of internet average cache hit rate has reduced to 14% whiles recursive queries is showing 86% (still internet is not restored)
My expectation is
Caching server should continue to serve expired and keep the cache hit rate high because the serve-expired-ttl is default
(meaning it should continue serving cached content until upstream is restored).
My observation is the opposite. Is there anything I am missing? How can i ensure that the caching server will continue serving cache data several days after upstream
internet is lost
Regards
Isaac
The text was updated successfully, but these errors were encountered: