<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Constantia,'Hoefler Text',serif;" dir="ltr">
<p></p>
<pre class="tw-data-text tw-text-large XcVN5d tw-ta" data-placeholder="Traduction" id="tw-target-text" style="text-align:left" dir="ltr"><span lang="en">Hello
exactly Frank when we decrease the number of rules the CPU usage decreases</span></pre>
<p></p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div align="left"><br>
</div>
<div align="left">Regards<br>
</div>
<div align="left"><br>
</div>
<div align="left">
<div align="left">
<pre style="margin-top:14pt; margin-bottom:14pt"><br></pre>
</div>
</div>
</div>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>De :</b> dnsdist <dnsdist-bounces@mailman.powerdns.com> de la part de dnsdist-request@mailman.powerdns.com <dnsdist-request@mailman.powerdns.com><br>
<b>Envoyé :</b> jeudi 25 mars 2021 13:00<br>
<b>À :</b> dnsdist@mailman.powerdns.com<br>
<b>Objet :</b> dnsdist Digest, Vol 67, Issue 9</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Send dnsdist mailing list submissions to<br>
        dnsdist@mailman.powerdns.com<br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://mailman.powerdns.com/mailman/listinfo/dnsdist" id="LPlnk161031" previewremoved="true">
https://mailman.powerdns.com/mailman/listinfo/dnsdist</a><br>
or, via email, send a message with subject or body 'help' to<br>
        dnsdist-request@mailman.powerdns.com<br>
<br>
You can reach the person managing the list at<br>
        dnsdist-owner@mailman.powerdns.com<br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of dnsdist digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. CPU Usage Dnsdist (SAMI RAHAL)<br>
   2. Re: CPU Usage Dnsdist (frank+pdns@tembo.be)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 24 Mar 2021 17:35:41 +0000<br>
From: SAMI RAHAL <Sami.Rahal@topnetpro.tn><br>
To: "dnsdist@mailman.powerdns.com" <dnsdist@mailman.powerdns.com><br>
Subject: [dnsdist] CPU Usage Dnsdist<br>
Message-ID: <cf645240fc3c46c7a77044ead9f027a8@topnetpro.tn><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hello<br>
I am monitoring dnsdist in production with a metronome server and also the native tool accessible through the default web server on port 8083, I got the following values:<br>
Uptime: 2 hours, Number of queries: 86816060 (8060.00 qps), ACL drops: 0, Dynamic drops: 1639752, Rule drops: 4807<br>
Average response time: 4.35 ms, CPU Usage: 750.60%, Cache hitrate: 93.45%, Server selection policy: leastOutstanding<br>
I ask are these values in the norms?<br>
my config:<br>
OS: CentOS 7<br>
-RAM 16 G<br>
-grep -c ^ processor / proc / cpuinfo<br>
16<br>
-RAM used:<br>
949 M<br>
Is there a way to improve CPU usage value?<br>
<br>
<br>
Regards<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.powerdns.com/pipermail/dnsdist/attachments/20210324/e466ca95/attachment-0001.htm" id="LPlnk308033" previewremoved="true">http://mailman.powerdns.com/pipermail/dnsdist/attachments/20210324/e466ca95/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Wed, 24 Mar 2021 19:37:08 +0100<br>
From: frank+pdns@tembo.be<br>
To: SAMI RAHAL <Sami.Rahal@topnetpro.tn><br>
Cc: dnsdist mailing list <dnsdist@mailman.powerdns.com><br>
Subject: Re: [dnsdist] CPU Usage Dnsdist<br>
Message-ID: <9452B0CD-AB99-44B5-ADFB-FB711E041107@tembo.be><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
Hi,<br>
<br>
> On 24 Mar 2021, at 18:35, SAMI RAHAL via dnsdist <dnsdist@mailman.powerdns.com <<a href="mailto:dnsdist@mailman.powerdns.com">mailto:dnsdist@mailman.powerdns.com</a>>> wrote:<br>
> <br>
> Average response time: 4.35 ms, CPU Usage: 750.60%, Cache hitrate: 93.45%, Server selection policy: leastOutstanding<br>
> I ask are these values in the norms?<br>
> my config:<br>
> OS: CentOS 7<br>
> -RAM 16 G<br>
> -grep -c ^ processor / proc / cpuinfo<br>
> 16<br>
> -RAM used:<br>
> 949 M<br>
<br>
You would increase the cache size, as you're only using about 1GB of ram and have 16GB available. You also have 16 (v)cpus, but the CPU usage is under 800%. If I am not mistake, the CPU usage reported by dnsdist is "% of full utilisation of 1 cpu", so it should
 theoretically go up to 1600%.<br>
<br>
If you do want to reduce the CPU usage, you might want to experiment with simplifying your lua rules and see if that improves or not.<br>
<br>
Kind Regards,<br>
<br>
Frank<br>
<br>
Frank Louwers<br>
PowerDNS Certified Consultant @ Kiwazo.be<br>
<br>
<br>
<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.powerdns.com/pipermail/dnsdist/attachments/20210324/6e9662bc/attachment-0001.htm">http://mailman.powerdns.com/pipermail/dnsdist/attachments/20210324/6e9662bc/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
dnsdist mailing list<br>
dnsdist@mailman.powerdns.com<br>
<a href="https://mailman.powerdns.com/mailman/listinfo/dnsdist">https://mailman.powerdns.com/mailman/listinfo/dnsdist</a><br>
<br>
<br>
------------------------------<br>
<br>
End of dnsdist Digest, Vol 67, Issue 9<br>
**************************************<br>
</div>
</span></font></div>
</div>
</body>
</html>