]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
doc: document cache garbage collector
authorTomas Krizek <tomas.krizek@nic.cz>
Thu, 13 Jun 2019 15:35:58 +0000 (17:35 +0200)
committerPetr Špaček <petr.spacek@nic.cz>
Wed, 3 Jul 2019 13:30:21 +0000 (15:30 +0200)
NEWS
daemon/README.rst

diff --git a/NEWS b/NEWS
index a086ad380aed1d3bb89e27eb7a0b87ea6f8a16f7..a4bc9e960aa932adeadf4ac1fc0dab37e9031b4a 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -14,14 +14,16 @@ Improvements
 - http module: also send intermediate TLS certificate to clients,
   if available and luaossl >= 20181207 (!819)
 - systemd: basic watchdog is now available and turned on by default (#275)
+- experimental cache garbage collector daemon is available (#257)
 
 Bugfixes
 --------
 - TCP to upstream: don't send wrong message length (unlikely, !816)
 - http module: fix problems around maintenance of ephemeral certs (!819)
+- http module: also send intermediate TLS certificate to clients,
+  if available and luaossl >= 20181207 (!819)
 - send EDNS with SERVFAILs, e.g. on validation failures (#180, !827)
 
-
 Knot Resolver 4.0.0 (2019-04-18)
 ================================
 
index a9e968a19c329f0c7f5930384699a4ac8b4abf69..9b179cd2af65df8cfa7033d9892e62b6b74ecd13 100644 (file)
@@ -613,6 +613,30 @@ For more details, see ``kresd.systemd(7)``.
 .. note:: On recent Linux supporting ``SO_REUSEPORT`` (since 3.9, backported to RHEL 2.6.32) it is also able to bind to the same endpoint and distribute the load between the forked processes. If your OS doesn't support it, use only one daemon process.
 
 
+Cache Garbage Collector
+=======================
+
+.. warning:: Garbage collector is experimental and subject to change in future
+   releases. This feature isn't currently turned on by default.
+
+By default, kresd uses the available cache until it's full. When more space is
+required, the entire cache is dropped. To avoid starting over with an empty
+cache, a separate garbage collector daemon is available to periodically trim
+the cache instead.
+
+The cache garbage collector daemon (``kr_cache_gc``) monitors the cache usage
+and attempts to free up space when a threshold is reached. To spawn the daemon
+and configure it to run every minute, use:
+
+.. code-block:: bash
+
+   $ kr_cache_gc -c /var/cache/knot-resolver -d 60000
+
+It's also possible to run this under systemd. However, a dedicated systemd unit
+is not currently part of the upstream package. See `message#167`_ on our
+mailing list for an example of such a unit file.
+
+
 Using CLI tools
 ===============
 
@@ -665,3 +689,4 @@ Code reference
 .. _`real process managers`: http://blog.crocodoc.com/post/48703468992/process-managers-the-good-the-bad-and-the-ugly
 .. _`socket activation`: http://0pointer.de/blog/projects/socket-activation.html
 .. _`dnsproxy module`: https://www.knot-dns.cz/docs/2.7/html/modules.html#dnsproxy-tiny-dns-proxy
+.. _`message#167`: https://lists.nic.cz/pipermail/knot-resolver-users/2019/000167.html