Skip to content

Commit f0dc7e6

Browse files
committed
update docs
Signed-off-by: Ben Ye <[email protected]>
1 parent 34ce764 commit f0dc7e6

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
@@ -7,6 +7,7 @@
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
99
* [ENHANCEMENT] Upgraded Docker base images to `alpine:3.18`. #5684
10+
* [ENHANCEMENT] Index Cache: Multi level cache adds config `max_backfill_items` to cap max items to backfill per async operation. #5686
1011

1112
## 1.16.0 2023-11-20
1213

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)