mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-12 14:59:01 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
33
tldr/locust
Normal file
33
tldr/locust
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# locust
|
||||
|
||||
> Load-testing tool to determine number of concurrent users a system can handle.
|
||||
> More information: <https://locust.io>.
|
||||
|
||||
- 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}}`
|
||||
Reference in New Issue
Block a user