From 73da3454995fbd906073ef20808390ca6be28afe Mon Sep 17 00:00:00 2001 From: Timon Engelke Date: Mon, 16 Nov 2026 15:24:08 +0100 Subject: [PATCH 1/3] docs: remove wrong comment on querier.split-queries-by-interval Signed-off-by: Timon Engelke --- docs/configuration/config-file-reference.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/configuration/config-file-reference.md b/docs/configuration/config-file-reference.md index 4e8733789fc..278a4ddefc6 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] From 16f7b483c3357adc74b04387968585e27c170793 Mon Sep 17 00:00:00 2001 From: Timon Engelke Date: Thu, 19 Nov 2026 10:33:55 +0100 Subject: [PATCH 2/3] update documentation in source code and run make doc Signed-off-by: Timon Engelke --- docs/configuration/config-file-reference.md | 4 ++-- pkg/querier/tripperware/queryrange/query_range_middlewares.go | 2 +- schemas/cortex-config-schema.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/configuration/config-file-reference.md b/docs/configuration/config-file-reference.md index 278a4ddefc6..a11bad801a9 100644 --- a/docs/configuration/config-file-reference.md +++ b/docs/configuration/config-file-reference.md @@ -5684,8 +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. 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" From 668797128262476197536a73bd25273e139a6eb4 Mon Sep 17 00:00:00 2001 From: Timon Engelke Date: Mon, 30 Nov 2026 14:24:13 +0100 Subject: [PATCH 3/3] remove it in configuration/arguments.md as well Signed-off-by: Timon Engelke --- docs/configuration/arguments.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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`