Skip to content

Commit

Permalink
Add warning about not running multiple compactors when sharding is di…
Browse files Browse the repository at this point in the history
…sabled.

Signed-off-by: Peter Štibraný <[email protected]>
  • Loading branch information
pstibrany committed Jan 25, 2022
1 parent 40b165b commit 41378cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/compactor/compactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,8 @@ func (c *MultitenantCompactor) starting(ctx context.Context) error {
level.Info(c.logger).Log("msg", "compactor ring topology is stable")
}
}
} else {
level.Warn(c.logger).Log("msg", "Compactor sharding is disabled. Please don't run more than one compactor in this mode.")
}

allowedTenants := util.NewAllowedTenants(c.compactorCfg.EnabledTenants, c.compactorCfg.DisabledTenants)
Expand Down

0 comments on commit 41378cc

Please sign in to comment.