From 0e0d0b78977f5e1b4d3889bc33c0d1a716eeb0d9 Mon Sep 17 00:00:00 2001 From: Owen Diehl Date: Wed, 3 Nov 2021 12:53:39 -0400 Subject: [PATCH] dont try to use the scheduler ring when a downstream url is configured (#4635) --- 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 }