From 67fd70b7fbbed84cec945eed8ad9b1e73d560d25 Mon Sep 17 00:00:00 2001 From: Bojan Date: Fri, 12 Feb 2021 22:04:21 -0400 Subject: [PATCH] enhance: add warning log for load balancing strategy without dns scheme --- cmd/ghz/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/ghz/main.go b/cmd/ghz/main.go index d4102728..e22919fd 100644 --- a/cmd/ghz/main.go +++ b/cmd/ghz/main.go @@ -304,6 +304,10 @@ func main() { options = append(options, runner.WithLogger(logger)) } + if isLBStrategySet && cfg.Host != "" && !strings.HasPrefix(cfg.Host, "dns:///") { + logger.Warn("Load balancing strategy set without using DNS (dns:///) scheme. Strategy: %v. Host: %+v.", cfg.LBStrategy, cfg.Host) + } + if logger != nil { logger.Debugw("Start Run", "config", cfg) }