From dff47c73b78c8bc9a1705f1007035258f6980f48 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Wed, 11 Jan 2023 01:06:05 -0800 Subject: [PATCH] app/vmselect: improve logging when the incoming query cannot be executed because of timeout in the wait queue --- app/vmselect/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/vmselect/main.go b/app/vmselect/main.go index 0f92237c6..0c966089c 100644 --- a/app/vmselect/main.go +++ b/app/vmselect/main.go @@ -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)