mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
app/vmselect/promql: increase default value for -search.maxPointsPerTimeSeries from 10k to 30k
This may be required for subqueries with small steps. See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/77
This commit is contained in:
parent
334cf253c7
commit
d0bf4393a9
1 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
maxPointsPerTimeseries = flag.Int("search.maxPointsPerTimeseries", 10e3, "The maximum points per a single timeseries returned from the search")
|
maxPointsPerTimeseries = flag.Int("search.maxPointsPerTimeseries", 30e3, "The maximum points per a single timeseries returned from the search")
|
||||||
)
|
)
|
||||||
|
|
||||||
// The minimum number of points per timeseries for enabling time rounding.
|
// The minimum number of points per timeseries for enabling time rounding.
|
||||||
|
@ -32,7 +32,7 @@ const minTimeseriesPointsForTimeRounding = 50
|
||||||
func ValidateMaxPointsPerTimeseries(start, end, step int64) error {
|
func ValidateMaxPointsPerTimeseries(start, end, step int64) error {
|
||||||
points := (end-start)/step + 1
|
points := (end-start)/step + 1
|
||||||
if uint64(points) > uint64(*maxPointsPerTimeseries) {
|
if uint64(points) > uint64(*maxPointsPerTimeseries) {
|
||||||
return fmt.Errorf(`too many points for the given step=%d, start=%d and end=%d: %d; cannot exceed %d points`,
|
return fmt.Errorf(`too many points for the given step=%d, start=%d and end=%d: %d; cannot exceed -search.maxPointsPerTimeseries=%d`,
|
||||||
step, start, end, uint64(points), *maxPointsPerTimeseries)
|
step, start, end, uint64(points), *maxPointsPerTimeseries)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in a new issue