Skip to content

Commit 4bcf564

Browse files
authored
Improve the limits docs (#4905)
Signed-off-by: 🌲 Harry 🌊 John 🏔 <johrry@amazon.com> Signed-off-by: 🌲 Harry 🌊 John 🏔 <johrry@amazon.com>
1 parent 0d820c2 commit 4bcf564

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
* [ENHANCEMENT] Compactor: Introduced visit marker file for blocks so blocks are under compaction will not be picked up by another compactor. #4805
5050
* [ENHANCEMENT] Distributor: Add label name to labelValueTooLongError. #4855
5151
* [ENHANCEMENT] Enhance traces with hostname information. #4898
52+
* [ENHANCEMENT] Improve the documentation around limits. #4905
5253
* [FEATURE] Compactor: Added `-compactor.block-files-concurrency` allowing to configure number of go routines for download/upload block files during compaction. #4784
5354
* [FEATURE] Compactor: Added -compactor.blocks-fetch-concurrency` allowing to configure number of go routines for blocks during compaction. #4787
5455
* [FEATURE] Compactor: Added configurations for Azure MSI in blocks-storage, ruler-storage and alertmanager-storage. #4818

docs/configuration/config-file-reference.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2668,22 +2668,20 @@ The `limits_config` configures default and per-tenant limits imposed by Cortex s
26682668
[max_fetched_chunks_per_query: <int> | default = 2000000]
26692669
26702670
# The maximum number of unique series for which a query can fetch samples from
2671-
# each ingesters and blocks storage. This limit is enforced in the querier only
2672-
# when running Cortex with blocks storage. 0 to disable
2671+
# each ingesters and blocks storage. This limit is enforced in the querier,
2672+
# ruler and store-gateway. 0 to disable
26732673
# CLI flag: -querier.max-fetched-series-per-query
26742674
[max_fetched_series_per_query: <int> | default = 0]
26752675
26762676
# Deprecated (user max-fetched-data-bytes-per-query instead): The maximum size
26772677
# of all chunks in bytes that a query can fetch from each ingester and storage.
2678-
# This limit is enforced in the querier and ruler only when running Cortex with
2679-
# blocks storage. 0 to disable.
2678+
# This limit is enforced in the querier, ruler and store-gateway. 0 to disable.
26802679
# CLI flag: -querier.max-fetched-chunk-bytes-per-query
26812680
[max_fetched_chunk_bytes_per_query: <int> | default = 0]
26822681
26832682
# The maximum combined size of all data that a query can fetch from each
2684-
# ingester and storage. This limit is only applied for `query`, `query_range`
2685-
# and `series` APIs. This limit is enforced in the querier and ruler only when
2686-
# running Cortex with blocks storage. 0 to disable.
2683+
# ingester and storage. This limit is enforced in the querier and ruler for
2684+
# `query`, `query_range` and `series` APIs. 0 to disable.
26872685
# CLI flag: -querier.max-fetched-data-bytes-per-query
26882686
[max_fetched_data_bytes_per_query: <int> | default = 0]
26892687

pkg/util/validation/limits.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ func (l *Limits) RegisterFlags(f *flag.FlagSet) {
150150
f.IntVar(&l.MaxGlobalMetricsWithMetadataPerUser, "ingester.max-global-metadata-per-user", 0, "The maximum number of active metrics with metadata per user, across the cluster. 0 to disable. Supported only if -distributor.shard-by-all-labels is true.")
151151
f.IntVar(&l.MaxGlobalMetadataPerMetric, "ingester.max-global-metadata-per-metric", 0, "The maximum number of metadata per metric, across the cluster. 0 to disable.")
152152
f.IntVar(&l.MaxChunksPerQuery, "querier.max-fetched-chunks-per-query", 2000000, "Maximum number of chunks that can be fetched in a single query from ingesters and long-term storage. This limit is enforced in the querier, ruler and store-gateway. 0 to disable.")
153-
f.IntVar(&l.MaxFetchedSeriesPerQuery, "querier.max-fetched-series-per-query", 0, "The maximum number of unique series for which a query can fetch samples from each ingesters and blocks storage. This limit is enforced in the querier only when running Cortex with blocks storage. 0 to disable")
154-
f.IntVar(&l.MaxFetchedChunkBytesPerQuery, "querier.max-fetched-chunk-bytes-per-query", 0, "Deprecated (user max-fetched-data-bytes-per-query instead): The maximum size of all chunks in bytes that a query can fetch from each ingester and storage. This limit is enforced in the querier and ruler only when running Cortex with blocks storage. 0 to disable.")
155-
f.IntVar(&l.MaxFetchedDataBytesPerQuery, "querier.max-fetched-data-bytes-per-query", 0, "The maximum combined size of all data that a query can fetch from each ingester and storage. This limit is only applied for `query`, `query_range` and `series` APIs. This limit is enforced in the querier and ruler only when running Cortex with blocks storage. 0 to disable.")
153+
f.IntVar(&l.MaxFetchedSeriesPerQuery, "querier.max-fetched-series-per-query", 0, "The maximum number of unique series for which a query can fetch samples from each ingesters and blocks storage. This limit is enforced in the querier, ruler and store-gateway. 0 to disable")
154+
f.IntVar(&l.MaxFetchedChunkBytesPerQuery, "querier.max-fetched-chunk-bytes-per-query", 0, "Deprecated (user max-fetched-data-bytes-per-query instead): The maximum size of all chunks in bytes that a query can fetch from each ingester and storage. This limit is enforced in the querier, ruler and store-gateway. 0 to disable.")
155+
f.IntVar(&l.MaxFetchedDataBytesPerQuery, "querier.max-fetched-data-bytes-per-query", 0, "The maximum combined size of all data that a query can fetch from each ingester and storage. This limit is enforced in the querier and ruler for `query`, `query_range` and `series` APIs. 0 to disable.")
156156
f.Var(&l.MaxQueryLength, "store.max-query-length", "Limit the query time range (end - start time). This limit is enforced in the query-frontend (on the received query) and in the querier (on the query possibly split by the query-frontend). 0 to disable.")
157157
f.Var(&l.MaxQueryLookback, "querier.max-query-lookback", "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.")
158158
f.IntVar(&l.MaxQueryParallelism, "querier.max-query-parallelism", 14, "Maximum number of split queries will be scheduled in parallel by the frontend.")

0 commit comments

Comments
 (0)