You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your question request related to a specific component?
vmagent vminsert
Describe the question in detail
2023-12-19T07:43:29.157Z warn VictoriaMetrics/app/vmagent/remotewrite/client.go:385 couldn't send a block with size 70070 bytes to "1:https://xxxxx/insert/236/prometheus": Post "https://xxxx/insert/236/prometheus": context deadline exceeded (Client.Timeout exceeded while awaiting headers); re-sending the block in 2.000 seconds
There is a problem with vminsert configuration. Therefore, vmagent keeps failing to send data if there are too many vmagent nodes. This will lead to constant retries, which in turn increases the pressure on our SLB entrance and vminsert. So is there a way to control the retry interval of vmagent?
Hi @perfect-duo ! This values is limited inside the function and growth twice per each error, but can't be more than 1 minute
retryDuration := time.Second
retriesCount := 0
again:
startTime := time.Now()
resp, err := c.doRequest(c.remoteWriteURL, block)
c.requestDuration.UpdateDuration(startTime)
if err != nil {
c.errorsCount.Inc()
retryDuration *= 2
if retryDuration > time.Minute {
retryDuration = time.Minute
}
logger.Warnf("couldn't send a block with size %d bytes to %q: %s; re-sending the block in %.3f seconds",
len(block), c.sanitizedURL, err, retryDuration.Seconds())
t := timerpool.Get(retryDuration)
So, at that time, it can't be set via any flag.
If you need this flag please create a feature request and describe your problem and team will decide should it be implemented
Is your question request related to a specific component?
vmagent vminsert
Describe the question in detail
2023-12-19T07:43:29.157Z warn VictoriaMetrics/app/vmagent/remotewrite/client.go:385 couldn't send a block with size 70070 bytes to "1:https://xxxxx/insert/236/prometheus": Post "https://xxxx/insert/236/prometheus": context deadline exceeded (Client.Timeout exceeded while awaiting headers); re-sending the block in 2.000 seconds
There is a problem with vminsert configuration. Therefore, vmagent keeps failing to send data if there are too many vmagent nodes. This will lead to constant retries, which in turn increases the pressure on our SLB entrance and vminsert. So is there a way to control the retry interval of vmagent?
Troubleshooting docs
The text was updated successfully, but these errors were encountered: