lib/storage: limit maxRaRowsPerPartition by 500K for any number of rawRowsShardsPerPartition

This should reduce write amplification for high ingestion rate on multi-CPU systems
This commit is contained in:
Aliaksandr Valialkin 2020-01-04 19:49:30 +02:00
parent c60fdbed30
commit fc71602039

View File

@ -76,7 +76,7 @@ func getMaxRawRowsPerPartition() int {
if n > 500e3 {
n = 500e3
}
maxRawRowsPerPartition = n / rawRowsShardsPerPartition
maxRawRowsPerPartition = n
})
return maxRawRowsPerPartition
}