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
This commit is contained in:
Aliaksandr Valialkin 2023-09-25 17:15:43 +02:00
parent 717c53af27
commit 15dfd94f3b
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -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)
}