Skip to content

Commit 065ad46

Browse files
fix(blooms): Enable metas cache on backend when running in ssd mode
1 parent 8579565 commit 065ad46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/loki/modules.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ func (t *Loki) initBloomStore() (services.Service, error) {
784784
bsCfg := t.Cfg.StorageConfig.BloomShipperConfig
785785

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

790790
// always enable LRU cache

0 commit comments

Comments
 (0)