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

Slave hangs when started before master #571

Closed
tnachen opened this issue Apr 5, 2017 · 3 comments
Closed

Slave hangs when started before master #571

tnachen opened this issue Apr 5, 2017 · 3 comments

Comments

@tnachen
Copy link

tnachen commented Apr 5, 2017

Currently when the slave is brought up with just --slave and default options, if the master is not available or not running yet, the slave will just hang and never attempt to reconnect or retry it's calls. No exception will be thrown either, so it just runs quietly.

@kainoaseto
Copy link

+1 This would be fantastic to help make Locust more HA. Allowing the slaves to poll for a master would at least allow the master to be brought up asynchronously and would allow for the master to crash and be restarted without having to restart all the slaves if a problem occurred.

@cgoldberg
Copy link
Member

@tnachen

if the master is not available or not running yet, the
slave will just hang and never attempt to reconnect or retry it's calls.

If I start a slave with no master, it sits quiet and polls for the master node. If I start the master node afterwards, slaves seem to connect fine. Are you seeing different?

It is slightly confusing that there no polling status is printed, whereas master reports "Waiting for slaves to be ready" each time it polls.

@cgoldberg
Copy link
Member

@kainoaseto

allow for the master to crash and be restarted without having to restart all the slaves

It currently only tries to connect before hatching starts. Reconnecting if master crashes is a more complex case.

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

3 participants