Configuring Loud MLedit

Loud ML ships with good defaults and requires very little configuration. Most settings can be changed using the Loud ML CLI CLI.

The configuration files should contain settings which are specific to your NoSQL databases (such as database name and remote access parameters), or settings which Loud ML requires in order to be respond to API calls.

Config files locationedit

Loud ML has one configuration file:

  • config.yml for configuring Loud ML

These files are located in the config directory, whose default location depends on whether or not the installation is from an archive distribution (whl or egg) or a package distribution (Debian or RPM packages).

For the archive distributions, the config directory location defaults to $LM_HOME/config. The location of the config directory can be changed via the LM_PATH_CONF environment variable as follows:

LM_PATH_CONF=/path/to/my/config ./bin/loudmld

Alternatively, you can export the LM_PATH_CONF environment variable via the command line or via your shell profile.

For the package distributions, the config directory location defaults to /etc/loudml. The location of the config directory can also be changed via the LM_PATH_CONF environment variable, but note that setting this in your shell is not sufficient. Instead, this variabled is sourced from /etc/default/loudml (for the Debian package) and /etc/sysconfig/loudml (for the RPM package). You will need to edit the LM_PATH_CONF=/etc/loudml entry in one of these files accordingly to change the config directory location.

Config file formatedit

The configuration format is YAML. Here is an example of changing the path of persistent storage directory:

storage:
    path: /var/lib/loudml

Settings can also be flattened as follows:

storage.path: /var/lib/loudml