From fc71602039dfd277735eb964bf5ae576693eadb2 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Sat, 4 Jan 2020 19:49:30 +0200 Subject: [PATCH] lib/storage: limit maxRaRowsPerPartition by 500K for any number of rawRowsShardsPerPartition This should reduce write amplification for high ingestion rate on multi-CPU systems --- 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 74bd902fe3..aa50b0f35c 100644 --- a/lib/storage/partition.go +++ b/lib/storage/partition.go @@ -76,7 +76,7 @@ func getMaxRawRowsPerPartition() int { if n > 500e3 { n = 500e3 } - maxRawRowsPerPartition = n / rawRowsShardsPerPartition + maxRawRowsPerPartition = n }) return maxRawRowsPerPartition }