mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-10 15:14:09 +00:00
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:
parent
a421db5977
commit
60fe63df07
1 changed files with 3 additions and 1 deletions
|
@ -1113,7 +1113,9 @@ func (pt *partition) getMaxSmallPartSize() uint64 {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (pt *partition) getMaxBigPartSize() 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)
|
return getMaxOutBytes(pt.bigPartsPath, workersCount)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue