app/vmselect: improve logging when the incoming query cannot be executed because of timeout in the wait queue

This commit is contained in:
Aliaksandr Valialkin 2023-01-11 01:06:05 -08:00
parent 65b9dcfcca
commit dff47c73b7
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -120,8 +120,8 @@ func RequestHandler(w http.ResponseWriter, r *http.Request) bool {
err := &httpserver.ErrorWithStatusCode{
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; "+
"to increase -search.maxQueueDuration; to increase -search.maxQueryDuration; to increase -search.maxConcurrentRequests",
d.Seconds(), *maxConcurrentRequests),
"to increase -search.maxQueueDuration=%s; to increase -search.maxQueryDuration; to increase -search.maxConcurrentRequests",
d.Seconds(), *maxConcurrentRequests, maxQueueDuration),
StatusCode: http.StatusServiceUnavailable,
}
httpserver.Errorf(w, r, "%s", err)