Skip to content

Commit

Permalink
fifocache config is deprecated. use embedded-cache instead (#7800)
Browse files Browse the repository at this point in the history
  • Loading branch information
liguozhong authored Nov 29, 2022
1 parent 343e39f commit 720dfe0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/loki/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -518,9 +518,9 @@ func (t *Loki) initStore() (_ services.Service, err error) {
case t.Cfg.isModuleEnabled(Ingester), t.Cfg.isModuleEnabled(Write):
// Use fifo cache for caching index in memory, this also significantly helps performance.
t.Cfg.StorageConfig.IndexQueriesCacheConfig = cache.Config{
EnableFifoCache: true,
Fifocache: cache.FifoCacheConfig{
MaxSizeBytes: "200 MB",
EmbeddedCache: cache.EmbeddedCacheConfig{
Enabled: true,
MaxSizeMB: 200,
// This is a small hack to save some CPU cycles.
// We check if the object is still valid after pulling it from cache using the IndexCacheValidity value
// however it has to be deserialized to do so, setting the cache validity to some arbitrary amount less than the
Expand Down

0 comments on commit 720dfe0

Please sign in to comment.