* [enhancement] querier : Add "query_memory_only" to make loki have option to rely only on memory availability like google monarch.
* Update pkg/querier/querier.go
Co-authored-by: Sandeep Sukhani <sandeep.d.sukhani@gmail.com>
* [enhancement] querier : Add "query_memory_only" to make loki have option to rely only on memory availability like google monarch. #5093
Co-authored-by: Sandeep Sukhani <sandeep.d.sukhani@gmail.com>
f.DurationVar(&cfg.QueryIngestersWithin,"querier.query-ingesters-within",3*time.Hour,"Maximum lookback beyond which queries are not sent to ingester. 0 means all queries are sent to ingester.")
f.IntVar(&cfg.MaxConcurrent,"querier.max-concurrent",10,"The maximum number of concurrent queries.")
f.BoolVar(&cfg.QueryStoreOnly,"querier.query-store-only",false,"Queriers should only query the store and not try to query any ingesters")
f.BoolVar(&cfg.QueryIngesterOnly,"querier.query-ingester-only",false,"Queriers should only query the ingesters and not try to query any store")
}
// Validate validates the config.
func(cfg*Config)Validate()error{
ifcfg.QueryStoreOnly&&cfg.QueryIngesterOnly{
returnerrors.New("querier.query_store_only and querier.query_store_only cannot both be true")