Skip to content

Commit 8f6ad0d

Browse files
authored
Use ignore-blocks-within (#45)
Signed-off-by: Friedrich Gonzalez <[email protected]>
1 parent 2e0f64d commit 8f6ad0d

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* [CHANGE] Use cortex v1.16.0
66
* [ENHANCEMENT] Enable frontend query stats by default
77
* [ENHANCEMENT] Enable ruler query stats by default
8+
* [ENHANCEMENT] Configure `-blocks-storage.bucket-store.ignore-blocks-within` in queriers, rulers and store-gateways
89

910
## 1.15.3 / 2023-11-24
1011
* [CHANGE] Add default instance max series for ingesters

cortex/config.libsonnet

+12-6
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,18 @@
7474
'store.engine': 'blocks',
7575
},
7676

77+
// Ignore blocks in querier, ruler and store-gateways for the last 11h
78+
ignore_blocks_within: '11h',
79+
80+
// No need to look at store for data younger than 12h, as ingesters have all of it.
81+
query_store_after: '12h',
82+
83+
// Ingesters don't have data older than 13h, no need to ask them.
84+
query_ingesters_within: '13h',
85+
7786
queryBlocksStorageConfig:: {
7887
'blocks-storage.bucket-store.sync-dir': '/data/tsdb',
88+
'blocks-storage.bucket-store.ignore-blocks-within': $._config.ignore_blocks_within,
7989
'blocks-storage.bucket-store.ignore-deletion-marks-delay': '1h',
8090

8191
'store-gateway.sharding-enabled': true,
@@ -116,12 +126,8 @@
116126
// type queries. 32 days to allow for comparision over the last month (31d) and
117127
// then some.
118128
'store.max-query-length': '768h',
119-
120-
// Ingesters don't have data older than 13h, no need to ask them.
121-
'querier.query-ingesters-within': '13h',
122-
123-
// No need to look at store for data younger than 12h, as ingesters have all of it.
124-
'querier.query-store-after': '12h',
129+
'querier.query-ingesters-within': $._config.query_ingesters_within,
130+
'querier.query-store-after': $._config.query_store_after,
125131
},
126132

127133
// PromQL query engine config (shared between all services running PromQL engine, like the ruler and querier).

0 commit comments

Comments
 (0)