You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have set up a master-worker architecture for Locust, with the master running on GCP GKE and the workers on Cloud Run. When initiating a test from the Locust UI, I encounter the following error:
[2025-02-07 10:29:22,100] locust-master-85665bc96-pc7gl/INFO/locust.runners: localhost_3f87178382de4ef0960f781954675a4f (index 32) reported as ready. 1 workers connected.
[2025-02-07 10:30:17,659] locust-master-85665bc96-pc7gl/INFO/locust.runners: Sending spawn jobs of 10 users at 1.00 spawn rate to 1 ready workers
[2025-02-07 10:30:21,179] locust-master-85665bc96-pc7gl/INFO/locust.runners: Worker localhost_3f87178382de4ef0960f781954675a4f failed to send heartbeat, setting state to missing.
[2025-02-07 10:30:21,179] locust-master-85665bc96-pc7gl/INFO/locust.runners: The last worker went missing, stopping test.
[2025-02-07 10:30:27,672] locust-master-85665bc96-pc7gl/INFO/locust.runners: Spawning is complete and report waittime is expired, but not all reports received from workers: {} (0 total users)
[2025-02-07 10:30:58,217] locust-master-85665bc96-pc7gl/INFO/locust.runners: Worker localhost_3f87178382de4ef0960f781954675a4f failed to send heartbeat, setting state to missing.
[2025-02-07 10:30:58,217] locust-master-85665bc96-pc7gl/INFO/locust.runners: The last worker went missing, stopping test.
[2025-02-07 10:31:32,804] locust-master-85665bc96-pc7gl/WARNING/locust.runners: Got spawning message from unknown worker localhost_3f87178382de4ef0960f781954675a4f. Asking worker to quit.
[2025-02-07 10:31:55,445] locust-master-85665bc96-pc7gl/WARNING/locust.runners: Got spawning message from unknown worker localhost_3f87178382de4ef0960f781954675a4f. A
```sking worker to quit.
**It's working when I use the same Docker image and run it locally.**
### Command line
Tests are run from Locust UI
### Locustfile contents
```python3
import os
import json
import random
from locust import HttpUser, task, between
class MyUser(HttpUser):
wait_time = between(1, 5)
@task
def get_homepage(self):
"""Simple GET request to test Locust"""
self.client.get("/")
Python version
python:3.10-slim
Locust version
locust==2.32.8
Operating system
Ubuntu 24.04.1 LTS (Noble)
The text was updated successfully, but these errors were encountered:
Prerequisites
Description
I have set up a master-worker architecture for Locust, with the master running on GCP GKE and the workers on Cloud Run. When initiating a test from the Locust UI, I encounter the following error:
Python version
python:3.10-slim
Locust version
locust==2.32.8
Operating system
Ubuntu 24.04.1 LTS (Noble)
The text was updated successfully, but these errors were encountered: