app/vmagent/remotewrite: count maxLabelsPerBlock as 10x of maxRowsPerBlock

This should increase block sizes and subsequently increase the maximum possible bandwidth per each connection to remote storage.
This, in turn, should reduce the probability of storing the data in local buffers.

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1235
This commit is contained in:
Aliaksandr Valialkin 2021-04-23 21:55:45 +03:00
parent 320983f650
commit f92db26a93

View file

@ -28,7 +28,7 @@ var (
const maxRowsPerBlock = 10000 const maxRowsPerBlock = 10000
// the maximum number of labels to send per each block. // the maximum number of labels to send per each block.
const maxLabelsPerBlock = 40000 const maxLabelsPerBlock = 10 * maxRowsPerBlock
type pendingSeries struct { type pendingSeries struct {
mu sync.Mutex mu sync.Mutex