Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Define a reason why the fifocache has evicted an item#6335

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

dannykopping
Copy link
Contributor

@dannykoppingdannykopping commentedJun 8, 2022
edited
Loading

Signed-off-by: Danny Koppingdanny.kopping@grafana.com

What this PR does / why we need it:
This PR adds an eviction reason for the fifocache, which will help an operator know if an entry was evicted because the TTL expired vs the cache is full.

Which issue(s) this PR fixes:
N/A

Special notes for your reviewer:
We use a fifocache when running boltdb-shipper for storing ingesters' index caches locally. We do this because we cannot share the cache between ingesters, to prevent missing out chunks that may not exist in other ingesters.
https://github.com/grafana/loki/blob/main/pkg/loki/modules.go#L414-L425

The cache is configured with a fixed size of 200MB, and is currently not configurable; we could consider making this configurable however even in our biggest clusters we're only seeing ~11MB of use currently.

Checklist

  • Documentation added
  • Tests updated
  • Is this an important fix or new feature? Add an entry in theCHANGELOG.md.
  • Changes that require user attention or interaction to upgrade are documented indocs/sources/upgrading/_index.md

Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
@dannykoppingdannykoppingforce-pushed thedannykopping/evict-reason branch fromff9f72a to34d6d99CompareJune 8, 2022 13:07
@grafanabot
Copy link
Contributor

./tools/diff_coverage.sh ../loki-main/test_results.txt test_results.txt ingester,distributor,querier,querier/queryrange,iter,storage,chunkenc,logql,loki

Change in test coverage per package. Green indicates 0 or positive change, red indicates that test coverage for a package fell.

+           ingester0%+        distributor0%+            querier0%+ querier/queryrange0%+               iter0%+            storage0%+           chunkenc0%+              logql0%+               loki0%

@dannykoppingdannykopping marked this pull request as ready for reviewJune 8, 2022 13:13
@dannykoppingdannykopping requested a review froma team as acode ownerJune 8, 2022 13:13
Copy link
Contributor

@kavirajkkavirajk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM 👍

Minor suggestions onreason constants.

Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
Copy link
Contributor

@sandeepsukhanisandeepsukhani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM with a minor non-blocking suggestion

@grafanabot
Copy link
Contributor

./tools/diff_coverage.sh ../loki-main/test_results.txt test_results.txt ingester,distributor,querier,querier/queryrange,iter,storage,chunkenc,logql,loki

Change in test coverage per package. Green indicates 0 or positive change, red indicates that test coverage for a package fell.

+           ingester0%+        distributor0%+            querier0%+ querier/queryrange0%+               iter0%+            storage0%+           chunkenc0%+              logql0%+               loki0%

Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
@grafanabot
Copy link
Contributor

./tools/diff_coverage.sh ../loki-main/test_results.txt test_results.txt ingester,distributor,querier,querier/queryrange,iter,storage,chunkenc,logql,loki

Change in test coverage per package. Green indicates 0 or positive change, red indicates that test coverage for a package fell.

+           ingester0%+        distributor0%+            querier0%+ querier/queryrange0%+               iter0%+            storage0%+           chunkenc0%+              logql0%+               loki0%

@dannykoppingdannykopping merged commit3a1fdd0 intografana:mainJun 8, 2022
@dannykoppingdannykopping deleted the dannykopping/evict-reason branchJune 8, 2022 14:30
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@sandeepsukhanisandeepsukhanisandeepsukhani approved these changes

+1 more reviewer

@kavirajkkavirajkkavirajk approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@dannykopping@grafanabot@sandeepsukhani@kavirajk

[8]ページ先頭

©2009-2025 Movatter.jp