[dnsdist] not cached long TXT queries.
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() . 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.
PowerDNS.COM BV - https://www.powerdns.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 488 bytes
Desc: OpenPGP digital signature
More information about the dnsdist