forked from tldr-pages/tldr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# locust | ||
|
||
> Load-testing tool to determine number of concurrent users a system can handle. | ||
- Load-test "example.com" with web interface using locustfile.py: | ||
|
||
`locust --host={{http://example.com}}` | ||
|
||
- Use a different test file: | ||
|
||
`locust --locustfile={{test_file.py}} --host={{http://example.com}}` | ||
|
||
- Run test without web interface, spawning 1 user a second until there are 100 users: | ||
|
||
`locust --no-web --clients={{100}} --hatch-rate={{1}} --host={{http://example.com}}` | ||
|
||
- Start locust in master mode: | ||
|
||
`locust --master --host={{http://example.com}}` | ||
|
||
- Connect locust slave to master: | ||
|
||
`locust --slave --host={{http://example.com}}` | ||
|
||
- Connect locust slave to master on a different machine: | ||
|
||
`locust --slave --master-host={{master_hostname}} --host={{http://example.com}}` |