Cluster overview
Anastro clusters scale from one box under a desk to a multi-node rack deployment with dedicated workers. If you just want to install a single node first, start with the quickstart.
Cluster shapes
Section titled “Cluster shapes”Every cluster runs 1, 3, or 5 control-plane nodes (even counts are rejected). Any control-plane
node can also carry the worker role to run machines (a converged node), and you can add
worker-only nodes at any time.
| Control-plane nodes | Postgres | etcd | Survives |
|---|---|---|---|
| 1 | Standalone Postgres (no Patroni) | Not started | Nothing—rely on backups |
| 3 | Patroni primary + 2 replicas (each commit waits for 1 replica) | 3 members | 1 node failing |
| 5 | Patroni primary + 4 replicas | 5 members | 2 nodes failing |
Control-plane size (cluster.control_plane and postgres.mode) is fixed at creation and can’t be
changed on a running cluster.
Common layouts:
- 1 converged node: control plane, Postgres, and microVMs on one server. Great for personal use or trying Anastro out.
- 3 converged nodes: high availability without dedicated worker hardware.
- 3 or 5 control-plane nodes + worker-only nodes: isolates untrusted agent workloads away from Postgres and cluster secrets.
anastroctl, anastroctl ui (your workstation, over iroh) | +-----------------+-----------------+ | | |+----------+ +----------+ +----------+| cp1 | | cp2 | | cp3 | control plane| machined | | machined | | machined | node API, config, upgrades| apid | | apid | | apid | cluster API, web UI, gateway| schedd | | schedd | | schedd | one leader schedules & runs GC| Patroni |<---->| Patroni |<---->| Patroni | Postgres primary + replicas| etcd | | etcd | | etcd | (private network only)+----------+ +----------+ +----------+ ^ ^ ^ +-------- iroh (agent protocol) ----+ | +------------+------------+ | | +----------+ +----------+ | w1 | | w2 | worker-only nodes | hostagent| | hostagent| microVMs and workspaces | dwfsd | | dwfsd | +----------+ +----------+What runs on a node
Section titled “What runs on a node”Every node boots the same immutable OS image; its config determines which services start.
| Service | Runs on | Role |
|---|---|---|
machined |
Every node | Applies signed config, manages services and upgrades, serves the node API |
apid |
Control plane | Cluster API, embedded web UI, inference gateway |
schedd |
Control plane (one leader) | Machine placement, idle spin-down, workspace GC |
postgres |
Control plane | Standalone Postgres (1 node) or Patroni + etcd (3 or 5 nodes) |
agents |
Control plane ([pidurable] enabled) |
Runs agent threads |
secretd |
Control plane (with secret store) | Holds the cluster KEK and serves the encrypted secret store |
keyd |
Control plane ([filesystem] enabled) |
Releases workspace encryption keys to workers |
opd |
Control plane (with 1Password enabled) | Resolves project secrets from 1Password |
op-sdk |
Control plane (1Password SDK mode) | Runs the 1Password SDK for opd, started on first use |
relay |
Control plane (iroh.run_relay) |
Cluster-owned iroh relay |
hostagent |
Workers (worker role) |
Runs Linux machines as Cloud Hypervisor microVMs |
dwfsd |
Workers (with filesystem enabled) | Mounts machines’ workspaces |
Run anastroctl node services to see what’s active on each node. Worker-only nodes run only
machined, hostagent, and dwfsd—no Postgres, no API, no relay, and none of the cluster’s
secrets.
Converged nodes
Section titled “Converged nodes”When a node carries both roles (roles = ["controlplane", "worker"]), Anastro shields the control
plane from workloads:
- Control-plane services run in
system.slicewith higher CPU and I/O weight, and Postgres gets reserved memory. - Machines run inside
workloads.slice, capped bynode.worker.max_cpuandmax_memory. - Multi-node converged clusters require a separate
node.worker.vm_diskfor machines. - Once you add dedicated workers, converged nodes automatically pick up the
controlplane:trusted-onlytaint so ordinary machines steer clear of them.
Zero-SSH operations
Section titled “Zero-SSH operations”Nodes ship with no SSH daemon, no interactive shell, and no package manager. You manage everything
from your workstation through git and anastroctl over iroh. Because each node’s machined API
runs independently of apid and Postgres, you can inspect logs, check health, or recover a node
even when the database is down.
- Build images: create Secure Boot keys, installers, and upgrade releases.
- The config repo: structure
anastro.tomland node files. - Install nodes: go from maintenance mode to a running cluster.