Skip to content

Commit 6b09fb2

Browse files
committed
update docs
Signed-off-by: Ben Ye <[email protected]>
1 parent 209d5b6 commit 6b09fb2

File tree

5 files changed

+14
-1
lines changed

5 files changed

+14
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* [CHANGE] Index Cache: Multi level cache backfilling operation becomes async. Added `-blocks-storage.bucket-store.index-cache.multilevel.max-async-concurrency` and `-blocks-storage.bucket-store.index-cache.multilevel.max-async-buffer-size` configs and metric `cortex_store_multilevel_index_cache_backfill_dropped_items_total` for number of dropped items. #5661
77
* [FEATURE] Ingester: Add per-tenant new metric `cortex_ingester_tsdb_data_replay_duration_seconds`. #5477
88
* [ENHANCEMENT] Store Gateway: Added `-store-gateway.enabled-tenants` and `-store-gateway.disabled-tenants` to explicitly enable or disable store-gateway for specific tenants. #5638
9+
* [ENHANCEMENT] Index Cache: Multi level cache adds config `max_backfill_items` to cap max items to backfill per async operation. #5686
910

1011
## 1.16.0 2023-11-20
1112

docs/blocks-storage/querier.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,10 @@ blocks_storage:
719719
# CLI flag: -blocks-storage.bucket-store.index-cache.multilevel.max-async-buffer-size
720720
[max_async_buffer_size: <int> | default = 10000]
721721

722+
# The maximum number of items to backfill per asynchronous operation.
723+
# CLI flag: -blocks-storage.bucket-store.index-cache.multilevel.max-backfill-items
724+
[max_backfill_items: <int> | default = 10000]
725+
722726
chunks_cache:
723727
# Backend for chunks cache, if not empty. Supported values: memcached.
724728
# CLI flag: -blocks-storage.bucket-store.chunks-cache.backend

docs/blocks-storage/store-gateway.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -834,6 +834,10 @@ blocks_storage:
834834
# CLI flag: -blocks-storage.bucket-store.index-cache.multilevel.max-async-buffer-size
835835
[max_async_buffer_size: <int> | default = 10000]
836836

837+
# The maximum number of items to backfill per asynchronous operation.
838+
# CLI flag: -blocks-storage.bucket-store.index-cache.multilevel.max-backfill-items
839+
[max_backfill_items: <int> | default = 10000]
840+
837841
chunks_cache:
838842
# Backend for chunks cache, if not empty. Supported values: memcached.
839843
# CLI flag: -blocks-storage.bucket-store.chunks-cache.backend

docs/configuration/config-file-reference.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,6 +1268,10 @@ bucket_store:
12681268
# CLI flag: -blocks-storage.bucket-store.index-cache.multilevel.max-async-buffer-size
12691269
[max_async_buffer_size: <int> | default = 10000]
12701270

1271+
# The maximum number of items to backfill per asynchronous operation.
1272+
# CLI flag: -blocks-storage.bucket-store.index-cache.multilevel.max-backfill-items
1273+
[max_backfill_items: <int> | default = 10000]
1274+
12711275
chunks_cache:
12721276
# Backend for chunks cache, if not empty. Supported values: memcached.
12731277
# CLI flag: -blocks-storage.bucket-store.chunks-cache.backend

pkg/storage/tsdb/multilevel_cache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package tsdb
33
import (
44
"context"
55
"errors"
6-
"slices"
76
"sync"
87

98
"github.com/oklog/ulid"
@@ -13,6 +12,7 @@ import (
1312
"github.com/prometheus/prometheus/storage"
1413
"github.com/thanos-io/thanos/pkg/cacheutil"
1514
storecache "github.com/thanos-io/thanos/pkg/store/cache"
15+
"golang.org/x/exp/slices"
1616
)
1717

1818
const (

0 commit comments

Comments
 (0)