Hello Remi

yes it's weird, because in the web interface it says that the cache is working, 
here is my configuration




-- == Generic Configuration ==
setACL("0.0.0.0/0")
-- https://dnsdist.org/guides/console.html
controlSocket("127.0.0.1")
-- setKey("please generate a fresh private key with makeKey()")
addLocal("IPServer:53")
setLocal("0.0.0.0:53")

-----------------  Mes serveurs ------------------------
newServer({name="unbound",pool="resolverTopnet", address="IPserver1", qps=2000, 
order=1})
newServer({name="pdns-recursor",pool="resolverTopnet", address="IPserver2", 
order=2})

-------------------------------------------------------cache 
-----------------------
setPoolServerPolicy(leastOutstanding, "resolverTopnet")
pc = newPacketCache(2000000, {maxTTL=43200, minTTL=0,temporaryFailureTTL=60, 
staleTTL=60, dontAge=false})
getPool("resolverTopnet"):setCache(pc)
addAction(AllRule(), PoolAction("resolverTopnet"))
-----------------------------------------------Begin security rule 
------------------------------------------
local dbr = dynBlockRulesGroup()
dbr:setQueryRate(250, 10, "Exceeded query rate", 20)
dbr:setRCodeRate(DNSRCode.NXDOMAIN, 20, 10, "Exceeded NXD rate", 60)
dbr:setRCodeRate(DNSRCode.SERVFAIL, 20, 10, "Exceeded ServFail rate", 60)
dbr:setQTypeRate(DNSQType.ANY, 5, 10, "Exceeded ANY rate", 180)
--dbr:setResponseByteRate(1000, 10, "Exceeded resp BW rate", 60)

function maintenance()
  dbr:apply()
end
addAction(MaxQPSIPRule(100), DropAction())
addAction(MaxQPSIPRule(50, 24, 64), DropAction())
addAction({"nl.", "be."}, QPSAction(1))
---------------------------------------------------End security 
rule--------------------------

Regards


________________________________
De : Pdns-users <pdns-users-boun...@mailman.powerdns.com> de la part de 
pdns-users-requ...@mailman.powerdns.com 
<pdns-users-requ...@mailman.powerdns.com>
Envoyé : lundi 12 septembre 2022 14:00
À : pdns-users@mailman.powerdns.com
Objet : [EXTERNE]Pdns-users Digest, Vol 236, Issue 9

ATTENTION:Cet e-mail provient d'une personne externe à TOPNET. Ne pas cliquer 
sur des liens ou ouvrir des pièces jointes à moins que vous êtes absolument sûr 
de l'origine de l'e-mail.
'

Send Pdns-users mailing list submissions to
        pdns-users@mailman.powerdns.com

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

You can reach the person managing the list at
        pdns-users-ow...@mailman.powerdns.com

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


Today's Topics:

   1. Re: [dnsdist] Dnsdist not reading from the cache (Remi Gacogne)


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

Message: 1
Date: Mon, 12 Sep 2022 10:19:19 +0200
From: Remi Gacogne <remi.gaco...@powerdns.com>
To: "pdns-users@mailman.powerdns.com"
        <pdns-users@mailman.powerdns.com>
Subject: Re: [Pdns-users] [dnsdist] Dnsdist not reading from the cache
Message-ID: <103ecf7b-b663-78ff-7be1-3a3b41a34...@powerdns.com>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

On 09/09/2022 17:38, SAMI RAHAL via Pdns-users wrote:
> The server is in production it receives requests as shown in this summary
>
>
> Uptime: 17 days, Number of queries: 2326402346 (2385.00 qps), ACL drops:
> 0, Dynamic drops: 27076173, Rule drops: 6451838
> Average response time: 9.40 ms, CPU Usage: 26.50%, Cache hitrate:
> 85.37%, Server selection policy: leastOutstanding
> Listening on: 0.0.0.0:53, ACL: 0.0.0.0/0

The cache hitrate information from that output indicates that the cache
is working.
If you still think this is not the case, please share an unedited
configuration that we can use to reproduce the issue, and what you do
exactly to test whether the cache is working.

--
Remi Gacogne
PowerDNS.COM BV - https://www.powerdns.com/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: 
<http://mailman.powerdns.com/pipermail/pdns-users/attachments/20220912/bab4f3a6/attachment-0001.sig>

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

Subject: Digest Footer

_______________________________________________
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users


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

End of Pdns-users Digest, Vol 236, Issue 9
******************************************
_______________________________________________
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users

Reply via email to