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

Remove duplicate metrics increment #2926

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

StephenButtolph
Copy link
Contributor

Why this should be merged

This metric doesn't currently make much sense. We have two intermediate node caches. For the metrics, we should either split the metrics to report the usefulness of the caches independently, or we should treat the caches as a single cache for the metrics.

Specifically, fetching an intermediate node may:

  • Register a cache hit
  • Register a cache hit and a cache miss
  • Register two cache misses and a DB read

This PR takes the (simpler) approach, of just treating the caches as a single cache. Now fetching an intermediate node will either:

  • Register a cache hit
  • Register a cache miss and a DB read

How this works

Removes the duplicate cache miss call.

How this was tested

N/A

@StephenButtolph StephenButtolph added monitoring This primarily focuses on logs, metrics, and/or tracing cleanup Code quality improvement merkledb labels Apr 9, 2024
@StephenButtolph StephenButtolph added this to the v1.11.4 milestone Apr 9, 2024
@StephenButtolph StephenButtolph self-assigned this Apr 9, 2024
@StephenButtolph StephenButtolph modified the milestones: v1.11.4, v1.11.5 Apr 9, 2024
@StephenButtolph StephenButtolph added this pull request to the merge queue Apr 9, 2024
Merged via the queue into master with commit 3c7832e Apr 9, 2024
17 checks passed
@StephenButtolph StephenButtolph deleted the remove-duplicate-metrics-inc branch April 9, 2024 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Code quality improvement merkledb monitoring This primarily focuses on logs, metrics, and/or tracing
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants