Skip to content
WasFor
Back to home
Documentation/Admin panel

Nodes & IP pool

A node is a server that runs the WasFor agent and hosts customer workloads. Nodes are registered once, report health continuously and receive sites according to capacity and package rules.

Register a node

  1. Install the agent on the server — see Installation.
  2. In the admin panel open Nodes → Register node.
  3. Copy the join token into the agent configuration.
  4. Verify the node reports healthy before scheduling sites.
FieldMeaning
NameHuman label, e.g. fra-01
RegionUsed for placement and reporting
Public IPAddress used for DNS and certificates
CapacityCPU, memory, disk available to tenants
LabelsFree-form selectors, e.g. ssd, php83

Health and capacity

The agent reports every 30 seconds:

  • CPU, memory, disk and network counters
  • Service status for web, PHP, database and mail
  • Installed PHP versions and extensions
  • Container count and per-container usage
  • Certificate and backup job status

Three missed reports mark the node degraded. Degraded nodes stop receiving new sites; existing sites keep running. A node that misses ten reports is marked offline and triggers an alert.

StateSchedulingAlert
HealthyYesNo
DegradedNoYes
OfflineNoCritical
MaintenanceNoNo

Containers

Each customer runs in an isolated systemd-nspawn container. Containers share the kernel but have their own filesystem, users, services and network namespace.

bash
# Inspect from the node shell
machinectl list
machinectl status acme
journalctl -M acme -n 100 --no-pager

Containers restart automatically after a reboot. Their configuration is reconciled from the control plane, so manual changes inside a container can be overwritten on the next sync.

Maintenance mode

Drain a node before kernel upgrades or hardware work:

  1. Nodes → node → Maintenance.
  2. New scheduling stops immediately.
  3. Running sites continue until you choose to migrate them.
  4. Migrate selected accounts, or accept a short outage.
  5. Exit maintenance and confirm health.

Migration copies files, databases and mail, then flips DNS only if you use panel-managed DNS. Otherwise update DNS at your provider after verification.

IP pool

Addresses are inventoried centrally and assigned to nodes or directly to sites.

StatusMeaning
FreeAvailable for assignment
ReservedHeld for a node or customer
AssignedIn use by a site or service
QuarantinedBlocked after abuse; not reusable until cleared

Add addresses under IP Pool → Add range, then bind them to a node. A site can use the node's primary address or a dedicated address for its own certificate and reputation.

Keep at least one free IPv4 address per node for failover and new sites. Running out of addresses blocks provisioning even when capacity remains.

Storage and backups

Node-level storage is reported per mount point. Backups can target local disk or S3-compatible object storage; remote targets are strongly recommended so a node loss does not take backups with it.

text
Local:  /var/lib/wasfor/backups      fast restore, node-bound
Remote: s3://acme-backups/fra-01     survives node loss

Decommission a node

  1. Drain it and migrate every account.
  2. Verify each migrated site over HTTPS.
  3. Remove the node from DNS or load balancing.
  4. Revoke the agent token.
  5. Delete the node record — the audit log keeps the history.

Never delete a node that still has assigned accounts; the panel blocks it and lists what must move first.

Last updated: 2026-12-01