Skip to content

Add Broker Cache Entry Eviction Rate Metric #16584

Closed

Description

@michaeljmarshall

Is your enhancement request related to a problem? Please describe.
The current broker cache eviction metric, pulsar_ml_cache_evictions, measures when the cache's hasSpaceInCache triggers an eviction. There are no other cache eviction metrics right now, making it hard to gain insight into cache evictions.

Describe the solution you'd like
I would like to see metrics providing insight into the rate at which entries are getting evicted from the cache. I'm not sure if entry invalidations should also be included in this metric, but we should consider a metric for that as well.

These metrics would only be computed at the broker level.

Describe alternatives you've considered
I don't see another metric that gives insight into broker cache evictions.

Additional context
Add any other context or screenshots about the feature request here.

Activity

  1. michaeljmarshall commented on Jul 13, 2022

    @michaeljmarshall
    MemberAuthor

    @lhotari - I think additional metrics like the one described above could help make an issue like #16054 easier to observe.

  2. tjiuming commented on Aug 5, 2022

    @tjiuming
    Contributor

    @michaeljmarshall I'd like to fix the issue

  3. michaeljmarshall commented on Aug 24, 2022

    @michaeljmarshall
    MemberAuthor

    @tjiuming - sorry, I missed your comment. I implemented the metrics today. Feel free to review the PR if you have time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions