wiki:Internal/Infrastructure/SetupTestbed/CfgNodeAgent

Version 1 (modified by korakis, 15 years ago) ( diff )

The configuration of Nodeagent4 is dependent on file "nodeagent.yaml" which is located under path "/etc/nodeagent4", A typical configuration looks like below.

      1 # NOTE: use only 'spaces' to indent !
      2 # ('tab' indents are not supported by the ruby yaml parser used to read this file)
      3 #
      4 # This is the Config file for the NodeAgent4 on the WINLAB platform
      5 #
      6 ---
      7 nodeagent:
      8   # Communication settings
      9   comm:
     10
     11     # How many seconds can we go without a message from the node handler
     12     # before we assume we have lost connectivity and need to reset
     13     handler_timeout: 40
     14
     15     # Number of consecutive handler timeouts before a 'handler lost'
     16     # will be declared.
     17     timeout_count: 2
     18
     19     # Number of seconds to wait between consecutive RETRY requests
     20     retry_interval: 3
     21
     22     # Number of seconds between consecutive HEARTBEAT messages
     23     heartbeat_interval: 10
     24
     25     # Pause between resending previous messages
     26     resend_interval: 0.1
     27
     28     # Currently the node Agent has the choice between two types
     29     # of Communicators to use to talk to the node Handler:
     30     # i)  Multicast Communicator
     31     # ii) TCP Server Communicator
     32     #
     33     # To enable/disable i) uncomment/comment the following lines
     34     #
     35     listen_addr: 224.4.0.1
     36     listen_port: 9006
     37     handler_addr: 224.4.0.2
     38     handler_port: 9002
     39     local_if: eth0 # Control Interface used with Multicast Comm.
     40     #
     41     # To enable/disable ii) uncomment/comment the following lines
     42     #server_port: 9026
     43     # local_if: Control Interface used with TCPServer Comm.
     44     #local_if: eth0 # for nodes on the NICTA platform
     45     #local_if: eth1 # for nodes on the WINLAB platform

Comments 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.

Each time the configuration is changed, you need reset nodeagent with "/etc/init.d/nodeagent4 restart"

Note: See TracWiki for help on using the wiki.