pdns icon indicating copy to clipboard operation
pdns copied to clipboard

dnsdist: add support for specifying multiple names to expungeByName

Open cbay opened this issue 7 years ago • 3 comments

  • Program: dnsdist
  • Issue type: Feature request

If you need to purge multiple (unrelated) names, the only solution is to call expungeByName for each name. expungeByName iterates over each cache entry, so if you have a large cache (several millions entries in my case), this is highly inefficient, as each call to expungeByName will iterate the whole cache again.

In my use case, purging a hundred entries will typically take dozens of seconds where dnsdist uses 100% CPU.

cbay avatar Nov 07 '18 09:11 cbay

Looks like this feature didn't got the attention, I guess hopes of this happening is kind of low, right?

Algirdas-Z avatar Jul 17 '23 11:07 Algirdas-Z

It mostly depends on whether someone cares about it enough to actually write the code, at this point :)

rgacogne avatar Jul 17 '23 14:07 rgacogne

I'm going to postpone this once more. I have been thinking about a different packet-cache design for 1.10 that would make this kind of operation much cheaper anyway.

rgacogne avatar Nov 16 '23 10:11 rgacogne