VictoriaMetrics/app/vmagent/remotewrite
Roman Khavronenko 992a1c0a3a
vmagent: retry failed write request on the closed connection (#4857)
* vmagent: retry failed write request on the closed connection

 Retry failed write request on the closed connection immediately,
 without waiting for backoff. This should improve data delivery speed
 and reduce amount of error logs emitted by vmagent when using idle connections.

 https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4139

Signed-off-by: hagen1778 <roman@victoriametrics.com>

* vmagent: retry failed write request on the closed connection

Re-instantinate request before retry as body could have been already spoiled.

Signed-off-by: hagen1778 <roman@victoriametrics.com>

---------

Signed-off-by: hagen1778 <roman@victoriametrics.com>
Co-authored-by: Nikolay <nik@victoriametrics.com>
2023-08-24 00:08:04 +02:00
..
client.go vmagent: retry failed write request on the closed connection (#4857) 2023-08-24 00:08:04 +02:00
pendingseries.go app/vmagent: add -remoteWrite.vmProtoCompressLevel command-line flag for tuning the compression level for VictoriaMetrics remote write protocol 2023-02-27 11:03:49 -08:00
pendingseries_test.go app/vmagent/remotewrite: removed unneeded code in testPushWriteRequest after 57801660ab 2023-02-22 17:51:50 -08:00
pendingseries_timing_test.go app/vmagent/remotewrite: go fmt after 2b55d167d7 2022-09-19 15:14:35 +03:00
relabel.go app/vmagent/remotewrite: follow-up after a27c2f3773 2023-08-17 14:43:50 +02:00
relabel_test.go app/vmagent/remotewrite: follow-up after a27c2f3773 2023-08-17 14:43:50 +02:00
remotewrite.go app/vmagent/remotewrite: follow-up after a27c2f3773 2023-08-17 14:43:50 +02:00
statconn.go app/vmagent: properly initialize stdDialer 2022-04-06 13:57:20 +03:00