-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.py
23 lines (21 loc) · 867 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
replicas = {
0:("127.0.0.1", 9100, "./logs/replica_0.json", 0, 0.5),
1:("127.0.0.1", 9102, "./logs/replica_1.json", 0, 0.5),
2:("127.0.0.1", 9104, "./logs/replica_2.json", 0, 0.5),
3:("127.0.0.1", 9106, "./logs/replica_3.json", 0, 0.5),
4:("127.0.0.1", 9108, "./logs/replica_4.json", 0, 0.5),
5:("127.0.0.1", 9110, "./logs/replica_5.json", 0, 0.5),
6:("127.0.0.1", 9112, "./logs/replica_6.json", 0, 0.5),
7:("127.0.0.1", 9114, "./logs/replica_7.json", 0, 0.5),
8:("127.0.0.1", 9116, "./logs/replica_8.json", 0, 0.5),
9:("127.0.0.1", 9118, "./logs/replica_9.json", 0, 0.5),
10:("127.0.0.1", 9120, "./logs/replica_10.json", 0, 0.5)
}
clients = {
0:("127.0.0.1", 9200, "./logs/client_0.json", 0, 0.5),
1:("127.0.0.1", 9202, "./logs/client_1.json", 0, 0.5)
}
f = 1
k = 10
total_message = 10000
print_heart_beat = True