mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 08:23:34 +01:00
8752cce157
This reduces the max memory usage for vminsert and vmstorage under heavy ingestion rate by up to 50% on production workload
11 lines
539 B
Go
11 lines
539 B
Go
package consts
|
|
|
|
// MaxInsertPacketSizeForVMStorage is the maximum packet size in bytes vmstorage can accept from vmstorage.
|
|
// It cannot be reduced due to backwards compatibility :(
|
|
const MaxInsertPacketSizeForVMStorage = 100 * 1024 * 1024
|
|
|
|
// MaxInsertPacketSizeForVMInsert is the maximum packet size in bytes vminsert may send to vmstorage.
|
|
// It is smaller than MaxInsertPacketSizeForVMStorage in order to reduce
|
|
// max memory usage occupied by buffers at vminsert and vmstorage.
|
|
const MaxInsertPacketSizeForVMInsert = 30 * 1024 * 1024
|