mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-01 14:47:38 +00:00
lib/storage: double the number of rawRows shards on multi-core systems
This should increase data ingestion scalability on multi-core systems at the cost of slightly higher memory usage
This commit is contained in:
parent
ae55ad8749
commit
fb50730ba7
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ const finalPartsToMerge = 3
|
||||||
// The number of shards for rawRow entries per partition.
|
// The number of shards for rawRow entries per partition.
|
||||||
//
|
//
|
||||||
// Higher number of shards reduces CPU contention and increases the max bandwidth on multi-core systems.
|
// Higher number of shards reduces CPU contention and increases the max bandwidth on multi-core systems.
|
||||||
var rawRowsShardsPerPartition = (cgroup.AvailableCPUs() + 3) / 4
|
var rawRowsShardsPerPartition = (cgroup.AvailableCPUs() + 1) / 2
|
||||||
|
|
||||||
// getMaxRawRowsPerShard returns the maximum number of rows that haven't been converted into parts yet.
|
// getMaxRawRowsPerShard returns the maximum number of rows that haven't been converted into parts yet.
|
||||||
func getMaxRawRowsPerShard() int {
|
func getMaxRawRowsPerShard() int {
|
||||||
|
|
Loading…
Reference in a new issue