Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add WORKER_LOG_REPORT_INTERVAL as configurable
Browse files Browse the repository at this point in the history
andrewbaldwin44 committed Jun 5, 2024
1 parent 3c2dea1 commit 2939120
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/configuration.rst
Original file line number Diff line number Diff line change
@@ -274,3 +274,15 @@ The list of statistics parameters that can be modified is:
+-------------------------------------------+--------------------------------------------------------------------------------------+
| PERCENTILES_TO_STATISTICS | List of response time percentiles in the screen of statistics for UI |
+-------------------------------------------+--------------------------------------------------------------------------------------+

Customization of additional static variables
============================================

This table lists the constants that are set within locust and may be overridden.

+-------------------------------------------+--------------------------------------------------------------------------------------+
| Parameter name | Purpose |
+-------------------------------------------+--------------------------------------------------------------------------------------+
| locust.runners.WORKER_LOG_REPORT_INTERVAL | Interval for how frequently worker logs are reported to master. Can be disabled |
| | by setting to a negative number |
+-------------------------------------------+--------------------------------------------------------------------------------------+
3 changes: 3 additions & 0 deletions locust/runners.py
Original file line number Diff line number Diff line change
@@ -1423,6 +1423,9 @@ def stats_reporter(self) -> NoReturn:
gevent.sleep(WORKER_REPORT_INTERVAL)

def logs_reporter(self) -> None:
if WORKER_LOG_REPORT_INTERVAL < 0:
return

while True:
current_logs = get_logs()

0 comments on commit 2939120

Please sign in to comment.