Journalist-HK / mosdns-config

mosdns 设置
GNU General Public License v3.0
106 stars 21 forks source link

似乎没有使用lazy_cache? #3

Closed DawnAleax closed 10 months ago

DawnAleax commented 11 months ago

debug日志没有lazy_cache hit 只有lazy_cache update

Journalist-HK commented 10 months ago

Everything's working fine.

root@OpenWrt:~# curl -v --silent http://127.0.0.1:9091/metrics 2>&1 | grep mosdns_cache
# HELP mosdns_cache_hit_total The total number of queries that hit the cache
# TYPE mosdns_cache_hit_total counter
mosdns_cache_hit_total{tag="cache_0"} 269207
# HELP mosdns_cache_lazy_hit_total The total number of queries that hit the expired cache
# TYPE mosdns_cache_lazy_hit_total counter
mosdns_cache_lazy_hit_total{tag="cache_0"} 199433
# HELP mosdns_cache_query_total The total number of processed queries
# TYPE mosdns_cache_query_total counter
mosdns_cache_query_total{tag="cache_0"} 282179
# HELP mosdns_cache_size_current Current cache size in records
# TYPE mosdns_cache_size_current gauge
mosdns_cache_size_current{tag="cache_0"} 6959