ZMQ Error when running locust in distributed mode
See original GitHub issueDescribe the bug
I have a simple locust setup with a master and 50 slave workers. Everything seems fine but whenever the workers start loading, I get a ZMQError. I’m not sure if this is something I’m doing wrong on my end or from locust.
Expected behavior
Workers should be loaded without any error.
Actual behavior
Steps to reproduce
# master
locust -f locustfile.py --master
# workers
import subprocesses
processes = []
for _ in range(50):
print('Starting worker : {worker_id}')
s = subprocess.Popen([
'locust', '--loglevel', 'debug', '--worker', '-f', "locust-scripts/simple.py",
'--master-host', "127.0.0.1", '--host', None
])
processes.append(s)
for s in processes:
s.communicate()
Environment
- OS: Mac OS
- Python version: 3.8
- Locust version: 1.0.2
- Locust command line that you ran: locust
- Locust file contents (anonymized if necessary):
class SimpleBehavior(TaskSet):
@task
def index(self):
self.client.get('/')
class MyLocust(HttpLocust):
task_set = SimpleBehavior
min_wait = 0
max_wait = 0
Issue Analytics
- State:
- Created 3 years ago
- Comments:14
Top Results From Across the Web
How to run Locust in distributed mode - Google Groups
Hi. Recently read in a topic that now is possible to run Locust by Taurus in distributed mode. Not found about that in...
Read more >locustio/locust - Gitter
If running in distributed mode, this could cause a performance decrease. We recommend you to install the pyzmq python package when running in...
Read more >Distributed locust load testing on local machine - Stack Overflow
But I am getting the error: You are running in distributed mode but have no slave servers connected. Please connect slaves prior to...
Read more >Changelog Highlights — Locust 1.6.0 documentation
–stop-timeout is not respected when changing number of running Users in distributed mode - https://github.com/locustio/locust/issues/1162 ...
Read more >Locust to Go, Kubernetes to Load - HackMD
.slide: data-transition="convex" --> run Locust distributed across multiple processes/machines ```shell pip install pyzmq ... ZeroMQ (master/slave mode) <!
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It runs. The
None
is really just a placeholder I used while asking the question. I’m gonna try getting the latest version ofpyzmq
and see if that works. Thanks.Closing due to inactivity