Skip to content

Commit c49d61f

Browse files
authored
Deprecate 'querier.ingester-metadata-streaming' flag (#6147)
* Deprecate 'querier.ingester-metadata-streaming' flag Signed-off-by: alanprot <[email protected]> * Changelog Signed-off-by: alanprot <[email protected]> --------- Signed-off-by: alanprot <[email protected]>
1 parent a0704d3 commit c49d61f

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* [CHANGE] Server: Instrument `cortex_request_duration_seconds` metric with native histogram. If `native-histograms` feature is enabled in monitoring Prometheus then the metric name needs to be updated in your dashboards. #6056
77
* [CHANGE] Distributor/Ingester: Change `cortex_distributor_ingester_appends_total`, `cortex_distributor_ingester_append_failures_total`, `cortex_distributor_ingester_queries_total`, and `cortex_distributor_ingester_query_failures_total` metrics to use the ingester ID instead of its IP as the label value. #6078
88
* [CHANGE] OTLP: Set `AddMetricSuffixes` to true to always enable metric name normalization. #6136
9+
* [CHANGE] Querier: Deprecate and enable by default `querier.ingester-metadata-streaming` flag. #6147
910
* [FEATURE] Ingester/Distributor: Experimental: Enable native histogram ingestion via `-blocks-storage.tsdb.enable-native-histograms` flag. #5986 #6010 #6020
1011
* [FEATURE] Querier: Enable querying native histogram chunks. #5944 #6031
1112
* [FEATURE] Query Frontend: Support native histogram in query frontend response. #5996 #6043

docs/blocks-storage/querier.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,10 @@ querier:
104104
# CLI flag: -querier.timeout
105105
[timeout: <duration> | default = 2m]
106106

107-
# Use streaming RPCs for metadata APIs from ingester.
107+
# Deprecated (This feature will be always on after v1.18): Use streaming RPCs
108+
# for metadata APIs from ingester.
108109
# CLI flag: -querier.ingester-metadata-streaming
109-
[ingester_metadata_streaming: <boolean> | default = false]
110+
[ingester_metadata_streaming: <boolean> | default = true]
110111

111112
# Maximum number of samples a single query can load into memory.
112113
# CLI flag: -querier.max-samples

docs/configuration/config-file-reference.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3698,9 +3698,10 @@ The `querier_config` configures the Cortex querier.
36983698
# CLI flag: -querier.timeout
36993699
[timeout: <duration> | default = 2m]
37003700
3701-
# Use streaming RPCs for metadata APIs from ingester.
3701+
# Deprecated (This feature will be always on after v1.18): Use streaming RPCs
3702+
# for metadata APIs from ingester.
37023703
# CLI flag: -querier.ingester-metadata-streaming
3703-
[ingester_metadata_streaming: <boolean> | default = false]
3704+
[ingester_metadata_streaming: <boolean> | default = true]
37043705
37053706
# Maximum number of samples a single query can load into memory.
37063707
# CLI flag: -querier.max-samples

pkg/querier/querier.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func (cfg *Config) RegisterFlags(f *flag.FlagSet) {
108108
cfg.StoreGatewayClient.RegisterFlagsWithPrefix("querier.store-gateway-client", f)
109109
f.IntVar(&cfg.MaxConcurrent, "querier.max-concurrent", 20, "The maximum number of concurrent queries.")
110110
f.DurationVar(&cfg.Timeout, "querier.timeout", 2*time.Minute, "The timeout for a query.")
111-
f.BoolVar(&cfg.IngesterMetadataStreaming, "querier.ingester-metadata-streaming", false, "Use streaming RPCs for metadata APIs from ingester.")
111+
f.BoolVar(&cfg.IngesterMetadataStreaming, "querier.ingester-metadata-streaming", true, "Deprecated (This feature will be always on after v1.18): Use streaming RPCs for metadata APIs from ingester.")
112112
f.IntVar(&cfg.MaxSamples, "querier.max-samples", 50e6, "Maximum number of samples a single query can load into memory.")
113113
f.DurationVar(&cfg.QueryIngestersWithin, "querier.query-ingesters-within", 0, "Maximum lookback beyond which queries are not sent to ingester. 0 means all queries are sent to ingester.")
114114
f.BoolVar(&cfg.EnablePerStepStats, "querier.per-step-stats-enabled", false, "Enable returning samples stats per steps in query response.")

0 commit comments

Comments
 (0)