etc/unbound: add cache.conf

This commit is contained in:
Aminda Suomalainen 2019-07-23 12:30:53 +03:00
parent 8b23fb142f
commit 2b8a460b63
No known key found for this signature in database
GPG Key ID: 0C207F07B2F32B67
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
# Increasing caching
# This has potential to increase memory usage to 100m under heavy usage, but
# I find that unlikely as almost everything is using so short TTLs and I am
# not enforcing higher minimum TTL (cache-min-ttl, defaults to 0).
# See also MEMORY CONTROL EXAMPLE in man unbound.conf
server:
# bytes in message cache, defaults to 4m
msg-cache-size: 50m
# bytes in rrset cache, defaults to 4m
rrset-cache-size: 50m