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

Commit 55f4ea2

Browse files
committed
Add flag to enable streaming of chunks.
1 parent 2ba24fe commit 55f4ea2

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

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)