Last active
March 31, 2020 14:53
-
-
Save johnytiago/302c9cfe688f78cdf425e778e636ecdc to your computer and use it in GitHub Desktop.
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
config: | |
environments: | |
# Configure several environments and select which to run through the -e flag | |
local: | |
target: "http://localhost:8080" | |
preproduction: | |
target: "https://example-api.preproduction.mycorp.internal" | |
phases: | |
- duration: 120 | |
arrivalRate: 5 | |
rampTo: 50 | |
name: "Warm up the application" | |
- duration: 480 | |
arrivalRate: 50 | |
name: "Sustained max load" | |
ensure: | |
p95: 200 | |
median: 100 | |
maxErrorRate: 1 | |
processor: "./helpers.js" | |
payload: | |
# each environment may have special payload files | |
- path: "{{ $environment }}/user-ids.csv" | |
fields: | |
- "userId" | |
cast: false | |
- path: "{{ $environment }}/song-ids.csv" | |
fields: | |
- "songId" | |
cast: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment