Machines are the compute units of a Ployz cluster. Every machine runsDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/getployz/ployz/llms.txt
Use this file to discover all available pages before exploring further.
ployzd and participates in the WireGuard mesh, the NATS control plane, and the workload runtime. You add and remove machines with explicit commands — there is no autoscaler and no background scheduler placing machines for you.
Listing machines
--json for structured output suitable for scripting.
Initializing a new machine
machine init provisions and joins a single machine in one step. Use this when you have SSH access to a fresh host and want to bring it into an existing network:
| Flag | Description |
|---|---|
--network | Name of the cluster network to join (required) |
--runtime | Container runtime: docker or host |
--service-mode | How ployzd runs: user or system |
--install-source | Where to pull the binary from: release or git |
--install-version | Specific release version to install |
--install-git-url | Git remote URL (used with --install-source git) |
--install-git-ref | Git ref to build from (used with --install-source git) |
Adding machines
machine add joins one or more machines into the cluster. It is the multi-target variant of machine init, and accepts the same install flags plus an optional SSH identity file:
Machine invite workflow
Use invites when you cannot provide SSH credentials tomachine add — for example, when a new machine is bootstrapping itself into the cluster. The invite token is short-lived and single-use.
On the cluster coordinator:
machine ls and can receive workloads.
Updating machines
machine update upgrades the ployzd binary on one or more machines to a target version:
Lifecycle transitions
Machines move through an explicit lifecycle. You control transitions with three commands:activate
Marks the machine as ready to accept new workload placements.
drain
Stops new placements to this machine. Existing workloads keep running until you migrate or remove them.
standby
Removes the machine from active placement without draining running workloads immediately.
machine standby --force bypasses the precondition check that normally prevents a machine from entering standby while it still holds workloads. Use this when you need to park a machine that already has its workloads migrated manually.Promoting storage authority
By default, only a subset of machines hold the full NATS control-plane store.machine storage promote adds machines to the storage authority set and configures the replication policy:
active and on a compatible version. The command reports each promotion result individually, so you can see exactly which targets succeeded and which did not.
Removing a machine
machine rm removes a machine’s membership record from the cluster:
--force skips all online target cleanup. Use it when the machine is unreachable or already destroyed and you need to remove the stale membership record from the cluster.Next steps
Deploy workloads
Deploy services to your cluster after machines are joined and active.
Migrate workloads
Move a running workload and its persistent volumes to a different machine.