adamant-kite-43734
12/08/2023, 11:58 AMgreen-barista-33255
12/08/2023, 11:58 AM# docker-compose.yml
version: '3'
services:
master:
image: locustio/locust
ports:
- "8089:8089"
volumes:
- ./:/mnt/locust
command: -f /mnt/locust/locustfile.py --master -H <http://master:8089>
worker:
image: locustio/locust
volumes:
- ./:/mnt/locust
command: -f /mnt/locust/locustfile.py --worker --master-host master
green-barista-33255
12/08/2023, 11:58 AM# locustfile.py
from locust import HttpUser, task
class HelloWorldUser(HttpUser):
@task
def hello_world(self):
self.client.get("/hello")
rapid-eye-50641
12/08/2023, 5:45 PM/Users/$USER
on macOS. However, you can change this behavior via provisioning scripts. You can refer to an example provided in the thread below:
https://github.com/rancher-sandbox/rancher-desktop/issues/1209#issuecomment-1370181132rapid-eye-50641
12/08/2023, 5:47 PMgreen-barista-33255
12/11/2023, 8:51 AM