Closed lek18 closed 6 months ago
Hi! Can you reproduce this issue with a minimal locustfile? Also, you are not on the latest release. Can you update?
Hi @cyberw , thank you for your response.
I updated the image to latest (https://hub.docker.com/r/locustio/locust/tags)
I see that the average response line in the UI is updating properly, the 99th percentile is still exhibiting the same behaviour, ie not updating and keeping flat like before.
Can you remove as much as possible https://stackoverflow.com/help/minimal-reproducible-example
i.e, see if it happens without using docker for locust, without distributed, basic locustfile, etc. Right now there are too many ”special” things about your case.
Hello @cyberw , I used locust without docker and a basic locust file, and i do not see any issues in the ui.
command ran: locust -f locustfile-element.py
locust package version: 2.20.1
import json
import urllib3
from locust import HttpUser, between, task
urllib3.disable_warnings()
file_name = "payload_1.json"
# This works if you are using python SDK instead of Docker.
local_file_name = f"surveys/{file_name}"
with open(local_file_name, "r") as file:
request_Object = json.load(file)
endpoint = "http://localhost:9000/api/v0.1"
class QuickstartUser(HttpUser):
host = endpoint
wait_time = between(1, 2)
@task
def test_world_cloud_service(self):
headers = {
"Content-Type": "application/json",
}
data = {"jsonData": request_Object}
self.client.post("/predictions", json=data, headers=headers, verify=False)
Do you still get the cpu load warning?
No @cyberw. I believe using the latest package made it worked. Thank you.
Prerequisites
Description
I am running the docker-compose option for spinning up the locust UI, but the Response graph time is not showing/updating properly. The statistics chart give the correct information, its just not reflected in the UI (See images).
Here is my docker-compose.yml and command
docker-compose up -d --scale worker=2
Additional information:
locust is calling a local endpoint from another docker image.
docker run -p 9000:9000 --name element-word-cloud-luminate-dev-local --network element --rm --platform linux/amd64 -it element-world-cloud-luminate:latest bash -c "source /miniconda/bin/activate && conda activate seldonenv && seldon-core-microservice Model --service-type MODEL"
Both local endpoint docker image and locust docker-compose are using the same docker network.
The UI only appears to have this issue when the other
element-word-cloud-luminate-dev-local
is hitting 100% cpuSimilar UI behaviour if I use the python sdk of locust.
The UI behaviour goes away when I point to cloud version of my local docker element-word-cloud-luminate-dev-local
Here is the docker stats:
Docker settings: 2 CPUs, 8Gb, ** same issue occurs if i bump the cpus to 4 CPUs and 16 GB
Command line
docker-compose up -d --scale worker=2
Locustfile contents
Python version
python 3.11
Locust version
'2.19.1'
Operating system
MacOs Ventura 13.6.3