bind9/bin/named
Michał Kępień 9ac1f6a9bc Add "-T maxcachesize=..." command line option
An implicit default of "max-cache-size 90%;" may cause memory use issues
on hosts which run numerous named instances in parallel (e.g. GitLab CI
runners) due to the cache RBT hash table now being pre-allocated [1] at
startup.  Add a new command line option, "-T maxcachesize=...", to allow
the default value of "max-cache-size" to be overridden at runtime.  When
this new option is in effect, it overrides any other "max-cache-size"
setting in the configuration, either implicit or explicit.  This
approach was chosen because it is arguably the simplest one to
implement.

The following alternative approaches to solving this problem were
considered and ultimately rejected (after it was decided they were not
worth the extra code complexity):

  - adding the same command line option, but making explicit
    configuration statements have priority over it,

  - adding a build-time option that allows the implicit default of
    "max-cache-size 90%;" to be overridden.

[1] see commit e24bc324b4
2020-08-31 13:15:33 +02:00
..
include Add "-T maxcachesize=..." command line option 2020-08-31 13:15:33 +02:00
unix Resize unamebuf[] to avoid warnings about snprintf() not having 2020-06-24 23:21:36 +00:00
win32 report libuv version string in named -V 2020-07-28 02:41:39 +00:00
.gitignore Complete rewrite the BIND 9 build system 2020-04-21 14:19:48 +02:00
bind9.xsl Add the zone timers to the XSL 2020-05-12 08:48:01 +02:00
builtin.c Complete rewrite the BIND 9 build system 2020-04-21 14:19:48 +02:00
config.c Add stale-cache-enable option and disable serve-stable by default 2020-08-04 10:50:31 +02:00
control.c Implement dummy 'rndc dnssec -status' command 2020-06-30 09:51:04 +02:00
controlconf.c purge pending command events when shutting down 2020-07-13 13:17:08 -07:00
fuzz.c Use the new sorting rules to regroup #include headers 2020-03-09 16:19:22 +01:00
geoip.c apply the modified style 2020-02-13 15:05:06 -08:00
log.c Refactor the isc_log API so it cannot fail on memory failures 2020-03-18 09:05:59 +01:00
logconf.c Refactor the isc_log API so it cannot fail on memory failures 2020-03-18 09:05:59 +01:00
main.c Add "-T maxcachesize=..." command line option 2020-08-31 13:15:33 +02:00
Makefile.am report libuv version string in named -V 2020-07-28 02:41:39 +00:00
named.conf.rst Make 'parent-registration-delay' obsolete 2020-08-07 11:26:09 +02:00
named.rst Text edits to manual paages 2020-07-02 10:35:58 +02:00
server.c Add "-T maxcachesize=..." command line option 2020-08-31 13:15:33 +02:00
statschannel.c rewrite statschannel to use netmgr 2020-07-15 22:35:07 -07:00
tkeyconf.c Use the new sorting rules to regroup #include headers 2020-03-09 16:19:22 +01:00
tsigconf.c apply the modified style 2020-02-13 15:05:06 -08:00
xsl_p.h Complete rewrite the BIND 9 build system 2020-04-21 14:19:48 +02:00
zoneconf.c Update-policy 'subdomain' was incorrectly treated as 'zonesub' 2020-08-05 15:54:50 +02:00