-
Notifications
You must be signed in to change notification settings - Fork 1
/
load-test.yml
47 lines (46 loc) · 1.9 KB
/
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
config:
target: 'https://xxx:8443'
phases:
- duration: 60
arrivalRate: 1
http:
tls:
rejectUnauthorized: false
defaults:
headers:
Accept: application/vnd.apache.thrift.json; charset=utf-8
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.8
Cache-Control: no-cache
Content-Type: application/vnd.apache.thrift.json; charset=UTF-8
Host: 129.94.120.138:9092
Origin: http://localhost:4200
Referer: http://localhost:4200/
Connection: keep-alive
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
Pragma: no-cache
scenarios:
- flow:
- post:
url: "/"
headers:
Content-Length: 88
body:
"[1,\"connect\",1,0,{\"1\":{\"str\":\"mapd\"},\"2\":{\"str\":\"HyperInteractive\"},\"3\":{\"str\":\"mapd\"}}]"
capture:
json: $[4]['0']['str']
as: "key"
# Represents a binned historgram chart query
- post:
url: "/"
headers:
Content-Length: 365
body:
"[1,\"sql_execute\",1,0,{\"1\":{\"str\":\"{{ key }}\"},\"2\":{\"str\":\"SELECT cast((cast(c3_START as float) - 52) * 4.012193408842492e-7 as int) as key0,AVG(AF) AS afavg FROM mgrb WHERE (c3_START >= 52 AND c3_START <= 249240280) AND AF IS NOT NULL GROUP BY key0 HAVING key0 >= 0 AND key0 < 100 ORDER BY key0\"},\"3\":{\"tf\":1},\"4\":{\"str\":\"0\"},\"5\":{\"i32\":-1}}]"
# Represents a paginated table query
- post:
url: "/"
headers:
Content-Length: 270
body:
"[1,\"sql_execute\",1,0,{\"1\":{\"str\":\"{{ key }}\"},\"2\":{\"str\":\"SELECT * FROM MGRB WHERE (chromosome = '2') AND (ALT = 'T') AND (c4_REF = 'C') AND ((AF >= 0.9166666666666666 AND AF <= 1)) LIMIT 20 OFFSET 0\"},\"3\":{\"tf\":1},\"4\":{\"str\":\"1\"},\"5\":{\"i32\":-1}}]"