forked from nrasadi/global-state-snapshot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
56 lines (48 loc) · 1.38 KB
/
config.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
bank:
currency:
unit: 'k'
symbol: '$'
# placenemt can be before or after.
# e.g. in $500k dollar symbol is before value
placement: 'after'
transaction:
# min and max random amount of each transaction
min: 1
max: 1000
# probability to decide whether to transfer money to a specific branch
p: 0.3
time_step: 0.5 # transactions are performed every `time_step` seconds.
# maximum number of transactions between two branches (only send messages)
max_n_send: 1000
initial_balance: 1000000 # initial capital of each branch
# branches information
# also, number of branches is inferred from following information
branches:
# ip address
- address: 'localhost'
# port for incoming messages
# port number will be: post_base_in + branch_id + (linked_branch_id * 10)
port_base_in: 9900
# port for outgoing messages
# port number will be: post_base_out + (branch_id * 10) + linked_branch_id
port_base_out: 9900
delay: # random delay of one-way connection latency from this branch
min: 1
max: 10
- address: 'localhost'
port_base_in: 9900
port_base_out: 9900
delay:
min: 1
max: 10
- address: 'localhost'
port_base_in: 9900
port_base_out: 9900
delay:
min: 1
max: 10
inspector:
address: 'localhost'
port_base_in: 11000
port_base_out: 11000
log_file: 'inspector.log'