-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathartillery-load-test.yml
77 lines (75 loc) · 1.73 KB
/
artillery-load-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
config:
target: "http://127.0.0.1:3000"
tls:
rejectUnauthorized: false
http:
timeout: 10
phases:
- duration: 300
arrivalRate: 10
maxVusers: 100
name: Warm up phase
- duration: 300
arrivalRate: 50
maxVusers: 500
name: Ramp up load
- duration: 300
arrivalRate: 100
maxVusers: 2000
name: Spike phase
environments:
local:
target: http://localhost:3000
phases:
- duration: 2
arrivalRate: 5
name: Warm up phase
- duration: 1
arrivalRate: 1
maxVusers: 1
name: Ramp up load
- duration: 1
arrivalRate: 1
maxVusers: 1
name: Spike phase
prod:
target: https://simpler.grants.gov
stage:
target: http://frontend-staging-1506108424.us-east-1.elb.amazonaws.com
dev:
target: http://frontend-dev-1739892538.us-east-1.elb.amazonaws.com
plugins:
expect:
outputFormat: prettyError
ensure: {}
apdex: {}
metrics-by-endpoint: {}
processor: "./tests/artillery/processor.ts"
before:
flow:
- function: loadData
scenarios:
- name: Opportunity Pages
beforeScenario: getOppId
flow:
- get:
url: "/opportunity/{{ id }}"
- log: "GET /opportunity/{{ id }}"
- name: 404 Pages
beforeScenario: get404
flow:
- get:
url: "/{{ route }}"
- log: "GET 404 page /{{ route }}"
- name: Static Pages
beforeScenario: getStatic
flow:
- get:
url: "/{{ route }}"
- log: "GET static page /{{ route }}"
- name: Searches
beforeScenario: getSearchQuery
flow:
- get:
url: "/search?{{ query }}"
- log: "GET /search?{{ query }}"