dnsdist: is my usage of newServer() correct or there is a better way? #13933
-
Hi! I have a pdns-recursor in recursion only mode, it runs with next config (I have cpu 16 threads): tcp-threads=15
threads=15 As facade for it I have running dnsdist with config: for i=1,15 do
addDOHLocal()
addDOH3Local()
addTLSLocal()
addDOQLocal()
# the questions about this downstream:
newServer({address="127.0.0.1:5353"})
end Is this Sorry if the question is silly, I'm not a clever man. And do you plan to support downstream Thank you in advance! P.S. Many thanks for contributors for such a great services created! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
It depends on how many CPU cores you want to dedicate to
If there is actual interest, yes. We have not seen a lot of interest so far, and if I have to guess I suspect people will be more interested in support for outgoing DoH3 than for outgoing DoQ, but I might very well be wrong. |
Beta Was this translation helpful? Give feedback.
-
Many thanks for your answer! Maybe it is not related to dnsdist (but to Linux itself), but I want to ask you one more question if you don't mind: In general, I want to utilize all my CPU for dnsdist How much good dnsdist works in HT, so let's say I have 8 physical core and 16 with HT. Thank you! |
Beta Was this translation helpful? Give feedback.
-
No needs to answer, I've read documentation. |
Beta Was this translation helpful? Give feedback.
It depends on how many CPU cores you want to dedicate to
DNSdist
, mostly. Every singlenewServer
directive will start a new thread to deal with the responses from the Recursor, so starting 15 of them can use up to 15 CPU cores. For each directive there is only one socket between dnsdist and the recursor (so one<destination address, destination port, source address, source port>
tuple).If you instead use one
newServer
withsockets=16
, for example, it will start only one thread to deal with incoming responses, but it will use 16 sockets between dnsdist and the Recursor. Increasing the number of sockets might make sense if you are enablingreuseport
in the recursor configuration, because L…