Skip to content

Instantly share code, notes, and snippets.

@johnytiago
Last active March 31, 2020 14:53
Show Gist options
  • Save johnytiago/302c9cfe688f78cdf425e778e636ecdc to your computer and use it in GitHub Desktop.
Save johnytiago/302c9cfe688f78cdf425e778e636ecdc to your computer and use it in GitHub Desktop.
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