Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dnsdist: Start all TCP worker threads on startup #9957

Merged
merged 5 commits into from Jan 19, 2021

Conversation

rgacogne
Copy link
Member

Short description

Instead of starting only as many TCP worker threads on startup as the number of TCP listeners, then starting more at runtime, start all TCP worker threads on startup.
Change the default number of worker threads to at least 10, up to the number of TCP listener threads.
Document that change and improve the tuning page a bit.

Checklist

I have:

  • read the CONTRIBUTING.md document
  • compiled this code
  • tested this code
  • included documentation (including possible behaviour changes)
  • documented the code
  • added or modified regression test(s)
  • added or modified unit test(s)

Instead of starting only as many TCP worker threads on startup as
the number of TCP listeners, then starting more at runtime, start
all TCP worker threads on startup.
Change the default number of worker threads to at least 10, up to
the number of TCP listener threads.
Document that change and improve the tuning page a bit.
pdns/dnsdist-tcp.cc Outdated Show resolved Hide resolved
rgacogne and others added 3 commits January 12, 2021 17:35
Co-authored-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
Otherwise the distribution of queries to the backends is very hard
to predict since every thread uses its own counter. We used to start
only one worker thread at startup, and did not send enough queries
to get additional workers fired up.
@rgacogne rgacogne merged commit 9cecfc0 into PowerDNS:master Jan 19, 2021
@rgacogne rgacogne deleted the ddist-tcp-worker-threads branch January 19, 2021 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants