[dnsdist] not cached long TXT queries.

Remi Gacogne remi.gacogne at powerdns.com
Fri Feb 15 18:36:04 UTC 2019


On 2/15/19 5:39 PM, Nico wrote:
> If it helps, at the same time the metrics for "cache deferred lookups
> per poool" and "cache deferred
> inserts per pool"  incremented proportionally.

I think you have your answer right there, the contention between thread
is too high and by default dnsdist gives up if the cache is already
locked by another thread when it tries to access it.
I would suggest increasing the number of shards to a sensible value (try
50 for a start, for example), see the 'numberOfShards' parameter of
newPacketCache() [1]. You could also try to instruct dnsdist to wait for
the lock when it is trying to insert a new response, instead of giving
up, setting 'deferrableInsertLock' to false. But I'm pretty sure you
won't need it with enough shards.

[1]: https://dnsdist.org/reference/config.html#newPacketCache

Best regards,
Remi Gacogne
PowerDNS.COM BV - https://www.powerdns.com/

-------------- 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/20190215/5d4a0fe5/attachment.sig>

More information about the dnsdist mailing list