VictoriaMetrics/app/vmagent/remotewrite
Roman Khavronenko 1ff35996cd
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-29 09:47:39 +02:00
..
client.go vmagent: retry failed write request on the closed connection (#4857) 2023-08-29 09:47:39 +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:04:11 -08:00
pendingseries_test.go app/vmagent/remotewrite: removed unneeded code in testPushWriteRequest after 57801660ab 2023-02-22 17:50:03 -08:00
pendingseries_timing_test.go app/vmagent/remotewrite: go fmt after 2b55d167d7 2022-09-19 15:14:03 +03:00
relabel.go app/vmagent/remotewrite: follow-up after a27c2f3773 2023-08-17 14:47:28 +02:00
relabel_test.go app/vmagent/remotewrite: follow-up after a27c2f3773 2023-08-17 14:47:28 +02:00
remotewrite.go app/vmagent/remotewrite: follow-up after a27c2f3773 2023-08-17 14:47:28 +02:00
statconn.go app/vmagent: properly initialize stdDialer 2022-04-06 14:00:50 +03:00