특징
import os, time
from locust import FastHttpUser, task, constant
class WebUser(FastHttpUser):
host = os.getenv("TARGET") # .env 주소 입력
wait_time = constant(0) # 대기 0 → 최대 RPS
@task(10)
def index(self):
self.client.get(f"/?_ts={time.time_ns()}",
headers={"Cache-Control": "no-cache"})
docker-compose up --scale worker=5
[<http://localhost:8077/>](<http://localhost:8077/>)

4000