Skip to content

Add disk caching in ingester SearchTagValuesV2 for completed blocks - #4069

Merged
electron0zero merged 11 commits into
grafana:mainfrom
electron0zero:meta_cache_ingester
Sep 19, 2024
Merged

Add disk caching in ingester SearchTagValuesV2 for completed blocks#4069
electron0zero merged 11 commits into
grafana:mainfrom
electron0zero:meta_cache_ingester

Conversation

@electron0zero

@electron0zero electron0zero commented Sep 11, 2024

Copy link
Copy Markdown
Member

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 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 Sep 18, 2024
Comment thread modules/ingester/instance_search.go Outdated
Comment thread modules/ingester/instance_search.go
Comment thread tempodb/encoding/common/interfaces.go Outdated
Comment thread modules/ingester/instance_search.go Outdated
@electron0zero
electron0zero merged commit cc6943a into grafana:main Sep 19, 2024
@electron0zero
electron0zero deleted the meta_cache_ingester branch September 19, 2024 17:13
mattdurham pushed a commit to mattdurham/tempo that referenced this pull request Jun 18, 2026
…rafana#4069)

* ingore /tmp dir in the root

* instrument localblock seacher methods

* insturment walBlock

* disk cache works locally

* fix fmt

* fix lint

* refactor the disk caching logic

* add tests and cleanup

* update CHANGELOG.md

* address review comments

* cacheKey without start and end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants