mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 08:23:34 +01:00
app/vmselect: simplify wording for too many samples
error (#5827)
(cherry picked from commit 17cf031fa1
)
Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
parent
2e172b9361
commit
0c7eda7c88
@ -1681,8 +1681,8 @@ func ProcessSearchQuery(qt *querytracer.Tracer, denyPartialResponse bool, sq *st
|
||||
if *maxSamplesPerQuery > 0 && n > maxSamplesPerWorker && samples.GetTotal() > uint64(*maxSamplesPerQuery) {
|
||||
return &limitExceededErr{
|
||||
err: fmt.Errorf("cannot select more than -search.maxSamplesPerQuery=%d samples; possible solutions: "+
|
||||
"to increase the -search.maxSamplesPerQuery; to reduce time range for the query; "+
|
||||
"to use more specific label filters in order to select lower number of series", *maxSamplesPerQuery),
|
||||
"increase the -search.maxSamplesPerQuery; reduce time range for the query; "+
|
||||
"use more specific label filters in order to select fewer series", *maxSamplesPerQuery),
|
||||
}
|
||||
}
|
||||
if err := tbfw.RegisterAndWriteBlock(mb, workerID); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user