Skip to content

Commit fdc1bb2

Browse files
authored
Changed default value of -blocks-storage.bucket-store.sync-interval from 5m to 15m (#3724)
* Changed default value of -blocks-storage.bucket-store.sync-interval form 5m to 15m Signed-off-by: Marco Pracucci <[email protected]> * Updated CHANGELOG entry Signed-off-by: Marco Pracucci <[email protected]>
1 parent 0e26caf commit fdc1bb2

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
* `-cluster.advertise-address` in favor of `-alertmanager.cluster.advertise-address`
2222
* `-cluster.peer` in favor of `-alertmanager.cluster.peers`
2323
* `-cluster.peer-timeout` in favor of `-alertmanager.cluster.peer-timeout`
24+
* [CHANGE] Blocks storage: the default value of `-blocks-storage.bucket-store.sync-interval` has been changed from `5m` to `15m`. #3724
2425
* [FEATURE] Querier: Queries can be federated across multiple tenants. The tenants IDs involved need to be specified separated by a `|` character in the `X-Scope-OrgID` request header. This is an experimental feature, which can be enabled by setting `-tenant-federation.enabled=true` on all Cortex services. #3250
2526
* [FEATURE] Alertmanager: introduced the experimental option `-alertmanager.sharding-enabled` to shard tenants across multiple Alertmanager instances. This feature is still under heavy development and its usage is discouraged. The following new metrics are exported by the Alertmanager: #3664
2627
* `cortex_alertmanager_ring_check_errors_total`

docs/blocks-storage/querier.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ blocks_storage:
387387
# enabled), in order to look for changes (new blocks shipped by ingesters
388388
# and blocks deleted by retention or compaction).
389389
# CLI flag: -blocks-storage.bucket-store.sync-interval
390-
[sync_interval: <duration> | default = 5m]
390+
[sync_interval: <duration> | default = 15m]
391391
392392
# Max size - in bytes - of a per-tenant chunk pool, used to reduce memory
393393
# allocations.

docs/blocks-storage/store-gateway.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ blocks_storage:
434434
# enabled), in order to look for changes (new blocks shipped by ingesters
435435
# and blocks deleted by retention or compaction).
436436
# CLI flag: -blocks-storage.bucket-store.sync-interval
437-
[sync_interval: <duration> | default = 5m]
437+
[sync_interval: <duration> | default = 15m]
438438
439439
# Max size - in bytes - of a per-tenant chunk pool, used to reduce memory
440440
# allocations.

docs/configuration/config-file-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3799,7 +3799,7 @@ bucket_store:
37993799
# enabled), in order to look for changes (new blocks shipped by ingesters and
38003800
# blocks deleted by retention or compaction).
38013801
# CLI flag: -blocks-storage.bucket-store.sync-interval
3802-
[sync_interval: <duration> | default = 5m]
3802+
[sync_interval: <duration> | default = 15m]
38033803
38043804
# Max size - in bytes - of a per-tenant chunk pool, used to reduce memory
38053805
# allocations.

pkg/storage/tsdb/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ func (cfg *BucketStoreConfig) RegisterFlags(f *flag.FlagSet) {
243243
cfg.BucketIndex.RegisterFlagsWithPrefix(f, "blocks-storage.bucket-store.bucket-index.")
244244

245245
f.StringVar(&cfg.SyncDir, "blocks-storage.bucket-store.sync-dir", "tsdb-sync", "Directory to store synchronized TSDB index headers.")
246-
f.DurationVar(&cfg.SyncInterval, "blocks-storage.bucket-store.sync-interval", 5*time.Minute, "How frequently to scan the bucket, or to refresh the bucket index (if enabled), in order to look for changes (new blocks shipped by ingesters and blocks deleted by retention or compaction).")
246+
f.DurationVar(&cfg.SyncInterval, "blocks-storage.bucket-store.sync-interval", 15*time.Minute, "How frequently to scan the bucket, or to refresh the bucket index (if enabled), in order to look for changes (new blocks shipped by ingesters and blocks deleted by retention or compaction).")
247247
f.Uint64Var(&cfg.MaxChunkPoolBytes, "blocks-storage.bucket-store.max-chunk-pool-bytes", uint64(2*units.Gibibyte), "Max size - in bytes - of a per-tenant chunk pool, used to reduce memory allocations.")
248248
f.IntVar(&cfg.MaxConcurrent, "blocks-storage.bucket-store.max-concurrent", 100, "Max number of concurrent queries to execute against the long-term storage. The limit is shared across all tenants.")
249249
f.IntVar(&cfg.TenantSyncConcurrency, "blocks-storage.bucket-store.tenant-sync-concurrency", 10, "Maximum number of concurrent tenants synching blocks.")

0 commit comments

Comments
 (0)