Skip to content

PointSav Documentation

The engineering library for the PointSav platform — operating systems and services for regulated businesses that own their data, their AI, and their record-keeping outright. Where the monorepo holds the code, this wiki holds the reasoning: architecture, services, security, and the governance commitments that bind future development.

Add a node to a running fleet

← All revisions

eb708994 · PointSav Digital Systems ·

fix(how-to): Multi-entity scale + Integration & data groups rewritten against real source (Groups 5-6, Phase 1 complete)

View the full record as of this revision →

@@ -1,95 +1,74 @@
---
schema: foundry-doc-v1
title: "How to add a node to a running fleet"
title: "Add a node to a running fleet"
slug: add-a-fleet-node
short_description: "Adds a node to a running PPN fleet without restarting existing nodes, covering controller health checks, choosing a non-conflicting node ID, and starting its heartbeat agent."
short_description: "Adds a second node to an already-running PPN fleet using service-vm-host's real env-var configuration — the same mechanism as the first node, since nothing about enrollment changes once a fleet exists."
category: how-to
content_type: how-to
type: how-to
quality: complete
status: active
last_edited: 2026-06-14
audience: "Engineers (hands on keyboard); fleet operators"
last_edited: 2026-08-06
editor: pointsav-engineering
paired_with: add-a-fleet-node.es.md
research_trail:
  sources: [pointsav-monorepo service-vm-host and service-vm-fleet, already fully source-verified while rewriting enroll-ppn-node.md earlier this session]
  verification_method: "reused the already-confirmed real service-vm-host/service-vm-fleet mechanism from this session's Machine authorization batch rather than re-deriving it; this guide's own prior Correction note had already flagged the same fictional CLI flags and routes found on enroll-ppn-node.md, and this guide contradicted that already-corrected sibling until now"
---

**Correction (2026-08-02, verified against canonical `origin/main`):** the CLI/API commands in the steps below don't exist. `service-vm-host --controller <url> --tenant <id> --node-id <id>` is fictional — the real binary takes zero CLI args, configured entirely via env vars (`VM_FLEET_ENDPOINT`, `VM_NODE_ID`, `VM_WG_IP` — required and undocumented here — `VM_HEARTBEAT_INTERVAL_S`, default 10s not 30s as stated elsewhere in this guide). `curl .../health` and `/v1/placement` don't exist — the real `service-vm-fleet` route table is `/v1/nodes/heartbeat`, `/v1/fleet`, `/v1/nodes`, `/v1/nodes/:id`, `/v1/vms`, `/v1/vms/:id`. The `service-fs read --filter ... --limit N` CLI is also fictional — `service-fs` is a pure HTTP daemon with no CLI at all. Same systemic finding as [[enroll-ppn-node]]. **Flagged, not resolved.**

A running fleet has one or more PPN nodes already enrolled and actively sending heartbeats. Adding a node to a running fleet means enrolling a new machine without interrupting the existing nodes' operation. This guide covers the steps specific to adding to an active fleet, as opposed to enrolling the very first node.

For the initial node enrollment procedure, see [[enroll-ppn-node]]. For the fleet controller service, see [[service-vm-fleet]].

## Prerequisites

- At least one node already enrolled and the fleet controller running (see [[enroll-ppn-node]])
- A second machine prepared with `service-vm-host` installed
- A new unique `NODE_ID` that does not conflict with any existing node in the tenant namespace
- At least one node already enrolled and heartbeating (see [[enroll-ppn-node]])
- A second machine with `service-vm-host` deployed
- A `VM_NODE_ID` that doesn't collide with any node already in the fleet

## Step 1: Verify the fleet controller's current state
## Purpose

Before adding a node, confirm the existing fleet is healthy:
Enroll a second (or third, or Nth) node into a fleet that's already running — a few minutes, and it's exactly the same procedure as enrolling the first node. There is no separate "add to a running fleet" mechanism; the fleet controller accepts new nodes at any time without disturbing existing ones.

```
curl -s "http://<fleet-controller-host>:9203/v1/vms?tenant_id=<your-tenant-id>"
```
## Procedure

All existing nodes should show a recent `last_heartbeat` timestamp (within the last 60 seconds under default settings). A node showing a stale heartbeat has a connectivity problem — resolve it before adding a new node to avoid confusing the advisory placement algorithm.
1. Check the existing fleet's current node IDs so your new one doesn't collide:

## Step 2: Choose a node ID that does not conflict
   ```bash
   curl -s http://<fleet-controller-host>:9203/v1/nodes
   ```

The fleet controller rejects duplicate `NODE_ID` values within a tenant namespace. List the current IDs:
   The fleet controller rejects nothing at enrollment time based on naming — but reusing an ID would just mean the new node's heartbeats overwrite the existing node's record, not a clean rejection. Pick a genuinely distinct `VM_NODE_ID`.

```
curl -s "http://<fleet-controller-host>:9203/v1/vms?tenant_id=<your-tenant-id>" \
  | jq '.[].node_id'
```
2. On the new machine, set the same three required environment variables as any node enrollment:

Pick an ID for the new node that follows the naming pattern of existing nodes (e.g., if existing nodes are `compute-west-01` and `compute-west-02`, name the new one `compute-west-03`).
   ```bash
   VM_FLEET_ENDPOINT=http://<fleet-controller-host>:9203
   VM_NODE_ID=<new-unique-node-id>
   VM_WG_IP=<new-node-wireguard-ip>
   ```

