Skip to content

Commit 41d171d

Browse files
authored
fix typo in usage message for querier.split-queries-by-interval flag (#6305)
1 parent b2c1296 commit 41d171d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/configuration/config-file-reference.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4069,8 +4069,8 @@ The `query_range_config` configures the query splitting and caching in the Corte
40694069

40704070
```yaml
40714071
# Split queries by an interval and execute in parallel, 0 disables it. You
4072-
# should use an a multiple of 24 hours (same as the storage bucketing scheme),
4073-
# to avoid queriers downloading and processing the same chunks. This also
4072+
# should use a multiple of 24 hours (same as the storage bucketing scheme), to
4073+
# avoid queriers downloading and processing the same chunks. This also
40744074
# determines how cache keys are chosen when result caching is enabled
40754075
# CLI flag: -querier.split-queries-by-interval
40764076
[split_queries_by_interval: <duration> | default = 0s]

pkg/querier/tripperware/queryrange/query_range_middlewares.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ type Config struct {
4949
// RegisterFlags adds the flags required to config this to the given FlagSet.
5050
func (cfg *Config) RegisterFlags(f *flag.FlagSet) {
5151
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.")
52-
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 an 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")
52+
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")
5353
f.BoolVar(&cfg.AlignQueriesWithStep, "querier.align-querier-with-step", false, "Mutate incoming queries to align their start and end with their step.")
5454
f.BoolVar(&cfg.CacheResults, "querier.cache-results", false, "Cache query results.")
5555
f.Var(&cfg.ForwardHeaders, "frontend.forward-headers-list", "List of headers forwarded by the query Frontend to downstream querier.")

0 commit comments

Comments
 (0)