From 1fd4ec1bb64180b7675ca25faf8540fb757ef34f Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Tue, 14 Jun 2022 15:29:41 +0100 Subject: [PATCH] Reduce counters a bit --- internal/caching/impl_ristretto.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/caching/impl_ristretto.go b/internal/caching/impl_ristretto.go index cfbd0bdd7..0251504b4 100644 --- a/internal/caching/impl_ristretto.go +++ b/internal/caching/impl_ristretto.go @@ -15,7 +15,7 @@ import ( func NewRistrettoCache(maxCost CacheSize, enablePrometheus bool) (*Caches, error) { cache, err := ristretto.NewCache(&ristretto.Config{ - NumCounters: 1e7, + NumCounters: 1e6, MaxCost: int64(maxCost), BufferItems: 64, Metrics: true,