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

Spawning is complete and report waittime is expired, but not all reports received from workers #3043

Open
2 tasks done
patilpradip1293 opened this issue Feb 7, 2025 · 0 comments
Labels

Comments

@patilpradip1293
Copy link

patilpradip1293 commented Feb 7, 2025

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:

[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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant