]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Set setDynBlocksPurgeInterval()'s default to 60s
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 22 Apr 2021 08:13:32 +0000 (10:13 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 22 Apr 2021 08:13:32 +0000 (10:13 +0200)
pdns/dnsdistdist/dnsdist-dynblocks.cc
pdns/dnsdistdist/docs/reference/config.rst

index d689fdb3c44b1e456bf9b1dccf5053741fd670cc..ceb59ca77bb3410be3992ca8942c7f710f5a9f5a 100644 (file)
@@ -498,7 +498,7 @@ std::list<DynBlockMaintenance::MetricsSnapshot> DynBlockMaintenance::s_metricsDa
 std::map<std::string, std::list<std::pair<Netmask, unsigned int>>> DynBlockMaintenance::s_topNMGsByReason;
 std::map<std::string, std::list<std::pair<DNSName, unsigned int>>> DynBlockMaintenance::s_topSMTsByReason;
 size_t DynBlockMaintenance::s_topN{20};
-time_t DynBlockMaintenance::s_expiredDynBlocksPurgeInterval{300};
+time_t DynBlockMaintenance::s_expiredDynBlocksPurgeInterval{60};
 
 void DynBlockMaintenance::collectMetrics()
 {
index 10cb5f9827999ea67d6f9d44107735d3cbf90ae0..d454a4bd849e1731a7e1ddfd7cc0de0d00c43837 100644 (file)
@@ -1144,7 +1144,7 @@ Dynamic Blocks
   frees up the memory they use.
   Setting this value to 0 disable the purging mechanism, so entries will remain in the tree.
 
-  :param int sec: The interval between two runs of the cleaning algorithm, in seconds. Default is 300 (5 minutes), 0 means disabled.
+  :param int sec: The interval between two runs of the cleaning algorithm, in seconds. Default is 60 (1 minute), 0 means disabled.
 
 .. _exceedfuncs: