Skip to content

Use ignore-blocks-within #45

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

Merged
merged 1 commit into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* [CHANGE] Use cortex v1.16.0
* [ENHANCEMENT] Enable frontend query stats by default
* [ENHANCEMENT] Enable ruler query stats by default
* [ENHANCEMENT] Configure `-blocks-storage.bucket-store.ignore-blocks-within` in queriers, rulers and store-gateways

## 1.15.3 / 2023-11-24
* [CHANGE] Add default instance max series for ingesters
Expand Down
18 changes: 12 additions & 6 deletions cortex/config.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,18 @@
'store.engine': 'blocks',
},

// Ignore blocks in querier, ruler and store-gateways for the last 11h
ignore_blocks_within: '11h',

// No need to look at store for data younger than 12h, as ingesters have all of it.
query_store_after: '12h',

// Ingesters don't have data older than 13h, no need to ask them.
query_ingesters_within: '13h',

queryBlocksStorageConfig:: {
'blocks-storage.bucket-store.sync-dir': '/data/tsdb',
'blocks-storage.bucket-store.ignore-blocks-within': $._config.ignore_blocks_within,
'blocks-storage.bucket-store.ignore-deletion-marks-delay': '1h',

'store-gateway.sharding-enabled': true,
Expand Down Expand Up @@ -116,12 +126,8 @@
// type queries. 32 days to allow for comparision over the last month (31d) and
// then some.
'store.max-query-length': '768h',

// Ingesters don't have data older than 13h, no need to ask them.
'querier.query-ingesters-within': '13h',

// No need to look at store for data younger than 12h, as ingesters have all of it.
'querier.query-store-after': '12h',
'querier.query-ingesters-within': $._config.query_ingesters_within,
'querier.query-store-after': $._config.query_store_after,
},

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