Comments (5)
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.
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.
10k entries takes 10 Mb. Unless you are extremely resource constrained, I would set it to max.
from dns.
Thanks. Noted.
from dns.
@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.
from dns.
Related Issues (20)
- Latest release images missing HOT 2
- Broken link in the readme HOT 3
- `CoreDNS` pod deployment specification HOT 3
- Link for kube-dns is broken in README.md HOT 3
- nodelocaldns livenessprobe doesn't work in UDP Recv-Q overflow case HOT 5
- Image CVE's reported for 1.22.21 HOT 1
- Open ssl CVE present in node cache 1.22.20 HOT 11
- NodeLocalDNS not working with custom hosts HOT 8
- Output log as json HOT 3
- Using coredns daemonset instead of nodelocal dns HOT 19
- [Improvement] Add value compatibility for -upstreamsvc HOT 5
- [node-local dns] DNS requests intermittently receive refused response errors HOT 4
- Intermittent timed out accessing nodelocaldns HOT 2
- [NodeLocal DNS Cache] DNS requests not directed to the local cache HOT 2
- pull-kubernetes-dns-test broken at head HOT 2
- Several old CVE's still present on the latest k8s-dns-node-cache versions HOT 4
- Image for 1.22.27 missing HOT 3
- [node-local-dns] Query loss HOT 5
- CVE-2023-5363 and CVE-2023-5528 in 1.22.28 HOT 24
- k8s node-local-dns high slab memory consumption leading to OOM HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dns.