Skip to content

Commit

Permalink
Querier: deprecates max-query-into-future (#7496)
Browse files Browse the repository at this point in the history
`max-query-into-future` has been inherited from Cortex when it was
running on chunks storage. Its purposes was to avoid errors when data
was missing.

Since Mimir does not rely on chunks storage anymore, there is no errors
nor performance  penalty. As such, we can deprecate the setting.

Signed-off-by: Wilfried Roset <[email protected]>
  • Loading branch information
wilfriedroset authored Feb 29, 2024
1 parent 6b9eaa7 commit cce496d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
* [CHANGE] Distributor: Change`-distributor.enable-otlp-metadata-storage` flag's default to true, and deprecate it. The flag will be removed in Mimir 2.14. #7366
* [CHANGE] Store-gateway: Use a shorter TTL for cached items related to temporary blocks. #7407
* [CHANGE] Standardise exemplar label as "trace_id". #7475
* [CHANGE] The configuration option `-querier.max-query-into-future` has been deprecated and will be removed in Mimir 2.14. #7496
* [FEATURE] Introduce `-server.log-source-ips-full` option to log all IPs from `Forwarded`, `X-Real-IP`, `X-Forwarded-For` headers. #7250
* [FEATURE] Introduce `-tenant-federation.max-tenants` option to limit the max number of tenants allowed for requests when federation is enabled. #6959
* [FEATURE] Cardinality API: added a new `count_method` parameter which enables counting active label values. #7085
Expand Down
2 changes: 1 addition & 1 deletion cmd/mimir/config-descriptor.json
Original file line number Diff line number Diff line change
Expand Up @@ -1699,7 +1699,7 @@
"fieldDefaultValue": 600000000000,
"fieldFlag": "querier.max-query-into-future",
"fieldType": "duration",
"fieldCategory": "advanced"
"fieldCategory": "deprecated"
},
{
"kind": "block",
Expand Down
2 changes: 1 addition & 1 deletion cmd/mimir/help-all.txt.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -1712,7 +1712,7 @@ Usage of ./cmd/mimir/mimir:
-querier.max-partial-query-length duration
Limit the time range for partial queries at the querier level.
-querier.max-query-into-future duration
Maximum duration into the future you can query. 0 to disable. (default 10m0s)
[deprecated] Maximum duration into the future you can query. 0 to disable. (default 10m0s)
-querier.max-query-lookback duration
Limit how long back data (series and metadata) can be queried, up until <lookback> duration ago. This limit is enforced in the query-frontend, querier and ruler. If the requested time range is outside the allowed range, the request will not fail but will be manipulated to only query data within the allowed time range. 0 to disable.
-querier.max-query-parallelism int
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,7 @@ The `querier` block configures the querier.
# CLI flag: -querier.query-store-after
[query_store_after: <duration> | default = 12h]
# (advanced) Maximum duration into the future you can query. 0 to disable.
# (deprecated) Maximum duration into the future you can query. 0 to disable.
# CLI flag: -querier.max-query-into-future
[max_query_into_future: <duration> | default = 10m]
Expand Down
5 changes: 3 additions & 2 deletions pkg/querier/querier.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ import (
// Config contains the configuration require to create a querier
type Config struct {
// QueryStoreAfter the time after which queries should also be sent to the store and not just ingesters.
QueryStoreAfter time.Duration `yaml:"query_store_after" category:"advanced"`
MaxQueryIntoFuture time.Duration `yaml:"max_query_into_future" category:"advanced"`
QueryStoreAfter time.Duration `yaml:"query_store_after" category:"advanced"`
// Deprecated in Mimir 2.12, remove in Mimir 2.14
MaxQueryIntoFuture time.Duration `yaml:"max_query_into_future" category:"deprecated"`

StoreGatewayClient ClientConfig `yaml:"store_gateway_client"`

Expand Down

0 comments on commit cce496d

Please sign in to comment.