-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathconf.py
48 lines (42 loc) · 1.38 KB
/
conf.py
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
from collections import OrderedDict
CONGIF = {
"creds":
{
"aws_id": "aaaaa",
"aws_key": "bbbb"
},
"func":
{
"name_prefix": "mytest",
"region": "us-east-1",
"role_1": "arn:aws:iam::xxxxx:role/lambda1",
"role_2": "arn:aws:iam::xxxxx:role/lambda2"
}
}
# The default path for function code
CODE_PATH = {
'python2.7': './code/python',
'python3.6': './code/python',
'nodejs6.10': './code/nodejs',
'nodejs4.3': './code/nodejs',
'java8': './code/java',
}
"""
The template request
sleep: set a value X here. The function will sleep for X seconds before return
stat: if let the measurement function will run the basic_stat subroutine
run: pass a cmd to the measurement function. if set the measurement function
will run the specified string as an external command.
io: pass the parameters for the IO tests
net: pass the parameters for the network throughput tests
cpu: pass the parameters for the CPU tests
cpuu: pass the parameters for the CPU utilization tests
"""
PARA_TEMP = OrderedDict()
PARA_TEMP["sleep"] = 0 # change it to 0 for quick tests
PARA_TEMP["stat"] = dict(argv=1)
PARA_TEMP["run"] = dict(cmd=str)
PARA_TEMP["io"] = dict(rd=int, size=str, cnt=int)
PARA_TEMP["net"] = dict(port_offset=int, server_ip=str)
PARA_TEMP["cpu"] = dict(n=int)
PARA_TEMP["cpuu"] = dict(n=int)