Skip to content

AMNES Component Configuration

The individual components of AMNES can be configured in separate files using the YAML markup language. The standard path for all configuration files is ~/.amnes. This section describes the configuration options of the individual components.

Controller Configuration

Controller and Worker Configurations are the same underneath the exec key. First, address and port are specified for the management network. Then a name can be assigned to the component. After that you can specify how to handle the AMNES log entries by setting handlers under the logging key. There are two options: Either the tty key can be used to output the messages directly to STDOUT and STDERR or the syslog key can be used to send the messages to a syslog server. It is also possible to do both at the same time.

exec:
  address: 172.28.1.11
  port: 22022
  name: AMNES-DevEnv-Controller
  logging:
    - tty:
        stream: stdout
    - syslog:
        host: 172.28.1.12
        port: 514
        socktype: tcp

controller:
  backend: "postgres"
  postgres:
    host: "172.28.1.12"
    port: 5432
    user: "amnes"
    password: "amnes"
    database: "amnes"
  filetransfer_address: 172.28.1.11
  filetransfer_port: 22023
Below controller all controller specific configuration options can be set. Here, the storage backend can be selected using backend. At the moment sqlite and postgres are supported. When defining postgres as storage backend, host, port, user, password and database must be specified. Finally, address and port are required for the file transfer of measurement results. They can be specified with the keys filetransfer_address and filetransfer_port.

Worker Configuration

The configuration options for a worker instance below the exec key are the same as for the controller. In addition to this, no further specific configurations can be made for a worker instance at the moment.

exec:
  address: 172.28.1.21
  port: 22022
  name: AMNES-DevEnv-Worker-1
  logging:
    - tty:
        stream: stdout
worker: {}

CTL Configuration

For the AMNES CTL command line tool, only address and port of the corresponding controller instance must be specified.

ctl:
  controller_address: 172.28.1.11
  controller_port: 22022