[dnsdist] CPU Usage Dnsdist

SAMI RAHAL Sami.Rahal at topnetpro.tn
Thu Mar 25 19:14:16 UTC 2021


Hello
exactly Frank when we decrease the number of rules the CPU usage decreases

Regards




________________________________
De : dnsdist <dnsdist-bounces at mailman.powerdns.com> de la part de dnsdist-request at mailman.powerdns.com <dnsdist-request at mailman.powerdns.com>
Envoyé : jeudi 25 mars 2021 13:00
À : dnsdist at mailman.powerdns.com
Objet : dnsdist Digest, Vol 67, Issue 9

Send dnsdist mailing list submissions to
        dnsdist at mailman.powerdns.com

To subscribe or unsubscribe via the World Wide Web, visit
        https://mailman.powerdns.com/mailman/listinfo/dnsdist
or, via email, send a message with subject or body 'help' to
        dnsdist-request at mailman.powerdns.com

You can reach the person managing the list at
        dnsdist-owner at mailman.powerdns.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of dnsdist digest..."


Today's Topics:

   1. CPU Usage Dnsdist (SAMI RAHAL)
   2. Re: CPU Usage Dnsdist (frank+pdns at tembo.be)


----------------------------------------------------------------------

Message: 1
Date: Wed, 24 Mar 2021 17:35:41 +0000
From: SAMI RAHAL <Sami.Rahal at topnetpro.tn>
To: "dnsdist at mailman.powerdns.com" <dnsdist at mailman.powerdns.com>
Subject: [dnsdist] CPU Usage Dnsdist
Message-ID: <cf645240fc3c46c7a77044ead9f027a8 at topnetpro.tn>
Content-Type: text/plain; charset="iso-8859-1"

Hello
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:
Uptime: 2 hours, Number of queries: 86816060 (8060.00 qps), ACL drops: 0, Dynamic drops: 1639752, Rule drops: 4807
Average response time: 4.35 ms, CPU Usage: 750.60%, Cache hitrate: 93.45%, Server selection policy: leastOutstanding
I ask are these values in the norms?
my config:
OS: CentOS 7
-RAM 16 G
-grep -c ^ processor / proc / cpuinfo
16
-RAM used:
949 M
Is there a way to improve CPU usage value?


Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/dnsdist/attachments/20210324/e466ca95/attachment-0001.htm>

------------------------------

Message: 2
Date: Wed, 24 Mar 2021 19:37:08 +0100
From: frank+pdns at tembo.be
To: SAMI RAHAL <Sami.Rahal at topnetpro.tn>
Cc: dnsdist mailing list <dnsdist at mailman.powerdns.com>
Subject: Re: [dnsdist] CPU Usage Dnsdist
Message-ID: <9452B0CD-AB99-44B5-ADFB-FB711E041107 at tembo.be>
Content-Type: text/plain; charset="us-ascii"

Hi,

> On 24 Mar 2021, at 18:35, SAMI RAHAL via dnsdist <dnsdist at mailman.powerdns.com <mailto:dnsdist at mailman.powerdns.com>> wrote:
>
> Average response time: 4.35 ms, CPU Usage: 750.60%, Cache hitrate: 93.45%, Server selection policy: leastOutstanding
> I ask are these values in the norms?
> my config:
> OS: CentOS 7
> -RAM 16 G
> -grep -c ^ processor / proc / cpuinfo
> 16
> -RAM used:
> 949 M

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%.

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.

Kind Regards,

Frank

Frank Louwers
PowerDNS Certified Consultant @ Kiwazo.be




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/dnsdist/attachments/20210324/6e9662bc/attachment-0001.htm>

------------------------------

Subject: Digest Footer

_______________________________________________
dnsdist mailing list
dnsdist at mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/dnsdist


------------------------------

End of dnsdist Digest, Vol 67, Issue 9
**************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/dnsdist/attachments/20210325/54b87818/attachment.htm>


More information about the dnsdist mailing list