mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-14 00:30:00 -04:00
2015. [cleanup] use-additional-cache is now acache-enable for
consistancy. Default acache-enable off in BIND 9.4
as it requires memory usage to be configured.
It may be enabled by default in BIND 9.5 once we
have more experience with it.
This commit is contained in:
parent
5f7ca73d88
commit
6412902ffc
5 changed files with 21 additions and 14 deletions
6
CHANGES
6
CHANGES
|
|
@ -1,3 +1,9 @@
|
|||
2015. [cleanup] use-additional-cache is now acache-enable for
|
||||
consistancy. Default acache-enable off in BIND 9.4
|
||||
as it requires memory usage to be configured.
|
||||
It may be enabled by default in BIND 9.5 once we
|
||||
have more experience with it.
|
||||
|
||||
2014. [func] Statistics about acache now recorded and sent
|
||||
to log. [RT #15976]
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: config.c,v 1.73 2006/03/09 23:21:53 marka Exp $ */
|
||||
/* $Id: config.c,v 1.74 2006/05/03 01:54:53 marka Exp $ */
|
||||
|
||||
/*! \file */
|
||||
|
||||
|
|
@ -132,7 +132,7 @@ options {\n\
|
|||
check-names slave warn;\n\
|
||||
check-names response ignore;\n\
|
||||
check-mx warn;\n\
|
||||
use-additional-cache true;\n\
|
||||
acache-enable no;\n\
|
||||
acache-cleaning-interval 60;\n\
|
||||
max-acache-size 0;\n\
|
||||
dnssec-enable yes;\n\
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: server.c,v 1.462 2006/03/09 23:39:00 marka Exp $ */
|
||||
/* $Id: server.c,v 1.463 2006/05/03 01:54:53 marka Exp $ */
|
||||
|
||||
/*! \file */
|
||||
|
||||
|
|
@ -968,11 +968,12 @@ configure_view(dns_view_t *view, const cfg_obj_t *config,
|
|||
|
||||
/*
|
||||
* Create additional cache for this view and zones under the view
|
||||
* unless explicitly disabled.
|
||||
* if explicitly enabled.
|
||||
* XXX950 default to on.
|
||||
*/
|
||||
obj = NULL;
|
||||
(void)ns_config_get(maps, "use-additional-cache", &obj);
|
||||
if (obj == NULL || cfg_obj_asboolean(obj)) {
|
||||
(void)ns_config_get(maps, "acache-enable", &obj);
|
||||
if (obj != NULL && cfg_obj_asboolean(obj)) {
|
||||
cmctx = NULL;
|
||||
CHECK(isc_mem_create(0, 0, &cmctx));
|
||||
CHECK(dns_acache_create(&view->acache, cmctx, ns_g_taskmgr,
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
- PERFORMANCE OF THIS SOFTWARE.
|
||||
-->
|
||||
|
||||
<!-- File: $Id: Bv9ARM-book.xml,v 1.299 2006/03/09 23:21:54 marka Exp $ -->
|
||||
<!-- File: $Id: Bv9ARM-book.xml,v 1.300 2006/05/03 01:54:54 marka Exp $ -->
|
||||
<book xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
<title>BIND 9 Administrator Reference Manual</title>
|
||||
|
||||
|
|
@ -4492,7 +4492,7 @@ category notify { null; };
|
|||
<optional> root-delegation-only <optional> exclude { <replaceable>namelist</replaceable> } </optional> ; </optional>
|
||||
<optional> querylog <replaceable>yes_or_no</replaceable> ; </optional>
|
||||
<optional> disable-algorithms <replaceable>domain</replaceable> { <replaceable>algorithm</replaceable>; <optional> <replaceable>algorithm</replaceable>; </optional> }; </optional>
|
||||
<optional> use-additional-cache <replaceable>yes_or_no</replaceable> ; </optional>
|
||||
<optional> acache-enable <replaceable>yes_or_no</replaceable> ; </optional>
|
||||
<optional> acache-cleaning-interval <replaceable>number</replaceable>; </optional>
|
||||
<optional> max-acache-size <replaceable>size_spec</replaceable> ; </optional>
|
||||
<optional> clients-per-query <replaceable>number</replaceable> ; </optional>
|
||||
|
|
@ -7508,7 +7508,7 @@ query-source-v6 address * port *;
|
|||
Thus, if the response performance does not matter and memory
|
||||
consumption is much more critical, the
|
||||
<command>acache</command> mechanism can be
|
||||
disabled by setting <command>use-additional-cache</command> to
|
||||
disabled by setting <command>acache-enable</command> to
|
||||
<command>no</command>.
|
||||
It is also possible to specify the upper limit of memory
|
||||
consumption
|
||||
|
|
@ -7540,11 +7540,11 @@ query-source-v6 address * port *;
|
|||
<variablelist>
|
||||
|
||||
<varlistentry>
|
||||
<term><command>use-additional-cache</command></term>
|
||||
<term><command>acache-enable</command></term>
|
||||
<listitem>
|
||||
<para>
|
||||
If <command>yes</command>, additional section caching is enabled.
|
||||
The default value is <command>yes</command>.
|
||||
If <command>yes</command>, additional section caching is
|
||||
enabled. The default value is <command>no</command>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: namedconf.c,v 1.68 2006/03/09 23:21:54 marka Exp $ */
|
||||
/* $Id: namedconf.c,v 1.69 2006/05/03 01:54:54 marka Exp $ */
|
||||
|
||||
/*! \file */
|
||||
|
||||
|
|
@ -774,7 +774,7 @@ view_clauses[] = {
|
|||
CFG_CLAUSEFLAG_MULTI },
|
||||
{ "dnssec-accept-expired", &cfg_type_boolean, 0 },
|
||||
{ "ixfr-from-differences", &cfg_type_ixfrdifftype, 0 },
|
||||
{ "use-additional-cache", &cfg_type_boolean, 0 },
|
||||
{ "acache-enable", &cfg_type_boolean, 0 },
|
||||
{ "acache-cleaning-interval", &cfg_type_uint32, 0 },
|
||||
{ "max-acache-size", &cfg_type_sizenodefault, 0 },
|
||||
{ "clients-per-query", &cfg_type_uint32, 0 },
|
||||
|
|
|
|||
Loading…
Reference in a new issue