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
both | worker | server | |
|---|---|---|---|
| Machines | One | Several | Several |
| Workers run on | The machine that runs the script | Every node of the cluster, the driver's node included | Every node of the cluster except the driver's node |
| Ray | The runner starts a local Ray, or uses the Ray already started in the process | You start the cluster | You start the cluster |
address option | Must not be set | Required | Required |
| Selected by default when | No address is set | An address is set and no role is set | Never; you set it |
Which one to use
- Use
bothto 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
workerwhen you need more capacity than one machine, and the machine that runs the script can also reach the devices. - Use
serverwhen 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
| Task | both | worker and server |
|---|---|---|
| Install nornir-ray | On one machine | On every node |
| Install your task packages and connection plugins | On one machine | On every node, in the same versions |
| Start Ray | Nothing to do | Start a head node and join the other nodes, the driver's machine included |
| Protect the network between the machines | Not needed | Required; see Security |