From 378c6d22764da502e66dbdb7a2b776ea099e4e03 Mon Sep 17 00:00:00 2001 From: conghuiw Date: Thu, 18 Aug 2022 20:15:41 +0800 Subject: [PATCH] Fix broken link in cpu warning message. change https://docs.locust.io/en/stable/running-locust-distributed.html to https://docs.locust.io/en/stable/running-distributed.html --- locust/runners.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locust/runners.py b/locust/runners.py index ed67bc9954..83560c8c74 100644 --- a/locust/runners.py +++ b/locust/runners.py @@ -324,7 +324,7 @@ def monitor_cpu_and_memory(self) -> NoReturn: self.environment.events.cpu_warning.fire(environment=self.environment, cpu_usage=self.current_cpu_usage) if not self.cpu_warning_emitted: logging.warning( - f"CPU usage above {CPU_WARNING_THRESHOLD}%! This may constrain your throughput and may even give inconsistent response time measurements! See https://docs.locust.io/en/stable/running-locust-distributed.html for how to distribute the load over multiple CPU cores or machines" + f"CPU usage above {CPU_WARNING_THRESHOLD}%! This may constrain your throughput and may even give inconsistent response time measurements! See https://docs.locust.io/en/stable/running-distributed.html for how to distribute the load over multiple CPU cores or machines" ) self.cpu_warning_emitted = True gevent.sleep(CPU_MONITOR_INTERVAL)