-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add heartbeat to detect down slaves #927
Commits on Dec 10, 2018
-
Replace zmq sockets with one DEALER-ROUTER socket
The PUSH and PULL sockets being used caused hatch messages to get routed to slaves that may have become unresponsive or crashed. This change includes the client id in the messages sent out from the master which ensures that hatch messages are going to slaves the are READY or RUNNING. This should also fix the issue locustio#911 where slaves are not receiving the stop message. I think these issues are a result of PUSH-PULL sockets using a round robin approach.
Jonathan McCall committedDec 10, 2018 Configuration menu - View commit details
-
Copy full SHA for 3d4b927 - Browse repository at this point
Copy the full SHA 3d4b927View commit details -
Remove client_id parameter from send_multipart method
Jonathan McCall committedDec 10, 2018 Configuration menu - View commit details
-
Copy full SHA for 095acbd - Browse repository at this point
Copy the full SHA 095acbdView commit details -
Add heartbeat worker to server and client
The server checks to see if clients have expired and if they have updates their status to "missing". The client has a worker that will send a heartbeat on a regular interval. The heart also relays the slave state back to the master so that they stay in sync.
Jonathan McCall committedDec 10, 2018 Configuration menu - View commit details
-
Copy full SHA for c02824e - Browse repository at this point
Copy the full SHA c02824eView commit details -
Use new clients.all property in heartbeat worker
Jonathan McCall committedDec 10, 2018 Configuration menu - View commit details
-
Copy full SHA for 3ff4080 - Browse repository at this point
Copy the full SHA 3ff4080View commit details -
Fix reporting of stopped state
Wait until all slaves are reporting in as ready before stating that the master is stopped.
Jonathan McCall committedDec 10, 2018 Configuration menu - View commit details
-
Copy full SHA for 28b0bc9 - Browse repository at this point
Copy the full SHA 28b0bc9View commit details
Commits on Dec 11, 2018
-
Fix tests after changing ZMQ sockets to DEALER-ROUTER
Jonathan McCall committedDec 11, 2018 Configuration menu - View commit details
-
Copy full SHA for 7b5e62d - Browse repository at this point
Copy the full SHA 7b5e62dView commit details -
Change heartbeat log msg to info so that it does not appear in tests
Jonathan McCall committedDec 11, 2018 Configuration menu - View commit details
-
Copy full SHA for d019117 - Browse repository at this point
Copy the full SHA d019117View commit details -
Jonathan McCall committed
Dec 11, 2018 Configuration menu - View commit details
-
Copy full SHA for a5c768c - Browse repository at this point
Copy the full SHA a5c768cView commit details -
Remove commented imports, add note about sleep
Jonathan McCall committedDec 11, 2018 Configuration menu - View commit details
-
Copy full SHA for 7e1c8e9 - Browse repository at this point
Copy the full SHA 7e1c8e9View commit details -
Support str/unicode diff in py2 vs py3
Jonathan McCall committedDec 11, 2018 Configuration menu - View commit details
-
Copy full SHA for 6984741 - Browse repository at this point
Copy the full SHA 6984741View commit details -
Ensure failed zmqrpc tests clean up bound sockets
Jonathan McCall committedDec 11, 2018 Configuration menu - View commit details
-
Copy full SHA for 197949a - Browse repository at this point
Copy the full SHA 197949aView commit details -
Create throw away variable for identity from from ZMQ message
I think this looks better than using msg[1].
Jonathan McCall committedDec 11, 2018 Configuration menu - View commit details
-
Copy full SHA for e617573 - Browse repository at this point
Copy the full SHA e617573View commit details -
Replace usage of parse_options in tests with mock options
Using parse_options during test setup can conflict with test runners like pytest. Essentially it will swallow up the options that are meant to be passed to the test runner and instead treats them as options being passed to the test.
Jonathan McCall committedDec 11, 2018 Configuration menu - View commit details
-
Copy full SHA for 06062f7 - Browse repository at this point
Copy the full SHA 06062f7View commit details -
Set coverage concurrency to gevent
Coverage breaks with gevent and does not fully report green threads as having been tested. Setting concurrency in .coveragerc will fix the issue. https://bitbucket.org/ned/coveragepy/issues/149/coverage-gevent-looks-broken
Jonathan McCall committedDec 11, 2018 Configuration menu - View commit details
-
Copy full SHA for 5a416fc - Browse repository at this point
Copy the full SHA 5a416fcView commit details -
Add test that shows master heartbeat worker marks slaves missing
Jonathan McCall committedDec 11, 2018 Configuration menu - View commit details
-
Copy full SHA for 9818dd3 - Browse repository at this point
Copy the full SHA 9818dd3View commit details -
Add assertions to test_zmqrpc.py
Jonathan McCall committedDec 11, 2018 Configuration menu - View commit details
-
Copy full SHA for 7c0d155 - Browse repository at this point
Copy the full SHA 7c0d155View commit details -
Jonathan McCall committed
Dec 11, 2018 Configuration menu - View commit details
-
Copy full SHA for bd56d22 - Browse repository at this point
Copy the full SHA bd56d22View commit details -
Change assertion value to bytes object
Jonathan McCall committedDec 11, 2018 Configuration menu - View commit details
-
Copy full SHA for e757591 - Browse repository at this point
Copy the full SHA e757591View commit details
Commits on Dec 17, 2018
-
Add cmdline options for heartbeat liveness and interval
Jonathan McCall committedDec 17, 2018 Configuration menu - View commit details
-
Copy full SHA for 5854b60 - Browse repository at this point
Copy the full SHA 5854b60View commit details -
Add new option heartbeat_liveness to test_runners mock options
Jonathan McCall committedDec 17, 2018 Configuration menu - View commit details
-
Copy full SHA for 493db4c - Browse repository at this point
Copy the full SHA 493db4cView commit details -
Ensure SlaveNode class uses heartbeat_liveness default or passed
Jonathan McCall committedDec 17, 2018 Configuration menu - View commit details
-
Copy full SHA for 72f16cb - Browse repository at this point
Copy the full SHA 72f16cbView commit details
Commits on Dec 18, 2018
-
Ensure hatch data can be updated for slaves currently hatching
Jonathan McCall committedDec 18, 2018 Configuration menu - View commit details
-
Copy full SHA for 50b8e7d - Browse repository at this point
Copy the full SHA 50b8e7dView commit details -
Add test for start hatching accepted slave states
Checks that start_hatching sends messages to ready, running, and hatching slaves.
Jonathan McCall committedDec 18, 2018 Configuration menu - View commit details
-
Copy full SHA for bb9b473 - Browse repository at this point
Copy the full SHA bb9b473View commit details -
Remove unneeded imports of mock
Jonathan McCall committedDec 18, 2018 Configuration menu - View commit details
-
Copy full SHA for 25272c6 - Browse repository at this point
Copy the full SHA 25272c6View commit details