]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Add `setTCPUseSinglePipe()` to use a single TCP waiting queue
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 23 Dec 2016 14:56:17 +0000 (15:56 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 20 Jan 2017 10:16:52 +0000 (11:16 +0100)
commitedbda1ad4966504a0acd9d07e41bbd363c795ee7
tree7c941a87b622e5c305b8875d177c71fd0e3071ac
parentc69c3e290de178f23496b1b85b9bcff153bf5d5a
dnsdist: Add `setTCPUseSinglePipe()` to use a single TCP waiting queue

By default, every TCP worker thread has its own queue, and incoming TCP
connections are dispatched to TCP workers on a round-robin basis. This might
cause issues if some connections are taking a very long time, since incoming
ones will be waiting until the TCP worker they have been assigned to has finished
handling its current query, while other TCP workers might be available.
This experimental `setTCPUseSinglePipe(true)` directive can be used so that all the
incoming TCP connections are put into a single queue and handled by the
first TCP worker available.
pdns/README-dnsdist.md
pdns/dnsdist-console.cc
pdns/dnsdist-lua.cc
pdns/dnsdist-lua2.cc
pdns/dnsdist-tcp.cc
pdns/dnsdist.cc
pdns/dnsdist.hh