Skip to content

Processing Node

Example processing node:

{
"id": 2,
"online": true,
"hostname": "nodeodm.masseranolabs.com",
"port": 80,
"api_version": "1.0.1",
"engine_version": "0.6.0",
"engine": "odm",
"last_refreshed": "2017-03-01T21:14:49.918276Z",
"queue_count": 0,
"max_images": null,
"label": "nodeodm.masseranolabs.com:80",
"available_options": [
{
"help": "Oct-tree depth at which the Laplacian equation is solved in the surface reconstruction step. Increasing this value increases computation times slightly but helps reduce memory usage. Default: 9",
"name": "mesh-solver-divide",
"type": "int",
"value": "9",
"domain": "positive integer"
},
...

Processing nodes are associated with zero or more tasks and take care of processing input images. Processing nodes are computers or virtual machines running NodeODM or any other API compatible with it.

FieldTypeDescription
idintUnique Identifier
onlineboolWhether the processing node could be reached in the last 5 minutes
hostnamestringHostname/IP address
portintPort
api_versionstringVersion of NodeODM currently running
engine_versionstringVersion of processing engine currently being used
enginestringLowercase identifier of processing engine
last_refreshedstringDate and time this node was last seen online. This value is typically refreshed every 15-30 seconds and is used to decide whether a node is offline or not
queue_countintNumber of Task items currently being processed/queued on this node.
max_imagesintOptional maximum number of images this processing node can accept. null indicates no limit.
labelstringLabel for the node
available_optionsJSON[]JSON-encoded list of options that this node is capable of handling. See Available Options for more information
NameDescription
helpDescription of the option
nameName that identifies the option. This is the value you pass in the name key/value pair when creating a set of options for a new Task
typePossible values are int, float, string, bool
valueDefault value if the option is not specified
domainRestriction of the range of values that this option allows. Examples are float, negative integer, percent, float: 0 <= x <= 10, etc. for all possible values, check NodeODM’s odmOptions.js code

POST /api/processingnodes/

ParameterRequiredDefaultDescription
hostname*""Hostname/IP address
port*Port

All other fields are automatically populated, and shouldn’t generally be specified.

PATCH /api/processingnodes/

Parameters are the same as above.

DELETE /api/processingnodes/

Upon deletion, all Task items associated with the node will continue to exist. You might get errors (duh!) if you delete a processing node in the middle of processing a Task.

GET /api/processingnodes/

ParameterRequiredDefaultDescription
id""Filter by id
hostname""Filter by hostname
port""Filter by port
api_version""Filter by API version
queue_count""Filter by queue count
max_images""Filter by max images
engine_version""Filter by engine version
engine""Filter by engine identifier
ordering""Ordering field to sort results by
has_available_options""Return only processing nodes that have a valid set of processing options (check that the available_options field is populated). Either true or false.

Example: Show only nodes that have a valid set of options

Section titled “Example: Show only nodes that have a valid set of options”

GET /api/processingnodes/?has_available_options=true

GET /api/processingnodes/?ordering=-hostname

Sort by hostname, descending order.

Processing options example:

[
{
"help": "Oct-tree depth at which the Laplacian equation is solved in the surface reconstruction step. Increasing this value increases computation times slightly but helps reduce memory usage. Default: 9",
"name": "mesh-solver-divide",
"type": "int",
"value": "9",
"domain": "positive integer"
},
{
"help": "Ignore matched keypoints if the two images share less than <float> percent of keypoints. Default: 2",
"name": "matcher-threshold",
"type": "float",
"value": "2",
"domain": "percent"
},
...

GET /api/processingnodes/options/

Display the common options available among all online processing nodes. This is calculated by intersecting the available_options field of all online processing nodes visible to the current user.

Use this list of options to check whether a particular option is supported by all online processing nodes. If you use the automatic processing node assignment feature for processing tasks, this is the list you want to display to the user for choosing the options to use during processing.