From 41378cca8763d738653a5761f3f90fe653e19c6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20=C5=A0tibran=C3=BD?= Date: Mon, 24 Jan 2022 16:08:43 +0100 Subject: [PATCH] Add warning about not running multiple compactors when sharding is disabled. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Peter Štibraný --- pkg/compactor/compactor.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/compactor/compactor.go b/pkg/compactor/compactor.go index c754e3ac651..d27108435ab 100644 --- a/pkg/compactor/compactor.go +++ b/pkg/compactor/compactor.go @@ -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)