Skip to content

Commit

Permalink
Final touches on docs
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>
  • Loading branch information
pedro-stanaka committed Sep 1, 2022
1 parent 461e25d commit bd6417e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
7 changes: 4 additions & 3 deletions cmd/thanos/query_frontend.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,15 @@ func registerQueryFrontend(app *extkingpin.App) {
cmd.Flag("query-range.split-interval", "Split query range requests by an interval and execute in parallel, it should be greater than 0 when query-range.response-cache-config is configured.").
Default("24h").DurationVar(&cfg.QueryRangeConfig.SplitQueriesByInterval)

cmd.Flag("query-range.min-split-interval", "Split query range requests which duration are over this threshold. Using this parameter is not allowed with query-range.split-interval. "+
cmd.Flag("query-range.min-split-interval", "Split query range requests above this interval in query-range.horizontal-shards requests of equal range. "+
"Using this parameter is not allowed with query-range.split-interval. "+
"One should also set query-range.split-min-horizontal-shards to a value greater than 1 to enable splitting.").
Default("0").DurationVar(&cfg.QueryRangeConfig.MinQuerySplitInterval)

cmd.Flag("query-range.max-split-interval", "Split query range requests using this interval. If the query duration is shorter than this value, then use query-range.split-min-horizontal-shards to split query.").
cmd.Flag("query-range.max-split-interval", "Split query range bellow this interval in query-range.horizontal-shards. Queries with a range longer than this value will be split in multiple requests of this length.").
Default("0").DurationVar(&cfg.QueryRangeConfig.MaxQuerySplitInterval)

cmd.Flag("query-range.horizontal-shards", "Split queries in at least this amount of vertical shards, only when query duration is below query-range.max-split-interval.").
cmd.Flag("query-range.horizontal-shards", "Split queries in this many requests when query duration is below query-range.max-split-interval.").
Default("0").Int64Var(&cfg.QueryRangeConfig.HorizontalShards)

cmd.Flag("query-range.max-retries-per-request", "Maximum number of retries for a single query range request; beyond this, the downstream error is returned.").
Expand Down
24 changes: 12 additions & 12 deletions docs/components/query-frontend.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,9 @@ Flags:
cache-ability. Note: Grafana dashboards do that
by default.
--query-range.horizontal-shards=0
Split queries in at least this amount of
vertical shards, only when query duration is
below query-range.max-split-interval.
Split queries in this many requests when query
duration is below
query-range.max-split-interval.
--query-range.max-query-length=0
Limit the query time range (end - start time)
in the query-frontend, 0 disables it.
Expand All @@ -295,16 +295,16 @@ Flags:
range request; beyond this, the downstream
error is returned.
--query-range.max-split-interval=0
Split query range requests using this interval.
If the query duration is shorter than this
value, then use
query-range.split-min-horizontal-shards to
split query.
Split query range bellow this interval in
query-range.horizontal-shards. Queries with a
range longer than this value will be split in
multiple requests of this length.
--query-range.min-split-interval=0
Split query range requests which duration are
over this threshold. Using this parameter is
not allowed with query-range.split-interval.
One should also set
Split query range requests above this interval
in query-range.horizontal-shards requests of
equal range. Using this parameter is not
allowed with query-range.split-interval. One
should also set
query-range.split-min-horizontal-shards to a
value greater than 1 to enable splitting.
--query-range.partial-response
Expand Down

0 comments on commit bd6417e

Please sign in to comment.