allegro / allegro/bigcache

Question: How to pick the optimal number of shards?

Aperta
#243 3 commenti 5 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Go
Stelle
8.2k
Fork
614
Merge medio
5g 12h
PR unite (30g)
1

Descrizione

I see that the config allows for specifying the number of shards. In [your article](https://allegro.tech/2016/03/writing-fast-cache-service-in-go.html) about the idea behind bigcache, I see some information on how the shards are used. However, I am wondering if you can provide any advice on how to pick the right number of shards. I understand this is probably heavily dependent on how big the cache is, but some guidelines would be amazing. Perhaps this could be included in the README?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.