From e51728a85617cee44d8f25fdcc8a84d1bf5b9b46 Mon Sep 17 00:00:00 2001 From: Ibrahim Awwal Date: Wed, 27 May 2020 21:10:21 -0700 Subject: [PATCH 1/3] Rename one more instance of slave to worker --- docs/running-locust-docker.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/running-locust-docker.rst b/docs/running-locust-docker.rst index cad8794c4e..095095219d 100644 --- a/docs/running-locust-docker.rst +++ b/docs/running-locust-docker.rst @@ -14,7 +14,7 @@ The docker image can be used like this (assuming that the ``locustifile.py`` exi Docker Compose ============== -Here's an example Docker Compose file that could ber used to start both a master node, and slave nodes: +Here's an example Docker Compose file that could ber used to start both a master node, and worker nodes: .. literalinclude:: ../examples/docker-compose/docker-compose.yml :language: yaml From 6070c0b8afededae9ccb04368382a8c6ad888d7a Mon Sep 17 00:00:00 2001 From: Ibrahim Awwal Date: Wed, 27 May 2020 21:14:19 -0700 Subject: [PATCH 2/3] Rename slave -> worker in runners.py --- locust/runners.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locust/runners.py b/locust/runners.py index 617bac43b4..c991c157e8 100644 --- a/locust/runners.py +++ b/locust/runners.py @@ -509,7 +509,7 @@ def heartbeat_worker(self): client.heartbeat -= 1 def reset_connection(self): - logger.info("Reset connection to slave") + logger.info("Reset connection to worker") try: self.server.close() self.server = rpc.Server(self.master_bind_host, self.master_bind_port) From d22a03f217a0896647f151ae650c9196d643f33a Mon Sep 17 00:00:00 2001 From: Ibrahim Awwal Date: Wed, 27 May 2020 21:14:47 -0700 Subject: [PATCH 3/3] Rename slave -> worker in test_runners.py --- locust/test/test_runners.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locust/test/test_runners.py b/locust/test/test_runners.py index 5b72425583..8502893b52 100644 --- a/locust/test/test_runners.py +++ b/locust/test/test_runners.py @@ -356,7 +356,7 @@ def incr_stats(l): # issue start command that should trigger TestUsers to be spawned in the Workers master.start(6, hatch_rate=1000) sleep(0.1) - # check that slave nodes have started locusts + # check that worker nodes have started locusts for worker in workers: self.assertEqual(2, worker.user_count) # give time for users to generate stats, and stats to be sent to master