-
Notifications
You must be signed in to change notification settings - Fork 4
Configuring lancoder
Lancoder is a centralized cluster. It is dependent on a master coordinating multiple workers.
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.
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
.
These fields are needed for both master and workers.
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.
The ip address of the master node. Pretty straightforward.
The name of the worker. Only used to output information to the user.
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.
The port of the master node (must be equal to master's nodeServerPort)
The master will communicate to the worker through this port.
The port to listen for nodes.
The port of the WebUI manager.
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
.