Skip to main content

Choose a deployment

A deployment is the set of machines that run your script and the workers. nornir-ray has three deployments. The runner option role selects one.

The three deployments​

bothworkerserver
MachinesOneSeveralSeveral
Workers run onThe machine that runs the scriptEvery node of the cluster, the driver's node includedEvery node of the cluster except the driver's node
RayThe runner starts a local Ray, or uses the Ray already started in the processYou start the clusterYou start the cluster
address optionMust not be setRequiredRequired
Selected by default whenNo address is setAn address is set and no role is setNever; you set it

Which one to use​

  • Use both to try the runner, to develop tasks, and when one machine has enough capacity and can reach all the devices. You install nothing more than the package.
  • Use worker when you need more capacity than one machine, and the machine that runs the script can also reach the devices.
  • Use server when the machine that runs the script must not connect to the devices. For example, the script runs on an application server, and only dedicated machines in the management network can reach the devices.

What each deployment asks from you​

Taskbothworker and server
Install nornir-rayOn one machineOn every node
Install your task packages and connection pluginsOn one machineOn every node, in the same versions
Start RayNothing to doStart a head node and join the other nodes, the driver's machine included
Protect the network between the machinesNot neededRequired; see Security

Next steps​