High load into database #14859
Unanswered
bohdanmukovozov
asked this question in
Q&A
Replies: 1 comment 2 replies
-
This is How often is that executed? How many domains do you have? What form of traffic does your pdns receive? Please give more detail to work with. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are running PowerDNS on a FreeBSD 13.3 system with a MySQL backend. Occasionally, the server generates a high load on the MySQL database, primarily due to a specific query being executed repeatedly and excessively. The query in question is:
select domains.id, domains.name, records.content, domains.type, domains.master, domains.notified_serial, domains.last_check, domains.account, domains.catalog from domains LEFT JOIN records ON records.domain_id=domains.id AND records.type='SOA' AND records.name=domains.name WHERE records.disabled=0 OR 1;
Impacts DNS Server Performance:
• High database load results in slower responses from the PowerDNS server, degrading DNS query resolution times or causing timeouts.
I use this config for pdns:
PDNS version 4.9.1. Maybe you can give advise
Beta Was this translation helpful? Give feedback.
All reactions