mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-30 15:22:07 +00:00
app/vmselect/promql: reduce the maximum number of label values, which can be propagated from one side of the binary operation to another side of the binary operation from 10K to 1K
There are user reports that 10K unique values in a single label filter may lead to performance and memory usage issues
This commit is contained in:
parent
3f49bdaeff
commit
0d47c23a03
1 changed files with 1 additions and 1 deletions
|
@ -382,7 +382,7 @@ func getCommonLabelFilters(tss []*timeseries) []metricsql.LabelFilter {
|
|||
continue
|
||||
}
|
||||
values = getUniqueValues(values)
|
||||
if len(values) > 10000 {
|
||||
if len(values) > 1000 {
|
||||
// Skip the filter on the given tag, since it needs to enumerate too many unique values.
|
||||
// This may slow down the search for matching time series.
|
||||
continue
|
||||
|
|
Loading…
Reference in a new issue