Test environment:
Ubuntu 18.04.1
Docker version 19.03.6
Environment stays the same only the docker image version is changed.
Running the docker container with the same locustifle.py which is an example from https://hub.docker.com/r/locustio/locust
from locust import HttpUser, task
class QuickstartUser(HttpUser):
def on_start(self):
self.client.post
("/login", json={"username":"foo", "password":"bar"})
@task
def hello_world(self):
self.client.get("/hello")
self.client.get("/world")
@task(3)
def view_item(self):
for item_id in range(10):
self.client.get(f"/item?id={item_id}", name="/item")
When running locustio/locust version 1.3.2 the idle CPU load is around 0.0% and stable.
Running locustio/locust version 1.4.0 the idle CPU load goes up to 100.0% at once when the container is started and stays between 96.7% and 100.0%.
Test environment:
Ubuntu 18.04.1
Docker version 19.03.6
Environment stays the same only the docker image version is changed.
Running the docker container with the same locustifle.py which is an example from https://hub.docker.com/r/locustio/locust
When running locustio/locust version 1.3.2 the idle CPU load is around 0.0% and stable.
Running locustio/locust version 1.4.0 the idle CPU load goes up to 100.0% at once when the container is started and stays between 96.7% and 100.0%.