Skip to content

Commit

Permalink
bloom compactor tokens = 10 (hardcoded for now)
Browse files Browse the repository at this point in the history
Signed-off-by: Owen Diehl <[email protected]>
  • Loading branch information
owen-d committed Feb 20, 2024
1 parent e41085b commit da748ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/loki/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -1446,7 +1446,9 @@ func (t *Loki) initBloomCompactorRing() (services.Service, error) {
// is LegacyMode needed?
// legacyReadMode := t.Cfg.LegacyReadTarget && t.isModuleActive(Read)

rm, err := lokiring.NewRingManager(bloomCompactorRingKey, lokiring.ServerMode, t.Cfg.BloomCompactor.Ring, 1, 1, util_log.Logger, prometheus.DefaultRegisterer)
// TODO(owen-d): configurable num tokens, just use lifecycler config?
numTokens := 10
rm, err := lokiring.NewRingManager(bloomCompactorRingKey, lokiring.ServerMode, t.Cfg.BloomCompactor.Ring, 1, numTokens, util_log.Logger, prometheus.DefaultRegisterer)

if err != nil {
return nil, gerrors.Wrap(err, "error initializing bloom-compactor ring manager")
Expand Down

0 comments on commit da748ee

Please sign in to comment.