Skip to content

Commit

Permalink
fix(blooms): Enable metas cache on backend when running in ssd mode (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
xiejian06033218 authored Dec 5, 2024
1 parent 8579565 commit 4cce207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/loki/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ func (t *Loki) initBloomStore() (services.Service, error) {
bsCfg := t.Cfg.StorageConfig.BloomShipperConfig

var metasCache cache.Cache
if t.Cfg.isTarget(IndexGateway) && cache.IsCacheConfigured(bsCfg.MetasCache) {
if (t.Cfg.isTarget(IndexGateway) || t.Cfg.isTarget(Backend)) && cache.IsCacheConfigured(bsCfg.MetasCache) {
metasCache, err = cache.New(bsCfg.MetasCache, reg, logger, stats.BloomMetasCache, constants.Loki)

// always enable LRU cache
Expand Down

0 comments on commit 4cce207

Please sign in to comment.