diff --git a/app/vmctl/README.md b/app/vmctl/README.md index 49275898a..fc08cdb77 100644 --- a/app/vmctl/README.md +++ b/app/vmctl/README.md @@ -483,6 +483,10 @@ Processing ranges: 8798 / 8798 [████████████████ 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 The filtering consists of two parts: by labels and time. diff --git a/app/vmctl/flags.go b/app/vmctl/flags.go index 1f044a7ea..d20808b9b 100644 --- a/app/vmctl/flags.go +++ b/app/vmctl/flags.go @@ -485,7 +485,7 @@ var ( }, &cli.DurationFlag{ 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{ Name: remoteReadHeaders, diff --git a/app/vmctl/remoteread/remoteread.go b/app/vmctl/remoteread/remoteread.go index 49a6f9d8c..c27ed799a 100644 --- a/app/vmctl/remoteread/remoteread.go +++ b/app/vmctl/remoteread/remoteread.go @@ -21,7 +21,7 @@ import ( ) const ( - defaultReadTimeout = 30 * time.Second + defaultReadTimeout = 5 * time.Minute remoteReadPath = "/api/v1/read" healthPath = "/-/healthy" ) diff --git a/docs/vmctl.md b/docs/vmctl.md index a268d0294..df6dc5de0 100644 --- a/docs/vmctl.md +++ b/docs/vmctl.md @@ -487,6 +487,10 @@ Processing ranges: 8798 / 8798 [████████████████ 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 The filtering consists of two parts: by labels and time.