Skip to content

Commit 37e3816

Browse files
authored
Change the default of ignore_deletion_mark_delay to 1h (#892)
* Change the default of ignore_deletion_mark_delay to 1h * Remove reference to actual default value in docs
1 parent 34cae90 commit 37e3816

13 files changed

+10
-32
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@
219219
* `-ruler.sharding-strategy` option has been removed from ruler. Ruler now uses shuffle-sharding by default, but respects `ruler_tenant_shard_size`, which defaults to 0 (ie. use all rulers for tenant). #889
220220
* `-store-gateway.sharding-strategy` option has been removed store-gateways. Store-gateway now uses shuffle-sharding by default, but respects `store_gateway_tenant_shard_size` for tenant, and this value defaults to 0. #891
221221
* [CHANGE] Server: `-server.http-listen-port` (yaml: `server.http_listen_port`) now defaults to `8080` (previously `80`). #871
222+
* [CHANGE] Changed the default value of `blocks-storage.bucket-store.ignore-deletion-marks-delay` from 6h to 1h. #892
222223
* [FEATURE] Query Frontend: Add `cortex_query_fetched_chunks_total` per-user counter to expose the number of chunks fetched as part of queries. This metric can be enabled with the `-frontend.query-stats-enabled` flag (or its respective YAML config option `query_stats_enabled`). #31
223224
* [FEATURE] Query Frontend: Add experimental querysharding for the blocks storage (instant and range queries). You can now enable querysharding for blocks storage (`-store.engine=blocks`) by setting `-frontend.parallelize-shardable-queries` to `true`. The following additional config and exported metrics have been added. #79 #80 #100 #124 #140 #148 #150 #151 #153 #154 #155 #156 #157 #158 #159 #160 #163 #169 #172 #196 #205 #225 #226 #227 #228 #230 #235 #240 #239 #246 #244 #319 #330 #371 #385 #400 #458 #586 #630 #660 #707
224225
* New config options:

docs/sources/blocks-storage/production-tips.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Because of this, we would suggest to avoid querying non compacted blocks. In ord
5151
3. Configure queriers `-querier.query-store-after` large enough to give compactor enough time to compact newly uploaded blocks (_see below_)
5252
4. Configure queriers `-querier.query-ingesters-within` equal to `-querier.query-store-after` plus 5m (5 minutes is just a delta to query the boundary both from ingesters and queriers)
5353
5. Configure ingesters `-blocks-storage.tsdb.retention-period` at least as `-querier.query-ingesters-within`
54-
6. Lower `-blocks-storage.bucket-store.ignore-deletion-marks-delay` to 1h, otherwise non compacted blocks could be queried anyway, even if their compacted replacement is available
54+
6. Ensure `-blocks-storage.bucket-store.ignore-deletion-marks-delay` is not too large (the default is suggested), otherwise non compacted blocks could be queried anyway, even if their compacted replacement is available
5555

5656
#### How to estimate `-querier.query-store-after`
5757

docs/sources/blocks-storage/querier.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -578,10 +578,9 @@ blocks_storage:
578578
# while fetching blocks. The idea of ignore-deletion-marks-delay is to
579579
# ignore blocks that are marked for deletion with some delay. This ensures
580580
# store can still serve blocks that are meant to be deleted but do not have
581-
# a replacement yet. Default is 6h, half of the default value for
582-
# -compactor.deletion-delay.
581+
# a replacement yet.
583582
# CLI flag: -blocks-storage.bucket-store.ignore-deletion-marks-delay
584-
[ignore_deletion_mark_delay: <duration> | default = 6h]
583+
[ignore_deletion_mark_delay: <duration> | default = 1h]
585584
586585
bucket_index:
587586
# True to enable querier and store-gateway to discover blocks in the

docs/sources/blocks-storage/store-gateway.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -649,10 +649,9 @@ blocks_storage:
649649
# while fetching blocks. The idea of ignore-deletion-marks-delay is to
650650
# ignore blocks that are marked for deletion with some delay. This ensures
651651
# store can still serve blocks that are meant to be deleted but do not have
652-
# a replacement yet. Default is 6h, half of the default value for
653-
# -compactor.deletion-delay.
652+
# a replacement yet.
654653
# CLI flag: -blocks-storage.bucket-store.ignore-deletion-marks-delay
655-
[ignore_deletion_mark_delay: <duration> | default = 6h]
654+
[ignore_deletion_mark_delay: <duration> | default = 1h]
656655
657656
bucket_index:
658657
# True to enable querier and store-gateway to discover blocks in the

docs/sources/configuration/config-file-reference.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3047,10 +3047,9 @@ bucket_store:
30473047
# while fetching blocks. The idea of ignore-deletion-marks-delay is to ignore
30483048
# blocks that are marked for deletion with some delay. This ensures store can
30493049
# still serve blocks that are meant to be deleted but do not have a
3050-
# replacement yet. Default is 6h, half of the default value for
3051-
# -compactor.deletion-delay.
3050+
# replacement yet.
30523051
# CLI flag: -blocks-storage.bucket-store.ignore-deletion-marks-delay
3053-
[ignore_deletion_mark_delay: <duration> | default = 6h]
3052+
[ignore_deletion_mark_delay: <duration> | default = 1h]
30543053
30553054
bucket_index:
30563055
# True to enable querier and store-gateway to discover blocks in the storage

operations/mimir-tests/test-disable-chunk-streaming-generated.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,6 @@ spec:
822822
- args:
823823
- -blocks-storage.backend=gcs
824824
- -blocks-storage.bucket-store.bucket-index.enabled=true
825-
- -blocks-storage.bucket-store.ignore-deletion-marks-delay=1h
826825
- -blocks-storage.bucket-store.metadata-cache.backend=memcached
827826
- -blocks-storage.bucket-store.metadata-cache.memcached.addresses=dnssrvnoa+memcached-metadata.default.svc.cluster.local:11211
828827
- -blocks-storage.bucket-store.metadata-cache.memcached.max-async-buffer-size=25000
@@ -1062,7 +1061,6 @@ spec:
10621061
- -api.response-compression-enabled=true
10631062
- -blocks-storage.backend=gcs
10641063
- -blocks-storage.bucket-store.bucket-index.enabled=true
1065-
- -blocks-storage.bucket-store.ignore-deletion-marks-delay=1h
10661064
- -blocks-storage.bucket-store.metadata-cache.backend=memcached
10671065
- -blocks-storage.bucket-store.metadata-cache.memcached.addresses=dnssrvnoa+memcached-metadata.default.svc.cluster.local:11211
10681066
- -blocks-storage.bucket-store.metadata-cache.memcached.max-async-buffer-size=25000
@@ -1657,7 +1655,6 @@ spec:
16571655
- -blocks-storage.bucket-store.chunks-cache.memcached.max-item-size=1048576
16581656
- -blocks-storage.bucket-store.chunks-cache.memcached.timeout=200ms
16591657
- -blocks-storage.bucket-store.ignore-blocks-within=10h
1660-
- -blocks-storage.bucket-store.ignore-deletion-marks-delay=1h
16611658
- -blocks-storage.bucket-store.index-cache.backend=memcached
16621659
- -blocks-storage.bucket-store.index-cache.memcached.addresses=dnssrvnoa+memcached-index-queries.default.svc.cluster.local:11211
16631660
- -blocks-storage.bucket-store.index-cache.memcached.max-async-buffer-size=25000

operations/mimir-tests/test-query-sharding-generated.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,6 @@ spec:
821821
- args:
822822
- -blocks-storage.backend=gcs
823823
- -blocks-storage.bucket-store.bucket-index.enabled=true
824-
- -blocks-storage.bucket-store.ignore-deletion-marks-delay=1h
825824
- -blocks-storage.bucket-store.metadata-cache.backend=memcached
826825
- -blocks-storage.bucket-store.metadata-cache.memcached.addresses=dnssrvnoa+memcached-metadata.default.svc.cluster.local:11211
827826
- -blocks-storage.bucket-store.metadata-cache.memcached.max-async-buffer-size=25000
@@ -1066,7 +1065,6 @@ spec:
10661065
- -api.response-compression-enabled=true
10671066
- -blocks-storage.backend=gcs
10681067
- -blocks-storage.bucket-store.bucket-index.enabled=true
1069-
- -blocks-storage.bucket-store.ignore-deletion-marks-delay=1h
10701068
- -blocks-storage.bucket-store.metadata-cache.backend=memcached
10711069
- -blocks-storage.bucket-store.metadata-cache.memcached.addresses=dnssrvnoa+memcached-metadata.default.svc.cluster.local:11211
10721070
- -blocks-storage.bucket-store.metadata-cache.memcached.max-async-buffer-size=25000
@@ -1661,7 +1659,6 @@ spec:
16611659
- -blocks-storage.bucket-store.chunks-cache.memcached.max-item-size=1048576
16621660
- -blocks-storage.bucket-store.chunks-cache.memcached.timeout=200ms
16631661
- -blocks-storage.bucket-store.ignore-blocks-within=10h
1664-
- -blocks-storage.bucket-store.ignore-deletion-marks-delay=1h
16651662
- -blocks-storage.bucket-store.index-cache.backend=memcached
16661663
- -blocks-storage.bucket-store.index-cache.memcached.addresses=dnssrvnoa+memcached-index-queries.default.svc.cluster.local:11211
16671664
- -blocks-storage.bucket-store.index-cache.memcached.max-async-buffer-size=25000

operations/mimir-tests/test-shuffle-sharding-generated.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,6 @@ spec:
822822
- args:
823823
- -blocks-storage.backend=gcs
824824
- -blocks-storage.bucket-store.bucket-index.enabled=true
825-
- -blocks-storage.bucket-store.ignore-deletion-marks-delay=1h
826825
- -blocks-storage.bucket-store.metadata-cache.backend=memcached
827826
- -blocks-storage.bucket-store.metadata-cache.memcached.addresses=dnssrvnoa+memcached-metadata.default.svc.cluster.local:11211
828827
- -blocks-storage.bucket-store.metadata-cache.memcached.max-async-buffer-size=25000
@@ -1067,7 +1066,6 @@ spec:
10671066
- -api.response-compression-enabled=true
10681067
- -blocks-storage.backend=gcs
10691068
- -blocks-storage.bucket-store.bucket-index.enabled=true
1070-
- -blocks-storage.bucket-store.ignore-deletion-marks-delay=1h
10711069
- -blocks-storage.bucket-store.metadata-cache.backend=memcached
10721070
- -blocks-storage.bucket-store.metadata-cache.memcached.addresses=dnssrvnoa+memcached-metadata.default.svc.cluster.local:11211
10731071
- -blocks-storage.bucket-store.metadata-cache.memcached.max-async-buffer-size=25000
@@ -1667,7 +1665,6 @@ spec:
16671665
- -blocks-storage.bucket-store.chunks-cache.memcached.max-item-size=1048576
16681666
- -blocks-storage.bucket-store.chunks-cache.memcached.timeout=200ms
16691667
- -blocks-storage.bucket-store.ignore-blocks-within=10h
1670-
- -blocks-storage.bucket-store.ignore-deletion-marks-delay=1h
16711668
- -blocks-storage.bucket-store.index-cache.backend=memcached
16721669
- -blocks-storage.bucket-store.index-cache.memcached.addresses=dnssrvnoa+memcached-index-queries.default.svc.cluster.local:11211
16731670
- -blocks-storage.bucket-store.index-cache.memcached.max-async-buffer-size=25000

operations/mimir-tests/test-storage-azure-generated.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,6 @@ spec:
824824
- -blocks-storage.azure.container-name=blocks-bucket
825825
- -blocks-storage.backend=azure
826826
- -blocks-storage.bucket-store.bucket-index.enabled=true
827-
- -blocks-storage.bucket-store.ignore-deletion-marks-delay=1h
828827
- -blocks-storage.bucket-store.metadata-cache.backend=memcached
829828
- -blocks-storage.bucket-store.metadata-cache.memcached.addresses=dnssrvnoa+memcached-metadata.default.svc.cluster.local:11211
830829
- -blocks-storage.bucket-store.metadata-cache.memcached.max-async-buffer-size=25000
@@ -1066,7 +1065,6 @@ spec:
10661065
- -blocks-storage.azure.container-name=blocks-bucket
10671066
- -blocks-storage.backend=azure
10681067
- -blocks-storage.bucket-store.bucket-index.enabled=true
1069-
- -blocks-storage.bucket-store.ignore-deletion-marks-delay=1h
10701068
- -blocks-storage.bucket-store.metadata-cache.backend=memcached
10711069
- -blocks-storage.bucket-store.metadata-cache.memcached.addresses=dnssrvnoa+memcached-metadata.default.svc.cluster.local:11211
10721070
- -blocks-storage.bucket-store.metadata-cache.memcached.max-async-buffer-size=25000
@@ -1671,7 +1669,6 @@ spec:
16711669
- -blocks-storage.bucket-store.chunks-cache.memcached.max-item-size=1048576
16721670
- -blocks-storage.bucket-store.chunks-cache.memcached.timeout=200ms
16731671
- -blocks-storage.bucket-store.ignore-blocks-within=10h
1674-
- -blocks-storage.bucket-store.ignore-deletion-marks-delay=1h
16751672
- -blocks-storage.bucket-store.index-cache.backend=memcached
16761673
- -blocks-storage.bucket-store.index-cache.memcached.addresses=dnssrvnoa+memcached-index-queries.default.svc.cluster.local:11211
16771674
- -blocks-storage.bucket-store.index-cache.memcached.max-async-buffer-size=25000

operations/mimir-tests/test-storage-gcs-generated.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,6 @@ spec:
821821
- args:
822822
- -blocks-storage.backend=gcs
823823
- -blocks-storage.bucket-store.bucket-index.enabled=true
824-
- -blocks-storage.bucket-store.ignore-deletion-marks-delay=1h
825824
- -blocks-storage.bucket-store.metadata-cache.backend=memcached
826825
- -blocks-storage.bucket-store.metadata-cache.memcached.addresses=dnssrvnoa+memcached-metadata.default.svc.cluster.local:11211
827826
- -blocks-storage.bucket-store.metadata-cache.memcached.max-async-buffer-size=25000
@@ -1061,7 +1060,6 @@ spec:
10611060
- -api.response-compression-enabled=true
10621061
- -blocks-storage.backend=gcs
10631062
- -blocks-storage.bucket-store.bucket-index.enabled=true
1064-
- -blocks-storage.bucket-store.ignore-deletion-marks-delay=1h
10651063
- -blocks-storage.bucket-store.metadata-cache.backend=memcached
10661064
- -blocks-storage.bucket-store.metadata-cache.memcached.addresses=dnssrvnoa+memcached-metadata.default.svc.cluster.local:11211
10671065
- -blocks-storage.bucket-store.metadata-cache.memcached.max-async-buffer-size=25000
@@ -1656,7 +1654,6 @@ spec:
16561654
- -blocks-storage.bucket-store.chunks-cache.memcached.max-item-size=1048576
16571655
- -blocks-storage.bucket-store.chunks-cache.memcached.timeout=200ms
16581656
- -blocks-storage.bucket-store.ignore-blocks-within=10h
1659-
- -blocks-storage.bucket-store.ignore-deletion-marks-delay=1h
16601657
- -blocks-storage.bucket-store.index-cache.backend=memcached
16611658
- -blocks-storage.bucket-store.index-cache.memcached.addresses=dnssrvnoa+memcached-index-queries.default.svc.cluster.local:11211
16621659
- -blocks-storage.bucket-store.index-cache.memcached.max-async-buffer-size=25000

0 commit comments

Comments
 (0)