Feature #6230
closedIncrease Unbound Host Cache
0%
Description
Versions 2.* have a drop-down option under DNS Resolver -> Advanced:
"Number of Hosts to cache"
The maximum number of hosts presented is 50,000. This value is updated in /var/unbound/unbound.conf:
infra-cache-numhosts: 50000
Several of our servers appear to be exceeding this:
msg.cache.count=96942
The server referenced above is an R320 with a 10gig NIC. It frequently passes over 1Gb of traffic with several thousand clients.
Additionally, several tuning guides recommend increasing this value to 100,000. Here is one of them:
https://calomel.org/unbound_dns.html
Rather than hacking something outside of the webGUI I feel it'd be of value to add 100,000 as an option in the drop-down.
Updated by Phillip Davis over 8 years ago
It is very easy to add 100,000 as an option.
PR https://github.com/pfsense/pfsense/pull/2897
Updated by Chris Buechler over 8 years ago
- Category set to DNS Resolver
- Status changed from New to Resolved
- Assignee set to Chris Buechler
- Target version set to 2.3.1
Thanks Phil, merged. While we're at it, I added 200000 to the list as well.
Updated by Phillip Davis over 8 years ago
The code here (and in other places around the system) has lots of repeated stuff (e.g. that array of known values appears the same 3 times), which is a recipe for maintenance errors. One day (not for this feature) all that should be cleaned up, defining constant objects somewhere central that can be referenced by anything that needs them (display code, validation code, implementation code...).