These are chat archives for CZ-NIC/knot-resolver

6th
Mar 2018
Daniel Aleksandersen
@da2x
Mar 06 2018 10:50
Hi. v2.1.1.Is cache.stats() supposed to work? or rather, how is it supposed to work? It just shows me zero-values.
Vladimír Čunát
@vcunat
Mar 06 2018 10:50
@da2x: it's broken.
Daniel Aleksandersen
@da2x
Mar 06 2018 10:51
@vcunat, in a perfect world where it worked. What would the values represent? The documentation is somewhat unclear on this.
Vladimír Čunát
@vcunat
Mar 06 2018 10:52
I'm just thinking of that :-) It isn't very clear what meaning to choose.
Daniel Aleksandersen
@da2x
Mar 06 2018 10:53
cache.stats().hit: Absolute number of cache hits? Cache hit ratio? or something else?
Vladimír Čunát
@vcunat
Mar 06 2018 10:54
Number of hits. That is clear to me.
But not what exactly to count as "hits".
Number of queries fully answered from cache, probably.
Daniel Aleksandersen
@da2x
Mar 06 2018 10:55
OK, thanks for the information, @vcunat.
Daniel Aleksandersen
@da2x
Mar 06 2018 13:45
Why aren’t the man pages included on Read the Docs? kresd.systemd.7 contains a lot of useful information that should also be available online.
Vladimír Čunát
@vcunat
Mar 06 2018 14:00
It's about integration into OS. That's not necessarily the same everywhere (in every package/distribution), so I would be careful about that.
Robert Šefr
@robcza
Mar 06 2018 14:45
Are the daf rules shared among the processes? if I execute multiple forks balancing the traffic through SO_REUSEPORT do I have to manage the daf rules on every process separately or just on one of them?
Vladimír Čunát
@vcunat
Mar 06 2018 14:46
@robcza: each process acts separate, except for cache.
If you start them via the -f N parameter, there's also the map command that you can use on the first process to execute a command on all of them.
Robert Šefr
@robcza
Mar 06 2018 14:49
@vcunat that is the magic I was looking for :) thank you
Petr Špaček
@pspacek
Mar 06 2018 15:42
@robcza Beware that map works only if you started the processes using -f, not when you use systemd to spawn more processes.
Ad man pages: E.g. Debian ships patched man pages so it would be really misleading.