[dnsdist] Packetcache expiring

Remi Gacogne remi.gacogne at powerdns.com
Fri Mar 9 08:51:12 UTC 2018


On 03/08/2018 07:08 PM, Nemanja Zeljkovic wrote:
> I think I narrowed this down to cache cleanup. Specifically:
> https://github.com/PowerDNS/pdns/blob/master/pdns/dnsdist.cc#L1713
> 
> default is 60, my TTL was 60 so that’s why I got about two minutes of
> “availability”. Setting setCacheCleaningPercentage to 0 seems to do what
> I want, however that would mean cache will not get expunged at all. Does
> this have some negative side effects? i.e if we hit the limit, and new
> query needs to go in, what will happen?

Yes, it would mean that:

- once the cache is full, no new answer can be cached, ever ;
- the cache would continue to serve cached answers indefinitely, even if
they change upstream.

I don't understand what you are trying to achieve here, would you mind
telling us a bit more about what your goals are? Why would you want to
keep answers cached for longer than their TTL?

Regards,

Remi

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.powerdns.com/pipermail/dnsdist/attachments/20180309/7652cc4d/attachment.sig>


More information about the dnsdist mailing list