The most straight forward way of creating a new server configuration is using the command
vnode new which allows you to configure the most basic settings.
By default the node configuration file is stored at user level, which isolates this configuration from other users. In case you want this configuration to be available for all users, simply add the
--system flag (make sure you have sufficient rights to do this).
The configuration wizard outputs a YAML file which can be loaded into VANTAGE6. It is also possible to create this file yourself, to see Configuration File Structure or an example on our github page. This file can be stored (and referred to) at any location at the machine, although it recommended to use either the VANTAGE6 system or user folder. These folders are different per operating system.
Each node instance (configuration) can have multiple environments. If you do not want to specify any environment you should only specify the
application key. In the case you do want to use environments you can specify this in
environments which allows up to four environments:
prod . It should have the following structure:
application:api_key: api-key-from-serverserver_url: https://api.distributedlearning.aiport: 5000api_path: '/api'task_dir: tasksencryption:disabled: falseprivate_key: /path/to/private_key.pemdatabases:default: /path/to/database.csvalternative: /path/to/other/database.csvlogging:level: DEBUG # Can be on of 'DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'file: node.log # Filename of logfileuse_console: True # Log output to the console?backup_count: 5 # Number of logs to keepmax_size: 1024 # Specified in kB (i.e. 1024 means a maximum file size of 1MB)format: "%(asctime)s - %(name)-14s - %(levelname)-8s - %(message)s"datefmt: "%H:%M:%S"