Skip to content

Configuring lancoder

jdupl edited this page Oct 24, 2014 · 1 revision

Lancoder is a centralized cluster. It is dependent on a master coordinating multiple workers.

Prompting configuration

A full configuration can be generated and customized by running the worker or the master with the --init-prompt flag.

All configuration fields will get their values by prompting the user.

Autogenerating configuration

A default configuration file can be generated by using the '--init-default' flag.

You might need to edit some of these fields.

The configuration files are located in ~/.config/lancoder/*_config.json.

Common configuration

These fields are needed for both master and workers.

absoluteSharedFolder

All nodes must share a network drive or folder to allow nodes to share files.

Let's say the network drive is pointing to a NAS nfs://192.168.0.100/path/to/my/share or smb://192.168.0.100/myShare.

As long as these two shares point to the same folder structure, they both can be used.

The mount point of the network share can also differ from node to node.

If node 1 has a nfs share mounted on /media/user/share, the machine's 'absoluteSharedFolder' will be /media/user/share.

If node 2 is a Windows system and has a SMB share mounted on the drive Z:\, the node's 2 absolutionSharedFolder will be Z:\.

Please note that it is recommended to enter all path with / instead or \ on Windows.

Worker configuration

masterIpAddress

The ip address of the master node. Pretty straightforward.

name

The name of the worker. Only used to output information to the user.

tempEncodingFolder

The location where to store temporary files. Should be /tmp for any non-windows os with a big enough disk. If no local disk space is available, the temp folder could be a network mounted folder, but this might generate a lot of IO.

masterPort

The port of the master node (must be equal to master's nodeServerPort)

listenPort

The master will communicate to the worker through this port.

Master configuration

nodeServerPort

The port to listen for nodes.

apiServerPort

The port of the WebUI manager.

finalEncodingFolder

The folder in which to put all final encodings. Must be relative to the absoluteSharesFolder.

If the shared folder is /media/user/share/ and the final encoding folder is encodes, output of the jobs will be in the folder /media/user/share/encodes.