You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use caching bucket for compactor, except cleaner (#5682)
* use caching bucket for compactor, except cleaner
Signed-off-by: Wen Xu <[email protected]>
* disable chunks cache for compactor, do not cache block deletion marker and tenant deletion marker for compactor
Signed-off-by: Wen Xu <[email protected]>
* turn on cachingbucketenabled in compactor test and add more descript to the feature flag
Signed-off-by: Wen Xu <[email protected]>
* remove cachingBucketEnabled flag in unit test
Signed-off-by: Wen Xu <[email protected]>
* properly disable chunkscache
Signed-off-by: Wen Xu <[email protected]>
* fix lint
Signed-off-by: Wen Xu <[email protected]>
---------
Signed-off-by: Wen Xu <[email protected]>
f.DurationVar(&cfg.BlockVisitMarkerFileUpdateInterval, "compactor.block-visit-marker-file-update-interval", 1*time.Minute, "How frequently block visit marker file should be updated duration compaction.")
248
250
249
251
f.BoolVar(&cfg.AcceptMalformedIndex, "compactor.accept-malformed-index", false, "When enabled, index verification will ignore out of order label names.")
252
+
f.BoolVar(&cfg.CachingBucketEnabled, "compactor.caching-bucket-enabled", false, "When enabled, caching bucket will be used for compactor, except cleaner service, which serves as the source of truth for block status")
cfg.CacheGet("bucket-index", metadataCache, isBucketIndexFiles, metadataConfig.BucketIndexMaxSize, metadataConfig.BucketIndexContentTTL/* do not cache exist / not exist: */, 0, 0)
cfg.CacheGet("bucket-index", metadataCache, matchers.GetBucketIndexMatcher(), metadataConfig.BucketIndexMaxSize, metadataConfig.BucketIndexContentTTL/* do not cache exist / not exist: */, 0, 0)
0 commit comments