-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathscenario.ini
72 lines (43 loc) · 1.92 KB
/
scenario.ini
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
[outputs]
# Each scenario will generate two input files for NoWog: LOADING stage file and WORKLOAD stage file
# To execute each stage, add the following path into input file paths in config.ini and run main.py.
load_BNF = scenario_data/load.txt
workload_BNF = scenario_data/workload.txt
[load_dataset]
# ------------------------------
# Collection size. All workload will be executed only in one collection.
# Database and collection name can be edited in congif.ini before execution.
coll_size = 1000
# ------------------------------
# <write> phrase defined in EBNF_grammar.txt.
# Used in all insert operation. For find and update operation, program will
# randomly choose attributes from all attributes provided in this phrase
write = {(A1: True)(A2: False)(A3: text_write)(A4: num_match)(A5: Array.Bool)(A6: Array.Text)(A7: Array.Num)(A8: (A1: True)(A2: False)(A3: text_write)(A4: num_match)(A5: Array.Bool)(A6: Array.Text)(A7: Array.Num))(A9: (A8: (A1: True)(A2: False)(A3: text_write)(A4: num_match)(A5: Array.Bool)(A6: Array.Text)(A7: Array.Num)))}
[workload]
# ------------------------------
# generate {simple, complicate} operation
# simple: no nested attributes
# complicate: only nested attributes, e.g. {'A1.B1.C1': 130416}
complexity = simple
# ------------------------------
# time period of all workload
start_time = 0
end_time = 30
# ------------------------------
# The total amount workloads of all types of operations.
total_workload = 1000
# ------------------------------
# scenario type: {read_only, update_only, insert_only, read_mostly, update_mostly, custom}
# read_only: 100% read
# update_only: 100% update
# insert_only: 100% insert
# read_mostly: 95% read and 5% update
# update_mostly: 50% read and 50% update
# custom: customize your ratio in [ratio] section
type = read_mostly
[ratio]
# only valid when type is "custom"
# Note: Sum of all ratio should be 100.
read = 50
update = 50
insert = 0