docs: Add README operator cache check #30
No reviewers
Labels
No labels
blocked
bug
draft
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
s1d3sw1ped/steamcache2!30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "docs/operator-cache-check"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
make validate-check→ readcache_hits,cache_misses,hit_rate,memory_cache_hits,disk_cache_hits,total_requests,errors.make validate-checkis a single Makefile target: print the full/metricsdump, highlight hit/miss fields, and curl/lancache-heartbeat(default:80). Listed inmake help.curl -s -i http://localhost/lancache-heartbeat(HTTP 204,X-LanCache-Processed-By: SteamCache2). HEAD is not accepted (server is GET-only).docs/examples/validate-config.yamlcomments match that helper.No new daemon, Prometheus, dashboards, metrics auth, or second metrics system.
Why
steamcache2 already exposes hit/miss on
/metricsand a heartbeat, but operators had to read the long SteamPrefill validation chapter (and a Makefile target that did not exist) to answer "is it caching?".Fixes #29
Test
make helplists onevalidate-checkthat curls/metrics(full dump + hit/miss fields) and/lancache-heartbeat.:80,make validate-checkprints the full metrics dump, the hit/miss subset, and the heartbeat headers.curl -s http://localhost/metricsandcurl -s -i http://localhost/lancache-heartbeat(GET only; heartbeat 204 +X-LanCache-Processed-By: SteamCache2).listen_address: :80.