Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 443b350

Browse files
authored
Merge pull request #303 from grafana/enable-lazy-loading-index-header
Enable index-header lazy loading in store-gateway
2 parents 75ecb61 + 757943e commit 443b350

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
* [CHANGE] Replace use of removed Cortex CLI flag `-querier.compress-http-responses` for query frontend with `-api.response-compression-enabled`. #299
66
* [CHANGE] The default dashboards config now display panels for the Cortex blocks storage only. If you're running Cortex chunks storage, please change `storage_engine` config to `['chunks']` or `['chunks', 'blocks']` if running both. #302
7+
* [CHANGE] Enabled index-header lazy loading in store-gateways. #303
78
* [FEATURE] Added "Cortex / Rollout progress" dashboard. #289 #290
89
* [FEATURE] Added support for using query-scheduler component, which moves the queue out of query-frontend, and allows scaling up of query-frontend component. #295
910
* [ENHANCEMENT] Added `newCompactorStatefulSet()` function to create a custom statefulset for the compactor. #287

cortex/tsdb.libsonnet

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,10 @@
212212
// Persist ring tokens so that when the store-gateway will be restarted
213213
// it will pick the same tokens
214214
'store-gateway.sharding-ring.tokens-file-path': '/data/tokens',
215+
216+
// Block index-headers are pre-downloaded but lazy mmaped and loaded at query time.
217+
'blocks-storage.bucket-store.index-header-lazy-loading-enabled': 'true',
218+
'blocks-storage.bucket-store.index-header-lazy-loading-idle-timeout': '60m',
215219
} +
216220
$.blocks_chunks_caching_config +
217221
$.blocks_metadata_caching_config +

0 commit comments

Comments
 (0)