Skip to content

Commit

Permalink
store-gateway: clean up chunks fetching, deprecate bucketed chunks po…
Browse files Browse the repository at this point in the history
…ol (#4996)


---------

Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>
  • Loading branch information
dimitarvdimitrov authored May 16, 2023
1 parent da7a226 commit 942e16c
Show file tree
Hide file tree
Showing 77 changed files with 219 additions and 951 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
* [CHANGE] Querier: `-querier.query-ingesters-within` has been moved from a global flag to a per-tenant override. #4287
* [CHANGE] Querier: Use `-blocks-storage.tsdb.retention-period` instead of `-querier.query-ingesters-within` for calculating the lookback period for shuffle sharded ingesters. Setting `-querier.query-ingesters-within=0` no longer disables shuffle sharding on the read path. #4287
* [CHANGE] Block upload: `/api/v1/upload/block/{block}/files` endpoint now allows file uploads with no `Content-Length`. #4956
* [CHANGE] Store-gateway: deprecate configuration parameters for chunk pooling, they will be removed in Mimir 2.11. The following options are now also ignored: #4996
* `-blocks-storage.bucket-store.max-chunk-pool-bytes`
* `-blocks-storage.bucket-store.chunk-pool-min-bucket-size-bytes`
* `-blocks-storage.bucket-store.chunk-pool-max-bucket-size-bytes`
* [CHANGE] Store-gateway: remove metrics `cortex_bucket_store_chunk_pool_requested_bytes_total` and `cortex_bucket_store_chunk_pool_returned_bytes_total`. #4996
* [ENHANCEMENT] Add per-tenant limit `-validation.max-native-histogram-buckets` to be able to ignore native histogram samples that have too many buckets. #4765
* [ENHANCEMENT] Store-gateway: reduce memory usage in some LabelValues calls. #4789
* [ENHANCEMENT] Store-gateway: add a `stage` label to the metric `cortex_bucket_store_series_data_touched`. This label now applies to `data_type="chunks"` and `data_type="series"`. The `stage` label has 2 values: `processed` - the number of series that parsed - and `returned` - the number of series selected from the processed bytes to satisfy the query. #4797 #4830
Expand Down
6 changes: 3 additions & 3 deletions cmd/mimir/config-descriptor.json
Original file line number Diff line number Diff line change
Expand Up @@ -7057,7 +7057,7 @@
"fieldDefaultValue": 2147483648,
"fieldFlag": "blocks-storage.bucket-store.max-chunk-pool-bytes",
"fieldType": "int",
"fieldCategory": "advanced"
"fieldCategory": "deprecated"
},
{
"kind": "field",
Expand All @@ -7068,7 +7068,7 @@
"fieldDefaultValue": 16000,
"fieldFlag": "blocks-storage.bucket-store.chunk-pool-min-bucket-size-bytes",
"fieldType": "int",
"fieldCategory": "advanced"
"fieldCategory": "deprecated"
},
{
"kind": "field",
Expand All @@ -7079,7 +7079,7 @@
"fieldDefaultValue": 50000000,
"fieldFlag": "blocks-storage.bucket-store.chunk-pool-max-bucket-size-bytes",
"fieldType": "int",
"fieldCategory": "advanced"
"fieldCategory": "deprecated"
},
{
"kind": "field",
Expand Down
6 changes: 3 additions & 3 deletions cmd/mimir/help-all.txt.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,9 @@ Usage of ./cmd/mimir/mimir:
-blocks-storage.bucket-store.bucket-index.update-on-error-interval duration
How frequently a bucket index, which previously failed to load, should be tried to load again. This option is used only by querier. (default 1m0s)
-blocks-storage.bucket-store.chunk-pool-max-bucket-size-bytes int
Size - in bytes - of the largest chunks pool bucket. (default 50000000)
[deprecated] Size - in bytes - of the largest chunks pool bucket. (default 50000000)
-blocks-storage.bucket-store.chunk-pool-min-bucket-size-bytes int
Size - in bytes - of the smallest chunks pool bucket. (default 16000)
[deprecated] Size - in bytes - of the smallest chunks pool bucket. (default 16000)
-blocks-storage.bucket-store.chunks-cache.attributes-in-memory-max-items int
Maximum number of object attribute items to keep in a first level in-memory LRU cache. Metadata will be stored and fetched in-memory before hitting the cache backend. 0 to disable the in-memory cache. (default 50000)
-blocks-storage.bucket-store.chunks-cache.attributes-ttl duration
Expand Down Expand Up @@ -488,7 +488,7 @@ Usage of ./cmd/mimir/mimir:
-blocks-storage.bucket-store.index-header.max-idle-file-handles uint
Maximum number of idle file handles the store-gateway keeps open for each index-header file. (default 1)
-blocks-storage.bucket-store.max-chunk-pool-bytes uint
Max size - in bytes - of a chunks pool, used to reduce memory allocations. The pool is shared across all tenants. 0 to disable the limit. (default 2147483648)
[deprecated] Max size - in bytes - of a chunks pool, used to reduce memory allocations. The pool is shared across all tenants. 0 to disable the limit. (default 2147483648)
-blocks-storage.bucket-store.max-concurrent int
Max number of concurrent queries to execute against the long-term storage. The limit is shared across all tenants. (default 100)
-blocks-storage.bucket-store.meta-sync-concurrency int
Expand Down
7 changes: 7 additions & 0 deletions docs/sources/mimir/configure/about-versioning.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,10 @@ The following features are currently deprecated and will be **removed in Mimir 2

- Ingester
- `-blocks-storage.tsdb.max-tsdb-opening-concurrency-on-startup`

The following features are currently deprecated and will be **removed in Mimir 2.11**:

- Store-gateway
- `-blocks-storage.bucket-store.chunk-pool-min-bucket-size-bytes`
- `-blocks-storage.bucket-store.chunk-pool-max-bucket-size-bytes`
- `-blocks-storage.bucket-store.max-chunk-pool-bytes`
Original file line number Diff line number Diff line change
Expand Up @@ -3199,16 +3199,16 @@ bucket_store:
# CLI flag: -blocks-storage.bucket-store.ignore-blocks-within
[ignore_blocks_within: <duration> | default = 10h]
# (advanced) Max size - in bytes - of a chunks pool, used to reduce memory
# (deprecated) Max size - in bytes - of a chunks pool, used to reduce memory
# allocations. The pool is shared across all tenants. 0 to disable the limit.
# CLI flag: -blocks-storage.bucket-store.max-chunk-pool-bytes
[max_chunk_pool_bytes: <int> | default = 2147483648]
# (advanced) Size - in bytes - of the smallest chunks pool bucket.
# (deprecated) Size - in bytes - of the smallest chunks pool bucket.
# CLI flag: -blocks-storage.bucket-store.chunk-pool-min-bucket-size-bytes
[chunk_pool_min_bucket_size_bytes: <int> | default = 16000]
# (advanced) Size - in bytes - of the largest chunks pool bucket.
# (deprecated) Size - in bytes - of the largest chunks pool bucket.
# CLI flag: -blocks-storage.bucket-store.chunk-pool-max-bucket-size-bytes
[chunk_pool_max_bucket_size_bytes: <int> | default = 50000000]
Expand Down
1 change: 0 additions & 1 deletion operations/helm/charts/mimir-distributed/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ mimir:
blocks_storage:
backend: s3
bucket_store:
max_chunk_pool_bytes: 12884901888 # 12GiB
{{- if index .Values "chunks-cache" "enabled" }}
chunks_cache:
backend: memcached
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ data:
blocks_storage:
backend: s3
bucket_store:
max_chunk_pool_bytes: 12884901888
sync_dir: /data/tsdb-sync
s3:
access_key_id: grafana-mimir
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ data:
blocks_storage:
backend: s3
bucket_store:
max_chunk_pool_bytes: 12884901888
sync_dir: /data/tsdb-sync
s3:
access_key_id: grafana-mimir
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ data:
blocks_storage:
backend: s3
bucket_store:
max_chunk_pool_bytes: 12884901888
sync_dir: /data/tsdb-sync
s3:
access_key_id: grafana-mimir
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ data:
addresses: dns+large-values-mimir-index-cache.citestns.svc:11211
max_idle_connections: 150
max_item_size: 5242880
max_chunk_pool_bytes: 12884901888
metadata_cache:
backend: memcached
memcached:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ data:
blocks_storage:
backend: s3
bucket_store:
max_chunk_pool_bytes: 12884901888
sync_dir: /data/tsdb-sync
s3:
access_key_id: grafana-mimir
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ data:
blocks_storage:
backend: s3
bucket_store:
max_chunk_pool_bytes: 12884901888
sync_dir: /data/tsdb-sync
tsdb:
dir: /data/tsdb
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ data:
blocks_storage:
backend: s3
bucket_store:
max_chunk_pool_bytes: 12884901888
sync_dir: /data/tsdb-sync
tsdb:
dir: /data/tsdb
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ data:
addresses: dns+small-values-mimir-index-cache.citestns.svc:11211
max_idle_connections: 150
max_item_size: 5242880
max_chunk_pool_bytes: 12884901888
metadata_cache:
backend: memcached
memcached:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ data:
blocks_storage:
backend: s3
bucket_store:
max_chunk_pool_bytes: 12884901888
sync_dir: /data/tsdb-sync
s3:
access_key_id: ${MINIO_ROOT_USER}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ data:
blocks_storage:
backend: s3
bucket_store:
max_chunk_pool_bytes: 12884901888
sync_dir: /data/tsdb-sync
s3:
access_key_id: grafana-mimir
Expand Down
Loading

0 comments on commit 942e16c

Please sign in to comment.