summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorTomas Krizek <tomas.krizek@nic.cz>2020-01-28 15:38:37 +0100
committerVladimír Čunát <vladimir.cunat@nic.cz>2020-01-29 11:32:17 +0100
commitdbbb0b73eae4aff8b4acc4e40753eab84fb52180 (patch)
tree6cb218a61841f9deec40eeb502b9df0319bd8ca3 /etc
parentcache: Add cache.fssize() - filesystem size where the cache resides (diff)
downloadknot-resolver-dbbb0b73eae4aff8b4acc4e40753eab84fb52180.tar.xz
knot-resolver-dbbb0b73eae4aff8b4acc4e40753eab84fb52180.zip
doc/cache: add note explaining cache size choice
Diffstat (limited to 'etc')
-rw-r--r--etc/config/config.cluster6
-rw-r--r--etc/config/config.isp4
-rw-r--r--etc/config/config.splitview4
3 files changed, 4 insertions, 10 deletions
diff --git a/etc/config/config.cluster b/etc/config/config.cluster
index 1fbc0b84..d8c6c702 100644
--- a/etc/config/config.cluster
+++ b/etc/config/config.cluster
@@ -11,10 +11,8 @@ net.listen('::1', 53, { kind = 'dns'})
net.listen('127.0.0.1', 853, { kind = 'tls' })
net.listen('::1', 853, { kind = 'tls' })
--- Large cache size, so we don't need to flush ever
--- This can be larger than available RAM, least frequently accessed
--- records will be paged out as long as there's enough disk space to back it
-cache.size = 100 * GB
+-- Refer to manual for optimal cache size
+cache.size = 16 * GB
-- Load Useful modules
modules = {
diff --git a/etc/config/config.isp b/etc/config/config.isp
index bf9d65c8..7d00131b 100644
--- a/etc/config/config.isp
+++ b/etc/config/config.isp
@@ -8,9 +8,7 @@ net.listen('::1', 53, { kind = 'dns'})
net.listen('127.0.0.1', 853, { kind = 'tls' })
net.listen('::1', 853, { kind = 'tls' })
--- Large cache size, so we don't need to flush often
--- This can be larger than available RAM, least frequently accessed
--- records will be paged out
+-- Refer to manual for optimal cache size
cache.size = 4 * GB
-- load modules
diff --git a/etc/config/config.splitview b/etc/config/config.splitview
index 04b47edb..f2b7cd05 100644
--- a/etc/config/config.splitview
+++ b/etc/config/config.splitview
@@ -22,9 +22,7 @@ modules = {
dns64 = 'fe80::21b:77ff:0:0',
}
--- Large cache size, so we don't need to flush often
--- This can be larger than available RAM, least frequently accessed
--- records will be paged out
+-- Refer to manual for optimal cache size
cache.size = 4 * GB
-- Forward everything below `company.cz` to `192.168.1.3`