From 16862d2d05cb230fe0f1c4200de9dc1b2db0cfe5 Mon Sep 17 00:00:00 2001 From: Owen Diehl Date: Wed, 3 Nov 2021 12:37:54 -0400 Subject: [PATCH] dont try to use the scheduler ring when a downstream url is configured --- pkg/loki/config_wrapper.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/loki/config_wrapper.go b/pkg/loki/config_wrapper.go index d63ca762602a1..c29e49ff69dd8 100644 --- a/pkg/loki/config_wrapper.go +++ b/pkg/loki/config_wrapper.go @@ -69,10 +69,11 @@ func (c *ConfigWrapper) ApplyDynamicConfig() cfg.Source { return errors.New("dst is not a Loki ConfigWrapper") } - // If nobody has defined any frontend address or scheduler address + // If nobody has defined any frontend address, scheduler address, or downstream url // we can default to using the query scheduler ring for scheduler discovery. if r.Worker.FrontendAddress == "" && r.Worker.SchedulerAddress == "" && + r.Frontend.DownstreamURL == "" && r.Frontend.FrontendV2.SchedulerAddress == "" { r.QueryScheduler.UseSchedulerRing = true }