diff --git a/docs/configuration/arguments.md b/docs/configuration/arguments.md index 6ade815cc9f..c3b365dc908 100644 --- a/docs/configuration/arguments.md +++ b/docs/configuration/arguments.md @@ -65,7 +65,7 @@ The next three options only apply when the querier is used together with the Que - `-querier.split-queries-by-interval` - If set, will cause the query frontend to split multi-day queries into multiple queries and execute them in parallel. A multiple of 24h should be used when setting this flag. + If set, will cause the query frontend to split multi-day queries into multiple queries and execute them in parallel. - `-querier.cache-results` diff --git a/docs/configuration/config-file-reference.md b/docs/configuration/config-file-reference.md index 4e8733789fc..a11bad801a9 100644 --- a/docs/configuration/config-file-reference.md +++ b/docs/configuration/config-file-reference.md @@ -5684,10 +5684,8 @@ grpc_client_config: The `query_range_config` configures the query splitting and caching in the Cortex query-frontend. ```yaml -# Split queries by an interval and execute in parallel, 0 disables it. You -# should use a multiple of 24 hours (same as the storage bucketing scheme), to -# avoid queriers downloading and processing the same chunks. This also -# determines how cache keys are chosen when result caching is enabled +# Split queries by an interval and execute in parallel, 0 disables it. This also +# determines how cache keys are chosen when result caching is enabled. # CLI flag: -querier.split-queries-by-interval [split_queries_by_interval: | default = 0s] diff --git a/pkg/querier/tripperware/queryrange/query_range_middlewares.go b/pkg/querier/tripperware/queryrange/query_range_middlewares.go index 5a24ea0565f..d043444486a 100644 --- a/pkg/querier/tripperware/queryrange/query_range_middlewares.go +++ b/pkg/querier/tripperware/queryrange/query_range_middlewares.go @@ -55,7 +55,7 @@ type Config struct { // RegisterFlags adds the flags required to config this to the given FlagSet. func (cfg *Config) RegisterFlags(f *flag.FlagSet) { f.IntVar(&cfg.MaxRetries, "querier.max-retries-per-request", 5, "Maximum number of retries for a single request; beyond this, the downstream error is returned.") - f.DurationVar(&cfg.SplitQueriesByInterval, "querier.split-queries-by-interval", 0, "Split queries by an interval and execute in parallel, 0 disables it. You should use a multiple of 24 hours (same as the storage bucketing scheme), to avoid queriers downloading and processing the same chunks. This also determines how cache keys are chosen when result caching is enabled") + f.DurationVar(&cfg.SplitQueriesByInterval, "querier.split-queries-by-interval", 0, "Split queries by an interval and execute in parallel, 0 disables it. This also determines how cache keys are chosen when result caching is enabled.") f.BoolVar(&cfg.AlignQueriesWithStep, "querier.align-querier-with-step", false, "Mutate incoming queries to align their start and end with their step.") f.BoolVar(&cfg.CacheResults, "querier.cache-results", false, "Cache query results.") f.Var(&cfg.ForwardHeaders, "frontend.forward-headers-list", "List of headers forwarded by the query Frontend to downstream querier.") diff --git a/schemas/cortex-config-schema.json b/schemas/cortex-config-schema.json index 3388a5058ef..6ad801f8dcf 100644 --- a/schemas/cortex-config-schema.json +++ b/schemas/cortex-config-schema.json @@ -7207,7 +7207,7 @@ }, "split_queries_by_interval": { "default": "0s", - "description": "Split queries by an interval and execute in parallel, 0 disables it. You should use a multiple of 24 hours (same as the storage bucketing scheme), to avoid queriers downloading and processing the same chunks. This also determines how cache keys are chosen when result caching is enabled", + "description": "Split queries by an interval and execute in parallel, 0 disables it. This also determines how cache keys are chosen when result caching is enabled.", "type": "string", "x-cli-flag": "querier.split-queries-by-interval", "x-format": "duration"