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

Commit 5cf0c4f

Browse files
authored
Add flag to enable streaming of chunks. (#276)
Signed-off-by: Peter Štibraný <[email protected]>
1 parent 2ba24fe commit 5cf0c4f

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* [FEATURE] Added "Cortex / Slow queries" dashboard based on Loki logs. #271
1212
* [ENHANCEMENT] Add `EtcdAllocatingTooMuchMemory` alert for monitoring etcd memory usage. #261
1313
* [ENHANCEMENT] Sort legend descending in the CPU/memory panels. #271
14+
* [ENHANCEMENT] Add config option to enable streaming of chunks in block-based ingesters. #276
1415
* [BUGFIX] Fixed `CortexQuerierHighRefetchRate` alert. #268
1516

1617
## 1.7.0 / 2021-02-24

cortex/config.libsonnet

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,9 @@
433433
enable_pod_priorities: true,
434434

435435
alertmanager_enabled: false,
436+
437+
// Enables streaming of chunks from ingesters using blocks.
438+
ingester_stream_chunks_when_using_blocks: true,
436439
},
437440

438441
local configMap = $.core.v1.configMap,
@@ -441,11 +444,9 @@
441444
configMap.new($._config.overrides_configmap) +
442445
configMap.withData({
443446
'overrides.yaml': $.util.manifestYaml(
444-
{
445-
overrides: $._config.overrides,
446-
} + if std.length($._config.multi_kv_config) > 0 then {
447-
multi_kv_config: $._config.multi_kv_config,
448-
} else {}
447+
{ overrides: $._config.overrides }
448+
+ (if std.length($._config.multi_kv_config) > 0 then { multi_kv_config: $._config.multi_kv_config } else {})
449+
+ (if $._config.ingester_stream_chunks_when_using_blocks then { ingester_stream_chunks_when_using_blocks: true } else {})
449450
),
450451
}),
451452

0 commit comments

Comments
 (0)