ALPHA: wire is a tool to deploy nixos systems wire.althaea.zone/

comment: true title: Use Parallelism description: How to use parallelism with wire Tool.#

{{ $frontmatter.title }}#

{{ $frontmatter.description }}

Controlling CPU Usage#

wire evaluates, builds, pushes, and deploys each node completely independently from each other. Internally wire calls this process a "node execution".

The default number of parallel node executions is 10, which can be controlled with the -p / --parallel argument.

$ wire apply -p <NUMBER>

Interaction with Nix's max-jobs#

Nix has an overall derivation build limit and core limit. If executing a node fills Nix's max-jobs all other nodes will bottleneck. You should read the relevant documentation to fine tune these settings.

When a Node is built remotely due to deployment.buildOnTarget that node will not push up the local machine's max-jobs limit.