app/vmselect/querystats: reduce the default number of last queries to track from 100K to 20K

This should reduce memory usage in constrained environments
This commit is contained in:
Aliaksandr Valialkin 2020-12-25 17:39:50 +02:00
parent e6deb39064
commit 44932098b5

View File

@ -12,7 +12,7 @@ import (
) )
var ( var (
lastQueriesCount = flag.Int("search.queryStats.lastQueriesCount", 100000, "Query stats for `/api/v1/status/top_queries` is tracked on this number of last queries. "+ lastQueriesCount = flag.Int("search.queryStats.lastQueriesCount", 20000, "Query stats for `/api/v1/status/top_queries` is tracked on this number of last queries. "+
"Zero value disables query stats tracking") "Zero value disables query stats tracking")
minQueryDuration = flag.Duration("search.queryStats.minQueryDuration", 0, "The minimum duration for queries to track in query stats at `/api/v1/status/top_queries`. "+ minQueryDuration = flag.Duration("search.queryStats.minQueryDuration", 0, "The minimum duration for queries to track in query stats at `/api/v1/status/top_queries`. "+
"Queries with lower duration are ignored in query stats") "Queries with lower duration are ignored in query stats")