-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathartillery-load-test.yml
62 lines (62 loc) · 1.37 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
config:
target: http://localhost:8080
tls:
rejectUnauthorized: false
http:
timeout: 10
phases:
- duration: 600
arrivalRate: 1
maxVusers: 1000
name: Warm up phase
- duration: 600
arrivalRate: 10
maxVusers: 5000
name: Ramp up load
- duration: 600
arrivalRate: 100
maxVusers: 10000
name: Spike phase
environments:
prod:
target: http://api-prod-342430507.us-east-1.elb.amazonaws.com
staging:
target: http://api-staging-770293556.us-east-1.elb.amazonaws.com
dev:
target: http://api-dev-1839587515.us-east-1.elb.amazonaws.com
plugins:
expect:
outputFormat: prettyError
ensure: {}
apdex: {}
metrics-by-endpoint: {}
apdex:
threshold: 100
scenarios:
- name: health
flow:
- get:
url: "/health"
expect:
- statusCode: 200
- name: docs
flow:
- get:
url: "/docs"
expect:
- statusCode: 200
- name: search
flow:
- post:
url: "/v0/opportunities/search"
headers:
X-Auth: "{{ $env.API_AUTH_TOKEN }}"
json:
paging:
page_offset: 1
page_size: 25
sorting:
order_by: opportunity_id
sort_direction: ascending
expect:
- statusCode: 200