Skip to content

Commit 983413e

Browse files
authored
Add index cache max async concurrency (#6265)
1 parent 946c7a1 commit 983413e

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
@@ -2,6 +2,7 @@
22

33
## master / unreleased
44

5+
* [CHANGE] Change default value of `-blocks-storage.bucket-store.index-cache.memcached.max-async-concurrency` from `50` to `3` #6265
56
* [CHANGE] Enable Compactor and Alertmanager in target all. #6204
67
* [FEATURE] Query Frontend/Querier: Add protobuf codec `-api.querier-default-codec` and the option to choose response compression type `-querier.response-compression`. #5527
78
* [FEATURE] Ruler: Experimental: Add `ruler.frontend-address` to allow query to query frontends instead of ingesters. #6151

docs/blocks-storage/querier.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ blocks_storage:
794794
# The maximum number of concurrent asynchronous operations can occur
795795
# when backfilling cache items.
796796
# CLI flag: -blocks-storage.bucket-store.index-cache.multilevel.max-async-concurrency
797-
[max_async_concurrency: <int> | default = 50]
797+
[max_async_concurrency: <int> | default = 3]
798798

799799
# The maximum number of enqueued asynchronous operations allowed when
800800
# backfilling cache items.

docs/blocks-storage/store-gateway.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ blocks_storage:
891891
# The maximum number of concurrent asynchronous operations can occur
892892
# when backfilling cache items.
893893
# CLI flag: -blocks-storage.bucket-store.index-cache.multilevel.max-async-concurrency
894-
[max_async_concurrency: <int> | default = 50]
894+
[max_async_concurrency: <int> | default = 3]
895895

896896
# The maximum number of enqueued asynchronous operations allowed when
897897
# backfilling cache items.

docs/configuration/config-file-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1327,7 +1327,7 @@ bucket_store:
13271327
# The maximum number of concurrent asynchronous operations can occur when
13281328
# backfilling cache items.
13291329
# CLI flag: -blocks-storage.bucket-store.index-cache.multilevel.max-async-concurrency
1330-
[max_async_concurrency: <int> | default = 50]
1330+
[max_async_concurrency: <int> | default = 3]
13311331

13321332
# The maximum number of enqueued asynchronous operations allowed when
13331333
# backfilling cache items.

pkg/storage/tsdb/index_cache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ func (cfg *MultiLevelIndexCacheConfig) Validate() error {
132132
}
133133

134134
func (cfg *MultiLevelIndexCacheConfig) RegisterFlagsWithPrefix(f *flag.FlagSet, prefix string) {
135-
f.IntVar(&cfg.MaxAsyncConcurrency, prefix+"max-async-concurrency", 50, "The maximum number of concurrent asynchronous operations can occur when backfilling cache items.")
135+
f.IntVar(&cfg.MaxAsyncConcurrency, prefix+"max-async-concurrency", 3, "The maximum number of concurrent asynchronous operations can occur when backfilling cache items.")
136136
f.IntVar(&cfg.MaxAsyncBufferSize, prefix+"max-async-buffer-size", 10000, "The maximum number of enqueued asynchronous operations allowed when backfilling cache items.")
137137
f.IntVar(&cfg.MaxBackfillItems, prefix+"max-backfill-items", 10000, "The maximum number of items to backfill per asynchronous operation.")
138138
}

0 commit comments

Comments
 (0)