mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-10 15:14:09 +00:00
app/vmctl: Increase http request timeout made by remote read client, add importing tips (#3879)
app/vmctl: Increase default http request timeout made by remote read client
This commit is contained in:
parent
06854738b6
commit
ec2abf9b69
4 changed files with 10 additions and 2 deletions
|
@ -483,6 +483,10 @@ Processing ranges: 8798 / 8798 [████████████████
|
||||||
2022/10/19 16:45:37 Total time: 1m19.406283424s
|
2022/10/19 16:45:37 Total time: 1m19.406283424s
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Migrating big volumes of data may result in remote read client reaching the timeout.
|
||||||
|
Consider increasing the value of `--remote-read-http-timeout` (default `5m`) command-line flag when seeing
|
||||||
|
timeouts or `context canceled` errors.
|
||||||
|
|
||||||
### Filtering
|
### Filtering
|
||||||
|
|
||||||
The filtering consists of two parts: by labels and time.
|
The filtering consists of two parts: by labels and time.
|
||||||
|
|
|
@ -485,7 +485,7 @@ var (
|
||||||
},
|
},
|
||||||
&cli.DurationFlag{
|
&cli.DurationFlag{
|
||||||
Name: remoteReadHTTPTimeout,
|
Name: remoteReadHTTPTimeout,
|
||||||
Usage: "Timeout defines timeout for HTTP write request to remote storage",
|
Usage: "Timeout defines timeout for HTTP requests made by remote read client",
|
||||||
},
|
},
|
||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
Name: remoteReadHeaders,
|
Name: remoteReadHeaders,
|
||||||
|
|
|
@ -21,7 +21,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
defaultReadTimeout = 30 * time.Second
|
defaultReadTimeout = 5 * time.Minute
|
||||||
remoteReadPath = "/api/v1/read"
|
remoteReadPath = "/api/v1/read"
|
||||||
healthPath = "/-/healthy"
|
healthPath = "/-/healthy"
|
||||||
)
|
)
|
||||||
|
|
|
@ -487,6 +487,10 @@ Processing ranges: 8798 / 8798 [████████████████
|
||||||
2022/10/19 16:45:37 Total time: 1m19.406283424s
|
2022/10/19 16:45:37 Total time: 1m19.406283424s
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Migrating big volumes of data may result in remote read client reaching the timeout.
|
||||||
|
Consider increasing the value of `--remote-read-http-timeout` (default `5m`) command-line flag when seeing
|
||||||
|
timeouts or `context canceled` errors.
|
||||||
|
|
||||||
### Filtering
|
### Filtering
|
||||||
|
|
||||||
The filtering consists of two parts: by labels and time.
|
The filtering consists of two parts: by labels and time.
|
||||||
|
|
Loading…
Reference in a new issue