From fc2b8b4efd41980cb3402ab0fabc38465483f5c3 Mon Sep 17 00:00:00 2001 From: Roman Khavronenko Date: Sun, 21 Aug 2022 22:32:08 +0200 Subject: [PATCH] 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 * Update lib/storage/partition.go Signed-off-by: hagen1778 Co-authored-by: Aliaksandr Valialkin --- lib/storage/partition.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/storage/partition.go b/lib/storage/partition.go index 7946eeeebc..768947c6f6 100644 --- a/lib/storage/partition.go +++ b/lib/storage/partition.go @@ -871,7 +871,7 @@ func hasActiveMerges(pws []*partWrapper) bool { var ( bigMergeWorkersCount = getDefaultMergeConcurrency(4) - smallMergeWorkersCount = getDefaultMergeConcurrency(8) + smallMergeWorkersCount = getDefaultMergeConcurrency(16) ) func getDefaultMergeConcurrency(max int) int {