Part 2 : Project configuration



Here is an example of the full swarm configuration :
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
#Swarm configuration
[swarm]
send_flag = "NON_BLOCK"
send_timeout_ms = -1
recv_flag = "NON_BLOCK"
recv_timeout_ms = -1

#Daemon which manages statistics
[statistics]
stat_daemon_name = "StatManager"

#List of Daemons of the Swarm
[[daemon]]
name = "StatManager"
description = "One daemon of the swarm with statistics"
log_file = "daemon_stat.log"
log_level = "DEBUG"
hostname = "localhost"
receiving_port = 3390
stat_nb_bin = 50
stat_hist_lower_bound = 0.0
stat_hist_upper_bound = 100.0
daemon_required_response_timeout = 1000

[[daemon]]
name = "Daemon1"
description = "One daemon of the swarm with statistics"
log_file = "daemon1_test.log"
log_level = "DEBUG"
hostname = "localhost"
receiving_port = 3391
stat_nb_bin = 50
stat_hist_lower_bound = 0.0
stat_hist_upper_bound = 100.0
daemon_required_response_timeout = 2000

[[daemon]]
name = "Daemon2"
description = "An other daemon of the swarm with statistics"
log_file = "daemon2_test.log"
log_level = "DEBUG"
hostname = "localhost"
receiving_port = 3391
stat_nb_bin = 50
stat_hist_lower_bound = 0.0
stat_hist_upper_bound = 100.0
daemon_required_response_timeout = 2000