openresty / openresty/srcache-nginx-module

How to measure cache hits/misses

Open
#95 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
486
Forks
101
Avg merge
1h 28m
Merged PRs (30d)
2

Description

Has anyone come up with a way to measure cache hits/misses percentage? The only way I can tell is by analysing the access.log files. But wondering if there's a better way to calculate cache hit rate in realtime.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the srcache-nginx-module request and cache-handling paths, then compare them with the access.log information mentioned in the issue. Determine what existing logging or measurement facilities are available and define how realtime cache hits and misses should be reported. Done means a reliable cache-hit percentage can be obtained without analyzing access logs manually.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, nginx
Domain
observability
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.