curl -d '{"test":"value1", "test2":"value2"}' \\
-H "Content-Type: application/json" \\
-X POST <https://d2m12gvsv4f90l.cloudfront.net>
cat <<EOF > locust.py
from locust import HttpUser, task
class ServerTest(HttpUser):
@task
def api_test(self):
self.client.get("/stress") # self.client.post("/", json={"data": "data})
EOF
sudo yum install -y python3-pip
pip3 install locust
locust -f locust.py --headless -u 100 -r 100 --host http://<호스트>