]> granicus.if.org Git - pdns/commitdiff
set a sane default for the maximum cache size in the recursor, suggested by Roel...
authorBert Hubert <bert.hubert@netherlabs.nl>
Tue, 14 Apr 2009 21:20:43 +0000 (21:20 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Tue, 14 Apr 2009 21:20:43 +0000 (21:20 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1354 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/pdns_recursor.cc

index 949e275036875c2f6bc9f1ada1836423ae4ddfd5..59c6e80b608d1f3cab6a67d95332784a36cb5ddd 100644 (file)
@@ -2018,7 +2018,7 @@ int main(int argc, char **argv)
     ::arg().set("client-tcp-timeout","Timeout in seconds when talking to TCP clients")="2";
     ::arg().set("max-tcp-clients","Maximum number of simultaneous TCP clients")="128";
     ::arg().set("hint-file", "If set, load root hints from this file")="";
-    ::arg().set("max-cache-entries", "If set, maximum number of entries in the main cache")="0";
+    ::arg().set("max-cache-entries", "If set, maximum number of entries in the main cache")="1000000";
     ::arg().set("max-negative-ttl", "maximum number of seconds to keep a negative cached entry in memory")="3600";
     ::arg().set("server-id", "Returned when queried for 'server.id' TXT or NSID, defaults to hostname")="";
     ::arg().set("remotes-ringbuffer-entries", "maximum number of packets to store statistics for")="0";