From 15dfd94f3b42511f391d616ed0fae4a6fe6a346b Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Mon, 25 Sep 2023 17:15:43 +0200 Subject: [PATCH] lib/storage: make it clear that the number of big merge workers always equals to 4 See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4915#issuecomment-1733922830 --- lib/storage/partition.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/storage/partition.go b/lib/storage/partition.go index f13bd3fcf..b30ce098d 100644 --- a/lib/storage/partition.go +++ b/lib/storage/partition.go @@ -1113,7 +1113,9 @@ func (pt *partition) getMaxSmallPartSize() uint64 { } func (pt *partition) getMaxBigPartSize() uint64 { - workersCount := getDefaultMergeConcurrency(4) + // Always use 4 workers for big merges due to historical reasons. + // See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4915#issuecomment-1733922830 + workersCount := 4 return getMaxOutBytes(pt.bigPartsPath, workersCount) }