-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Using --processes with --print-stats causes all workers to print stats #3352
Copy link
Copy link
Closed
Labels
Description
Prerequisites
- I am using the latest version of Locust
- I am reporting a bug, not asking a question
Description
Setting --print-stats and scaling workers using --processes causes all of the workers to print stats in addition to the master, leading to a messy and unreadable output.
Using examples/basic.py as a simple example.
Type Name # reqs # fails | Avg Min Max Med | req/s failures/s
Type Name # reqs # fails | Avg Min Max Med | req/s failures/s
--------|----------------------------------------------------------------------------|-------|-------------|-------|-------|-------|-------|--------|-----------
Type Name # reqs # fails | Avg Min Max Med | req/s failures/s
--------|----------------------------------------------------------------------------|-------|-------------|-------|-------|-------|-------|--------|-----------
--------|----------------------------------------------------------------------------|-------|-------------|-------|-------|-------|-------|--------|-----------
GET /does_not_exist 0 0(0.00%) | 0 0 0 0 | 0.00 0.00
GET / 0 0(0.00%) | 0 0 0 0 | 0.00 0.00
GET /does_not_exist Type Name # reqs # fails | Avg Min Max Med | req/s failures/s
Type Name # reqs # fails | Avg Min Max Med | req/s failures/s
--------|----------------------------------------------------------------------------|-------|-------------|-------|-------|-------|-------|--------|-----------
GET / 8 0(0.00%) | 7 3 9 7 | 0.56 0.00
GET /does_not_exist 6 6(100.00%) | 2 1 5 2 | 0.56 0.56
GET /stats/requests 3 0(0.00%) | 4 4 4 4 | 0.22 0.00
--------|----------------------------------------------------------------------------|-------|-------------|-------|-------|-------|-------|--------|-----------
Type Name # reqs # fails | Avg Min Max Med | req/s failures/s
Aggregated 17 6(35.29%) | 5 1 9 5 | 1.33 0.56
0 0(0.00%) | 0 0 0 0 | 0.00 0.00
GET /does_not_exist 0 0(0.00%) | 0 0 0 0 | 0.00 0.00
GET /stats/requests 0 0(0.00%) | 0 0 0 0 | 0.00 0.00
--------|----------------------------------------------------------------------------|-------|-------------|-------|-------|-------|-------|--------|-----------
--------|----------------------------------------------------------------------------|-------|-------------|-------|-------|-------|-------|--------|-----------
--------|----------------------------------------------------------------------------|-------|-------------|-------|-------|-------|-------|--------|-----------
GET / 0 0(0.00%) | 0 0 0 0 | 0.00 0.00
--------|----------------------------------------------------------------------------|-------|-------------|-------|-------|-------|-------|--------|-----------
Aggregated 0 0(0.00%) | 0 0 0 0 | 0.00 0.00
GET / 0 0(0.00%) | 0 0 0 0 | 0.00 0.00
--------|----------------------------------------------------------------------------|-------|-------------|-------|-------|-------|-------|--------|-----------
Command line
locust -f basic.py -u 5 --processes 5 --print-stats --autostart
Locustfile contents
examples/basic.pyPython version
3.13.5
Locust version
2.43.3
Operating system
macOS 15.3.1
Reactions are currently unavailable