Skip to content

Commit fa7dac6

Browse files
committed
Configure default head_chunks_write_queue_size to 1 million to avoid high latency when shipping
Signed-off-by: Friedrich Gonzalez <[email protected]>
1 parent 31112a4 commit fa7dac6

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## master / unreleased
44
* [CHANGE] Use cortex v1.15.3
55
* [CHANGE] Azure storage endpoint suffix is set to `blob.core.windows.net` for backward compatibility
6+
* [ENHANCEMENT] Configure head_chunks_write_queue_size to 1 million to avoid high latency when shipping
67

78
## 1.14.1 / 2023-07-11
89

cortex/ingester.libsonnet

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636

3737
'blocks-storage.tsdb.dir': '/data/tsdb',
3838
'blocks-storage.tsdb.block-ranges-period': '2h',
39+
'blocks-storage.tsdb.head-chunks-write-queue-size': 1e6,
3940
'blocks-storage.tsdb.retention-period': '96h', // 4 days protection against blocks not being uploaded from ingesters.
4041
'blocks-storage.tsdb.ship-interval': '1m',
4142

@@ -44,18 +45,6 @@
4445
'ingester.tokens-file-path': '/data/tokens',
4546
},
4647

47-
ingester_statefulset_args::
48-
$._config.grpcConfig
49-
{
50-
'ingester.wal-enabled': true,
51-
'ingester.checkpoint-enabled': true,
52-
'ingester.recover-from-wal': true,
53-
'ingester.wal-dir': $._config.ingester.wal_dir,
54-
'ingester.checkpoint-duration': '15m',
55-
'-log.level': 'info',
56-
'ingester.tokens-file-path': $._config.ingester.wal_dir + '/tokens',
57-
},
58-
5948
ingester_ports:: $.util.defaultPorts,
6049

6150
local name = 'ingester',
@@ -72,13 +61,6 @@
7261

7362
local volumeMount = $.core.v1.volumeMount,
7463

75-
ingester_statefulset_container::
76-
$.ingester_container +
77-
container.withArgsMixin($.util.mapToFlags($.ingester_statefulset_args)) +
78-
container.withVolumeMountsMixin([
79-
volumeMount.new('ingester-pvc', $._config.ingester.wal_dir),
80-
]),
81-
8264
ingester_deployment_labels:: {},
8365

8466
local ingester_pvc =

0 commit comments

Comments
 (0)