| 1 | The configuration of Nodeagent4 is dependent on file "nodeagent.yaml" which is located under path "/etc/nodeagent4", A typical configuration looks like below. |
| 2 | {{{ |
| 3 | 1 # NOTE: use only 'spaces' to indent ! |
| 4 | 2 # ('tab' indents are not supported by the ruby yaml parser used to read this file) |
| 5 | 3 # |
| 6 | 4 # This is the Config file for the NodeAgent4 on the WINLAB platform |
| 7 | 5 # |
| 8 | 6 --- |
| 9 | 7 nodeagent: |
| 10 | 8 # Communication settings |
| 11 | 9 comm: |
| 12 | 10 |
| 13 | 11 # How many seconds can we go without a message from the node handler |
| 14 | 12 # before we assume we have lost connectivity and need to reset |
| 15 | 13 handler_timeout: 40 |
| 16 | 14 |
| 17 | 15 # Number of consecutive handler timeouts before a 'handler lost' |
| 18 | 16 # will be declared. |
| 19 | 17 timeout_count: 2 |
| 20 | 18 |
| 21 | 19 # Number of seconds to wait between consecutive RETRY requests |
| 22 | 20 retry_interval: 3 |
| 23 | 21 |
| 24 | 22 # Number of seconds between consecutive HEARTBEAT messages |
| 25 | 23 heartbeat_interval: 10 |
| 26 | 24 |
| 27 | 25 # Pause between resending previous messages |
| 28 | 26 resend_interval: 0.1 |
| 29 | 27 |
| 30 | 28 # Currently the node Agent has the choice between two types |
| 31 | 29 # of Communicators to use to talk to the node Handler: |
| 32 | 30 # i) Multicast Communicator |
| 33 | 31 # ii) TCP Server Communicator |
| 34 | 32 # |
| 35 | 33 # To enable/disable i) uncomment/comment the following lines |
| 36 | 34 # |
| 37 | 35 listen_addr: 224.4.0.1 |
| 38 | 36 listen_port: 9006 |
| 39 | 37 handler_addr: 224.4.0.2 |
| 40 | 38 handler_port: 9002 |
| 41 | 39 local_if: eth0 # Control Interface used with Multicast Comm. |
| 42 | 40 # |
| 43 | 41 # To enable/disable ii) uncomment/comment the following lines |
| 44 | 42 #server_port: 9026 |
| 45 | 43 # local_if: Control Interface used with TCPServer Comm. |
| 46 | 44 #local_if: eth0 # for nodes on the NICTA platform |
| 47 | 45 #local_if: eth1 # for nodes on the WINLAB platform |
| 48 | }}} |
| 49 | |
| 50 | Comments |
| 51 | Line 39: the name of interface which communicates with nodehandler4 running on console. This port should be Rtl-8169 Gigabit ethernet port between four USB ports on nodes.[[BR]] |
| 52 | |
| 53 | Each time the configuration is changed, you need reset nodeagent with "/etc/init.d/nodeagent4 restart" |