From f92db26a931be18df4b77fb930b1995b3610e31b Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Fri, 23 Apr 2021 21:55:45 +0300 Subject: [PATCH] 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 --- app/vmagent/remotewrite/pendingseries.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/vmagent/remotewrite/pendingseries.go b/app/vmagent/remotewrite/pendingseries.go index 2d6cf12c0..05c545331 100644 --- a/app/vmagent/remotewrite/pendingseries.go +++ b/app/vmagent/remotewrite/pendingseries.go @@ -28,7 +28,7 @@ var ( const maxRowsPerBlock = 10000 // the maximum number of labels to send per each block. -const maxLabelsPerBlock = 40000 +const maxLabelsPerBlock = 10 * maxRowsPerBlock type pendingSeries struct { mu sync.Mutex