New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vmagent 1.90.0 couldn't send a block with size #4139
Comments
Hi @ihard. |
vminsert flag
vminsert log is null |
This kind of error occurs when the HTTP client attempts to reuse an idle connection that's already been closed on the server. This can happen if the client's idle-connection timeout is greater than or equal to the timeout on the server, and both
VictoriaMetrics/lib/httpserver/httpserver.go Line 122 in 2e494e2
I can think of two possible solutions:
|
As @wjordan mentioned, such errors could happen when connection timeouts on client and server doesn't match. However, this doesn't result in data loss as vmagent will retry the write attempt with a newly established connection. |
Retry failed write request on the closed connection immediately, without waiting for backoff. This should improve rules data delivery speed and reduce amount of error logs emitted by vmagent when using idle connections. #4139 Signed-off-by: hagen1778 <roman@victoriametrics.com>
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. #4139 Signed-off-by: hagen1778 <roman@victoriametrics.com>
* 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. #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>
* 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. #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> (cherry picked from commit 992a1c0)
The commit 992a1c0 should instruct |
* 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. #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>
* 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. #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>
Starting from v1.94.0, vmagent shouldn't emit |
Describe the bug
On an absolutely unloaded cluster of version 1.90.0, periodically (once every 30 minutes approximately) I see in the agent logs
2023-04-17T17:11:29.482+0700 warn VictoriaMetrics/app/vmagent/remotewrite/client.go:370 couldn't send a block with size 203 bytes to "7:secret-url": Post "http:// 127.0.0.1:8581/insert/multitenant/prometheus": EOF; re-sending the block in 2.000 seconds
local vmagent sends traffic to vminsert via 127.0.0.1 and gets these errors (seems like things could go wrong here)
launched tcpdump, I see that at the time of the error, RST arrives from the vminsert port
To Reproduce
run Vmagent and VMcluster 1.90.0 on same virtual machine
Version
vmagent:v1.90.0
vminsert:v1.90.0-cluster
Logs
No response
Screenshots
Used command-line flags
Additional information
No response
The text was updated successfully, but these errors were encountered: