From fedb820a876d7ab7119baaefd76de82d2d3ddd25 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Tue, 19 Mar 2019 10:15:18 +0100 Subject: [PATCH] properly capitalise reusePort --- pdns/dnsdistdist/docs/advanced/tuning.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pdns/dnsdistdist/docs/advanced/tuning.rst b/pdns/dnsdistdist/docs/advanced/tuning.rst index e23bd77c6..4e9d28679 100644 --- a/pdns/dnsdistdist/docs/advanced/tuning.rst +++ b/pdns/dnsdistdist/docs/advanced/tuning.rst @@ -37,12 +37,12 @@ When Lua inspection is needed, the best course of action is to restrict the quer :program:`dnsdist` design choices mean that the processing of UDP queries is done by only one thread per local bind. This is great to keep lock contention to a low level, but might not be optimal for setups using a lot of processing power, caused for example by a large number of complicated rules. -To be able to use more CPU cores for UDP queries processing, it is possible to use the ``reuseport`` parameter of the :func:`addLocal` and :func:`setLocal` directives to be able to add several identical local binds to dnsdist:: +To be able to use more CPU cores for UDP queries processing, it is possible to use the ``reusePort`` parameter of the :func:`addLocal` and :func:`setLocal` directives to be able to add several identical local binds to dnsdist:: - addLocal("192.0.2.1:53", {reuseport=true}) - addLocal("192.0.2.1:53", {reuseport=true}) - addLocal("192.0.2.1:53", {reuseport=true}) - addLocal("192.0.2.1:53", {reuseport=true}) + addLocal("192.0.2.1:53", {reusePort=true}) + addLocal("192.0.2.1:53", {reusePort=true}) + addLocal("192.0.2.1:53", {reusePort=true}) + addLocal("192.0.2.1:53", {reusePort=true}) :program:`dnsdist` will then add four identical local binds as if they were different IPs or ports, start four threads to handle incoming queries and let the kernel load balance those randomly to the threads, thus using four CPU cores for rules processing. Note that this require ``SO_REUSEPORT`` support in the underlying operating system (added for example in Linux 3.9). -- 2.40.0