공식 홈페이지

Locust.io

1. Locust 세팅하기


version: '3.8'
services:
  master:
    image: locustio/locust
    ports:
      - "8089:8089"
    volumes:
      - ./:/mnt/locust
    command: -f /mnt/locust/locustfile-hello.py --master -H <http://host.docker.internal:8080> # host.docker.internal은 로컬 호스트를 가리킵니다. (8080이면 api 서버)

  worker:
    image: locustio/locust
    volumes:
      - ./:/mnt/locust
    command: -f /mnt/locust/locustfile-hello.py --worker --master-host master

Untitled

Untitled

Untitled

2. Locust 실행하기