Code Monkey home page Code Monkey logo

Comments (5)

bowei avatar bowei commented on July 24, 2024

dnsmasq cache is limited to 10k entries total. Would the number of evictions be more useful? What are you trying to determine?

from k8s.io/dns/pkg/dnsmasq/mterics.go:

const ( 
        // CacheHits from dnsmasq.
        CacheHits MetricName = "hits"
        // CacheMisses from dnsmasq
        CacheMisses MetricName = "misses"
        // CacheEvictions from dnsmasq
        CacheEvictions MetricName = "evictions"
        // CacheInsertions from dnsmasq
        CacheInsertions MetricName = "insertions"
        // CacheSize from dnsmasq
        CacheSize MetricName = "cachesize"
)

from dns.

zihaoyu avatar zihaoyu commented on July 24, 2024

I see. That works too. Thank you.

I was wanting to see how many entries are cached so I can adjust the cache size flag accordingly. Is there any reason I don't want to set cache to max size?

from dns.

bowei avatar bowei commented on July 24, 2024

10k entries takes 10 Mb. Unless you are extremely resource constrained, I would set it to max.

from dns.

zihaoyu avatar zihaoyu commented on July 24, 2024

Thanks. Noted.

from dns.

zihaoyu avatar zihaoyu commented on July 24, 2024

@bowei So I'm seeing zero evictions and constant insertions. Does that mean the entries are being overwritten all the time? From the graph below, it looks like I'm using about 200 to 250 cache entries. Is that correct? Thanks.

cache

from dns.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.