From 2b8a460b63c96c86e13e5d2bd82c3a09829790a8 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Tue, 23 Jul 2019 12:30:53 +0300 Subject: [PATCH] etc/unbound: add cache.conf --- etc/unbound/unbound.conf.d/cache.conf | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 etc/unbound/unbound.conf.d/cache.conf diff --git a/etc/unbound/unbound.conf.d/cache.conf b/etc/unbound/unbound.conf.d/cache.conf new file mode 100644 index 00000000..6da912c0 --- /dev/null +++ b/etc/unbound/unbound.conf.d/cache.conf @@ -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