## Step 3: Configure and start the heartbeat agent on the new machine
3. Start `service-vm-host` under systemd, as with any node. It begins heartbeating immediately — no registration call, and no restart of the controller or any existing node is required.

On the new machine, set the configuration and start `service-vm-host`:
## Expected outcome

```
FLEET_CONTROLLER_URL=http://<fleet-controller-host>:9203
TENANT_ID=<your-tenant-id>
NODE_ID=<new-unique-id>
The new node appears in the fleet controller's listing alongside every existing node, each heartbeating independently, within one heartbeat interval (10 seconds by default).

service-vm-host --controller $FLEET_CONTROLLER_URL --tenant $TENANT_ID --node-id $NODE_ID
```
## Verification

The agent registers on its first heartbeat. The fleet controller updates its advisory placement data automatically — no restart of the controller or other nodes is required.

## Step 4: Verify the new node appears in the fleet

Query the fleet again and confirm the new node appears alongside the existing ones:

```
curl -s "http://<fleet-controller-host>:9203/v1/vms?tenant_id=<your-tenant-id>"
```bash
curl -s http://<fleet-controller-host>:9203/v1/nodes
```

The response should now include the new node with a `last_heartbeat` from within the last 60 seconds.
Confirm your new `VM_NODE_ID` appears with a recent `last_heartbeat`, and confirm every previously-existing node is still present and heartbeating too — adding a node doesn't touch any other node's state.

## Step 5: Confirm load distribution

The fleet controller's advisory placement algorithm balances new tenant VM placements across healthy nodes. After adding a node, submit a new VM placement request and verify the controller considers the new node as a candidate:

```
curl -s "http://<fleet-controller-host>:9203/v1/placement?tenant_id=<your-tenant-id>"
```
## Rollback

The response suggests a target node based on current capacity. If the new node does not appear as a candidate, check that its reported capacity fields are populated (memory, CPU) in the heartbeat data.
Stop the new node's `service-vm-host` process. It drops out of the fleet listing on its own after roughly 30 seconds without a heartbeat — no separate removal step, and no effect on the rest of the fleet.

## Key takeaways
## Next steps

- The fleet controller accepts new nodes without requiring existing nodes to restart
- Duplicate `NODE_ID` values within a tenant namespace are rejected — verify current IDs before choosing one
- Advisory placement updates automatically when a new node's first heartbeat arrives
- A stale heartbeat from existing nodes should be resolved before adding new nodes to avoid placement skew
- [[enroll-ppn-node]] — the same procedure in full, including every environment variable and its default
- [[configure-tenant-namespace]] — set up quotas for tenants placing VMs on this expanded fleet

## See also

- [[enroll-ppn-node]] — enrolling the first node in a fleet from scratch
- [[service-vm-fleet]] — the fleet controller service that manages node inventory and advisory placement
- [[configure-tenant-namespace]] — the namespace that contains the fleet's nodes
- [[ppn-small-business-compute]] — the fleet architecture and the role of each node tier
- [[verify-worm-ledger]] — confirming that node enrollment events are permanently recorded
- [[service-vm-fleet]] — the fleet controller's real route table and state model
- [[ppn-small-business-compute]] — the fleet architecture this node joins
Important Information

Corporate structure. PointSav Digital Systems ("PointSav") is currently a trade name of Woodfine Capital Projects Inc. ("Woodfine"), planned to become a wholly-owned Woodfine subsidiary upon incorporation. PointSav does not itself offer, sell, or solicit any security. Any securities offering associated with Woodfine's real-property direct-hold solutions is made exclusively by Woodfine, and only by means of the applicable Private Placement Memorandum.

No investment advice. This wiki's content is provided for engineering, operational, research, and development purposes. Nothing on this wiki constitutes investment advice or a solicitation to invest in any Woodfine partnership or direct-hold solution.

Intellectual property. The PointSav name, trade name, wordmark, and marks, together with all current and future PointSav- and Totebox-branded products, services, and offerings — and the software, source code, documentation, design system, and all related materials — are proprietary to Woodfine and its affiliates, except for components identified as open source. No rights are granted except as expressly set out in a written license or agreement. The full trademark notice appears in the footer of every page on this site.

Open source components. Portions of the platform are made available under permissive open-source licenses identified in the accompanying repository. Use of those components is governed by their respective license terms.

No warranty; informational use. Content on this wiki is provided for general informational purposes only and does not constitute a representation, warranty, or commitment with respect to product functionality, availability, pricing, or roadmap. Some articles describe planned or intended features, capabilities, and milestones — language such as "planned," "intended," "targeted," "may," and "expected" marks this forward-looking content, which is subject to change and does not constitute a commitment regarding future performance.

Confidentiality. Where an article describes an operational or deployment detail that is not intended for public disclosure, that article is not published on this wiki. Content here is general-purpose engineering documentation, not customer-specific configuration.

Jurisdiction. Woodfine Capital Projects Inc. is organized in British Columbia, Canada. References to the Sovereign Data Foundation on this wiki describe a planned or intended initiative only, not a current equity holder or active governance body.

Changes to this notice. PointSav may update this notice from time to time; the version posted on this page governs.

Not a filing system. This wiki is not a securities filing system, an electronic disclosure repository, or a substitute for SEDAR+ or any other regulatory filing system. Formal securities filings are made through the applicable regulatory filing system, not through this wiki.

Full disclaimer. This notice supplements, and does not replace, the full Disclaimers article. In the event of any conflict, the full Disclaimers article governs.

Read the full disclaimer →