Skip to content

Commit

Permalink
rename option, default to off
Browse files Browse the repository at this point in the history
  • Loading branch information
Habbie committed Aug 19, 2020
1 parent 8858b82 commit 58f650b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
32 changes: 16 additions & 16 deletions docs/settings.rst
Expand Up @@ -111,22 +111,6 @@ When notifying a domain, also notify these nameservers. Example:
``also-notify`` always receive a notification. Even if they do not match
the list in :ref:`setting-only-notify`.

.. _setting-any-lookups-only:

``any-lookups-only``
--------------------

- Boolean
- Default: yes

.. versionadded:: 4.4.0

Whether PowerDNS will only send ANY lookups to its backends, instead of sometimes requesting the exact needed type.
This reduces the load on backends by retrieving all the types for a given name at once, adding all of them to the cache.
It improves performance significantly for latency-sensitive backends, like SQL ones, where a round-trip takes serious time.
This behaviour is enabled by default but can be disabled by setting this option to "no" for the few multi-backends setups
that do not support it.

.. _setting-any-to-tcp:

``any-to-tcp``
Expand Down Expand Up @@ -318,6 +302,22 @@ compile-time.
Name of this virtual configuration - will rename the binary image. See
:doc:`guides/virtual-instances`.

.. _setting-consistent-backends:

``consistent-backends``
--------------------

- Boolean
- Default: no

.. versionadded:: 4.4.0

When this is set, PowerDNS assumes that any single domain lives in only one backend.
This allows PowerDNS to send ANY lookups to its backends, instead of sometimes requesting the exact needed type.
This reduces the load on backends by retrieving all the types for a given name at once, adding all of them to the cache.
It improves performance significantly for latency-sensitive backends, like SQL ones, where a round-trip takes serious time.
This behaviour will be enabled by default in a future release.

.. _setting-control-console:

``control-console``
Expand Down
2 changes: 1 addition & 1 deletion pdns/common_startup.cc
Expand Up @@ -235,7 +235,7 @@ void declareArguments()

::arg().set("max-generate-steps", "Maximum number of $GENERATE steps when loading a zone from a file")="0";

::arg().set("any-lookups-only", "Send only ANY lookup operations to the backend to reduce the number of lookups")="yes";
::arg().set("consistent-backends", "Assume individual domains are not divided over backends. Send only ANY lookup operations to the backend to reduce the number of lookups")="yes";

::arg().set("rng", "Specify the random number generator to use. Valid values are auto,sodium,openssl,getrandom,arc4random,urandom.")="auto";
::arg().setDefaults();
Expand Down
2 changes: 1 addition & 1 deletion pdns/pdnsutil.cc
Expand Up @@ -124,7 +124,7 @@ static void loadMainConfig(const std::string& configdir)
::arg().set("chroot","Switch to this chroot jail")="";
::arg().set("dnssec-key-cache-ttl","Seconds to cache DNSSEC keys from the database")="30";
::arg().set("domain-metadata-cache-ttl","Seconds to cache domain metadata from the database")="60";
::arg().set("any-lookups-only","Send only ANY lookup operations to the backend to reduce the number of lookups")="yes";
::arg().set("consistent-backends", "Assume individual domains are not divided over backends. Send only ANY lookup operations to the backend to reduce the number of lookups")="yes";

// Keep this line below all ::arg().set() statements
if (! ::arg().laxFile(configname.c_str()))
Expand Down
2 changes: 1 addition & 1 deletion pdns/ueberbackend.cc
Expand Up @@ -99,7 +99,7 @@ void UeberBackend::go(void)
S.declare("backend-queries", "Number of queries sent to the backend(s)");
s_backendQueries = S.getPointer("backend-queries");

if (::arg().mustDo("any-lookups-only")) {
if (::arg().mustDo("consistent-backends")) {
s_doANYLookupsOnly = true;
}

Expand Down

0 comments on commit 58f650b

Please sign in to comment.