$ locust -f locustfile.py
[2022-04-05 09:43:01,894] LAPTOP-F653NDUF/WARNING/locust.main: System open file limit '4096' is below minimum setting '10000'.
It's not high enough for load testing, and the OS didn't allow locust to increase it by itself.
See https://github.com/locustio/locust/wiki/Installation#increasing-maximum-number-of-open-files-limit for more info.
[2022-04-05 09:43:01,894] LAPTOP-F653NDUF/INFO/locust.main: Starting web interface at http://0.0.0.0:8089 (accepting connections from all network interfaces)
[2022-04-05 09:43:01,903] LAPTOP-F653NDUF/INFO/locust.main: Starting Locust 2.8.5
ブラウザから localhost:8089 にアクセスすると以下の画面が表示されます。
ここで、各項目の内容は以下の通りです。
Number of total users to simulate
最大の同時接続数
Spawn rate
1 秒あたり何ユーザー増やしていくか (最初から最大数にしたい場合は”Number of total users to simulate”と同じ数字にすればよい)