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

Add disk caching in ingester SearchTagValuesV2 for completed blocks #4069

Merged
merged 11 commits into from
Sep 19, 2024

Conversation

electron0zero
Copy link
Member

@electron0zero electron0zero commented Sep 11, 2024

What this PR does:

cache the response for TagValuesV2 requests alongside the local blocks on the ingesters, this should speedup the autocomplete queries hitting ingesters.

In our dev env, it shows sizeable difference in p90, p95 of latency and throughout for tags that has values with high cardinality.

also updated instrumentation to make the ingester search spans more closer to the code.

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@electron0zero electron0zero force-pushed the meta_cache_ingester branch 2 times, most recently from ef5996d to dcf5b65 Compare September 13, 2024 16:53
@electron0zero electron0zero changed the title Metadata: Add local disk caching for ingester completed blocks Add disk caching in SearchTagValuesV2 for ingester completed blocks Sep 18, 2024
@electron0zero electron0zero marked this pull request as ready for review September 18, 2024 17:37
@electron0zero electron0zero changed the title Add disk caching in SearchTagValuesV2 for ingester completed blocks Add disk caching in ingester SearchTagValuesV2 for completed blocks Sep 18, 2024
@electron0zero electron0zero merged commit cc6943a into grafana:main Sep 19, 2024
16 checks passed
@electron0zero electron0zero deleted the meta_cache_ingester branch September 19, 2024 17:13
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.

2 participants