-
Notifications
You must be signed in to change notification settings - Fork 23
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
Add performance settings to unbound.conf #87
Conversation
This makes sense, I also run this. for the performance optimizations:
for the auth zone:
For reference, below you'll find the auth-zone part of my conf file:
|
Thank you, good hint. |
The tests are passing (ignore the login failure). Can you please squash these 3 commits into one @hagezi ? Anything else you think we are missing here @churchofnoise ? |
The added settings increase the performance. I have tried a lot and these settings offer a significant improvement. Update unbound.conf Reduce cache size
@klutchell squashed ... |
Looks good! The only thing to consider is the hyperlocal zone (the part that @hagezi added in text, currently not in code yet), but that can be handled separately if you want. Your call to make. My point of view: with the additional configuration provided in this PR (especially the config of serve-expired), a big improvement will already be provided, so that's definitely worthwhile having in the default config. The auth-zone will in comparison have a minor impact, especially as (this is a quote of DL6ER, one of the Pi-Hole developers: https://discourse.pi-hole.net/t/hyperlocal-is-it-meaningful-to-hold-a-local-copy-of-the-root-zone/14462/12 ):
So, my advice (but once again, not my call to make) would be to add this to a custom conf file (specifically for this for instance), so that more advanced users can add it if they want. The 'less interested' ones won't care about the minimal benefit anyway, the more 'geeky' ones (I say this with the utmost respect, and count myself among them :) ) can do some more custom configuration if they want to add it, because of the further improvements or out of principle or ... |
Your feedback is invaluable @churchofnoise , I agree that we can put the hyperlocal auth zones in another PR as an optional default configuration override. |
The added settings increase the performance. I have tried a lot and these settings offer a significant improvement.
Another optimization would be:
#52
My Unbound conf: https://github.com/hagezi/files/blob/main/unbound/server.conf