lib/storage: bump max merge concurrency for small parts to 15 (#2997)

* lib/storage: bump max merge concurrency for small parts to 15

The change is based on the feedback from users on github.
Thier examples show, that limit of 8 sometimes become a
bottleneck. Users report that without limit concurrency
can climb up to 15-20 merges at once.

Signed-off-by: hagen1778 <roman@victoriametrics.com>

* Update lib/storage/partition.go

Signed-off-by: hagen1778 <roman@victoriametrics.com>
Co-authored-by: Aliaksandr Valialkin <valyala@victoriametrics.com>
This commit is contained in:
Roman Khavronenko 2022-08-21 22:32:08 +02:00 committed by Aliaksandr Valialkin
parent c7ca124803
commit fc2b8b4efd
No known key found for this signature in database
GPG Key ID: A72BEC6CD3D0DED1

View File

@ -871,7 +871,7 @@ func hasActiveMerges(pws []*partWrapper) bool {
var ( var (
bigMergeWorkersCount = getDefaultMergeConcurrency(4) bigMergeWorkersCount = getDefaultMergeConcurrency(4)
smallMergeWorkersCount = getDefaultMergeConcurrency(8) smallMergeWorkersCount = getDefaultMergeConcurrency(16)
) )
func getDefaultMergeConcurrency(max int) int { func getDefaultMergeConcurrency(max int) int {