Options: prefetch and python module
Wouter Wijngaards
wouter at nlnetlabs.nl
Mon Nov 18 09:19:59 UTC 2019
Hi Eduard,
On 11/17/19 6:19 PM, Eduard Ahmatgareev via Unbound-users wrote:
> Hi all,
>
> I got a question regarding option: prefetch yes
> We use python module for add specific domain to pass the traffic over
> our servers. I found that option: prefetch was enabled in our infra, and
> from time to time we had an issue with rule inside firewall which was
> created over python module
> My question is:
> does python-module call when prefetch is enabled?
Yes, like normal. For the modules this is like a normal lookup. It
just happens earlier, and during cache storage special rules are used
for prefetch-storage while the old data is still in cache. The module
done event is also like normal, I think.
Best regards, Wouter
>
> from documentation I found:
>
> prefetch: /<yes/ /or/ /no>/
> If yes, message cache elements are prefetched before they expire
> to keep the cache up to date. Default is no. Turning it on
> gives about 10 percent more traffic and load on the machine, but
> popular items do not expire from the cache.
>
> and looks like in our configuration we have an issue with section:
> MODULE_EVENT_MODDONE which is not calls when prefetch enabled
>
>
> Is it true?
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.nlnetlabs.nl/pipermail/unbound-users/attachments/20191118/11ac1270/attachment.bin>
More information about the Unbound-users
mailing list