Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distributed master hangs #1058

Closed
ghost opened this issue Aug 5, 2019 · 3 comments
Closed

Distributed master hangs #1058

ghost opened this issue Aug 5, 2019 · 3 comments

Comments

@ghost
Copy link

ghost commented Aug 5, 2019

Description of issue

Running locust distributed with a master and two slaves (-no-web and -t 10s), master ends up in a hung state after both slaves terminate.

Expected behavior

When slaves terminate then the master should shutdown and terminate.

Actual behavior

Master never terminates and must be killed with Ctrl-C

Environment settings

  • OS: Linux
  • Python version: 2.7
  • Locust version: 0.11.0

Steps to reproduce (for bug reports)

Have checked for a hung thread but not detected. Master and slaves are running in separate Docker containers initiated by Compose. How can debug flow in locust so I can see what master is doing that it won't terminate.

A simple configuration which does nothing (no web I/O) works properly. But when issuing web and docker requests master hangs

@cgoldberg
Copy link
Member

are you specifying -t on the master?

@ghost
Copy link
Author

ghost commented Aug 7, 2019

Yes I have tried -t on the master. All slaves are told to terminate and they go through tears-owns, but then they are stuck.
It seems the problem goes beyond distributed locust. I have setup a docker-compose that runs three independent containers with the same locust load test. The time is set to 5 minutes and once the time expires only one container terminates and the other two are stuck.
At this point I am going to avoid docker-compose and run each container in the background.

@ghost
Copy link
Author

ghost commented Aug 7, 2019

Problem appears to be caused by Python Docker SDK

@ghost ghost closed this as completed Aug 7, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant