Skip to content

feat(inkless): add bytes limit to cache#454

Closed
jeqo wants to merge 2 commits intojeqo/reuse-storage-metricsfrom
jeqo/add-cache-bytes-limit
Closed

feat(inkless): add bytes limit to cache#454
jeqo wants to merge 2 commits intojeqo/reuse-storage-metricsfrom
jeqo/add-cache-bytes-limit

Conversation

@jeqo
Copy link
Copy Markdown
Contributor

@jeqo jeqo commented Nov 20, 2025

Add a new limiting configuration for cache sizing based on bytes instead of entries.

Historically, previous caching library only supported sizing based on entries. With Caffeine, sizing can now be defined by both entries and max bytes using weigther.

Depends on #453

jeqo added 2 commits November 20, 2025 14:12
Instead of creating yet another metrics instance, reuse the storage
metrics instance used by storage layer, as caching is a related module.

This will change the metric name prefix from:
`io.aiven.inkless.cache.caffeine` to `io.aiven.inkless.storage`
Add a new limiting configuration for cache sizing based on bytes instead
of entries.

Historically, previous caching library only supported sizing based on
entries. With Caffeine, sizing can now be defined by both entries and
max bytes using weigther.
@jeqo jeqo requested a review from jjaakola-aiven November 24, 2025 13:37
@jeqo jeqo force-pushed the jeqo/reuse-storage-metrics branch 3 times, most recently from 46cfe26 to da50d9c Compare November 25, 2025 10:41
@github-actions
Copy link
Copy Markdown

This PR is being marked as stale since it has not had any activity in 90 days. If you
would like to keep this PR alive, please leave a comment asking for a review. If the PR has
merge conflicts, update it with the latest from the base branch.

If you are having difficulty finding a reviewer, please reach out on the [mailing list](https://kafka.apache.org/contact).

If this PR is no longer valid or desired, please feel free to close it. If no activity occurs in the next 30 days, it will be automatically closed.

@github-actions github-actions Bot added the stale label Feb 24, 2026
@jeqo jeqo removed the stale label Mar 13, 2026
@jeqo
Copy link
Copy Markdown
Contributor Author

jeqo commented Mar 17, 2026

Closing in favor of #544

@jeqo jeqo closed this Mar 17, 2026
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.

1 participant