]> granicus.if.org Git - pdns/commit
dnsdist: Use LRU to clean the MaxQPSIPRule's store
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 11 Jun 2018 12:22:25 +0000 (14:22 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 22 Jun 2018 08:10:41 +0000 (10:10 +0200)
commit05f4003d5690026a077aa10e3037f0c941abc046
tree8d1b709909bde2d54b77c18e61cb8e6b5aae4180
parent5f2e235c401a0dee8d18baf025e514ec0833bbaf
dnsdist: Use LRU to clean the MaxQPSIPRule's store

This makes it possible to remove expired entries from the store
without having to scan more than a fraction of it. Entries are
ordered by their last usage, with least recently used ones at
the front, so we can stop scanning as soon as we find an entry
still valid. Even so, we will only consider a fraction of the
store during each pass to keep the cleaning fast, even with a
large store.
pdns/dnsdist-lua-rules.cc
pdns/dnsdistdist/Makefile.am
pdns/dnsdistdist/cachecleaner.hh [new symlink]
pdns/dnsdistdist/dnsdist-rules.hh
pdns/dnsdistdist/docs/rules-actions.rst
pdns/dnsdistdist/test-dnsdistrules_cc.cc [new file with mode: 0644]