From 0f129b3e372f446330128a897abe0e7a957627d5 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Tue, 26 Mar 2019 15:18:34 +0100 Subject: [PATCH] dnsdist: Update the documentation for the new TCP stack --- pdns/dnsdistdist/docs/advanced/tuning.rst | 1 + pdns/dnsdistdist/docs/reference/tuning.rst | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pdns/dnsdistdist/docs/advanced/tuning.rst b/pdns/dnsdistdist/docs/advanced/tuning.rst index 4e9d28679..cf72ca7c5 100644 --- a/pdns/dnsdistdist/docs/advanced/tuning.rst +++ b/pdns/dnsdistdist/docs/advanced/tuning.rst @@ -15,6 +15,7 @@ First, a few words about :program:`dnsdist` architecture: The maximum number of threads in the TCP pool is controlled by the :func:`setMaxTCPClientThreads` directive, and defaults to 10. This number can be increased to handle a large number of simultaneous TCP connections. If all the TCP threads are busy, new TCP connections are queued while they wait to be picked up. +Before 1.4.0, a TCP thread could only handle a single incoming connection at a time. Starting with 1.4.0 the handling of TCP connections is now event-based, so a single TCP worker can handle a large number of TCP incoming connections simultaneously. The maximum number of queued connections can be configured with :func:`setMaxTCPQueuedConnections` and defaults to 1000. Any value larger than 0 will cause new connections to be dropped if there are already too many queued. diff --git a/pdns/dnsdistdist/docs/reference/tuning.rst b/pdns/dnsdistdist/docs/reference/tuning.rst index 54d568236..0f63a5145 100644 --- a/pdns/dnsdistdist/docs/reference/tuning.rst +++ b/pdns/dnsdistdist/docs/reference/tuning.rst @@ -3,7 +3,7 @@ Tuning related functions .. function:: setMaxTCPClientThreads(num) - Set the maximum of TCP client threads, handling TCP connections + Set the maximum of TCP client threads, handling TCP connections. Before 1.4.0 a TCP thread could only handle a single incoming TCP connection at a time, while after 1.4.0 it can handle a larger number of them simultaneously. :param int num: -- 2.49.0