question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ZMQ Error when running locust in distributed mode

See original GitHub issue

Describe 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. image

Expected behavior

Workers should be loaded without any error.

Actual behavior

image

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:closed
  • Created 3 years ago
  • Comments:14

github_iconTop GitHub Comments

1reaction
Olamyycommented, Jun 11, 2020

It runs. The None is really just a placeholder I used while asking the question. I’m gonna try getting the latest version of pyzmq and see if that works. Thanks.

0reactions
cyberwcommented, Jun 30, 2020

Closing due to inactivity

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found