Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(draft)logstore: log latency if raftentry cache miss when calling loadTerm #141159

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hakuuww
Copy link
Contributor

@hakuuww hakuuww commented Feb 11, 2025

(draft change) This is a draft commit that adds a metric to record the latency for loading term if there is a cache miss.

Also adds separate metrics for raftRntry cache accesses from loadTerm.

Running roachtests against this build will help us with understanding the access patterns of raftEntry Cache, and understand how much performance improvement we may get when we introduce a term cache.

This commit is only for reference purpose, do not merge.

References: #136296
Epic: None
Release note: None

Copy link

blathers-crl bot commented Feb 11, 2025

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@hakuuww hakuuww requested a review from pav-kv February 11, 2025 17:31
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@hakuuww hakuuww force-pushed the logLoadTermLatencyIfCacheMiss branch from 2e1d341 to b43fd00 Compare February 11, 2025 18:14
@hakuuww hakuuww changed the title logstore: log latency if raftentry cache miss when calling loadTerm (draft)logstore: log latency if raftentry cache miss when calling loadTerm Feb 12, 2025
@hakuuww hakuuww force-pushed the logLoadTermLatencyIfCacheMiss branch 5 times, most recently from e51358f to 65f7539 Compare February 12, 2025 21:25
This is a draft commit that adds a metric to record the latency for loading term if there is a cache miss.

Also adds separate metrics for raftRntry cache accesses from loadTerm.

Running roachtests against this build will help us with understanding the access patterns of raftEntry Cache, and understand how much performance improvement we may get when we introduce a term cache.

This commit is only for reference purpose, shouldn't be merged.

References: cockroachdb#136296
Epic: None
Release note: None
@hakuuww hakuuww force-pushed the logLoadTermLatencyIfCacheMiss branch from 65f7539 to 8e8c121 Compare February 14, 2025 18:02
hakuuww added a commit to hakuuww/cockroach that referenced this pull request Feb 20, 2025
Integrate with metrics from another branch cockroachdb#141159

References: cockroachdb#136296
Epic: None
Release note: None
hakuuww added a commit to hakuuww/cockroach that referenced this pull request Feb 20, 2025
Integrate with metrics from another branch cockroachdb#141159

References: cockroachdb#136296
Epic: None
Release note: None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants