mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-09 15:27:11 +00:00
app/vmselect: improve logging when the incoming query cannot be executed because of timeout in the wait queue
This commit is contained in:
parent
65b9dcfcca
commit
dff47c73b7
1 changed files with 2 additions and 2 deletions
|
@ -120,8 +120,8 @@ func RequestHandler(w http.ResponseWriter, r *http.Request) bool {
|
||||||
err := &httpserver.ErrorWithStatusCode{
|
err := &httpserver.ErrorWithStatusCode{
|
||||||
Err: fmt.Errorf("couldn't start executing the request in %.3f seconds, since -search.maxConcurrentRequests=%d concurrent requests "+
|
Err: fmt.Errorf("couldn't start executing the request in %.3f seconds, since -search.maxConcurrentRequests=%d concurrent requests "+
|
||||||
"are executed. Possible solutions: to reduce query load; to add more compute resources to the server; "+
|
"are executed. Possible solutions: to reduce query load; to add more compute resources to the server; "+
|
||||||
"to increase -search.maxQueueDuration; to increase -search.maxQueryDuration; to increase -search.maxConcurrentRequests",
|
"to increase -search.maxQueueDuration=%s; to increase -search.maxQueryDuration; to increase -search.maxConcurrentRequests",
|
||||||
d.Seconds(), *maxConcurrentRequests),
|
d.Seconds(), *maxConcurrentRequests, maxQueueDuration),
|
||||||
StatusCode: http.StatusServiceUnavailable,
|
StatusCode: http.StatusServiceUnavailable,
|
||||||
}
|
}
|
||||||
httpserver.Errorf(w, r, "%s", err)
|
httpserver.Errorf(w, r, "%s", err)
|
||||||
|
|
Loading…
Reference in a new issue