Joining a Cluster
On this page 9 sections
Nodes join a shared substrate through authenticated enrollment or the existing registered-domain licensing flow. A free deployment does not require account registration: one node creates an anonymous account handle and substrate, and a second node can join it securely. Each keeps its own UUID, credentials and state directory.
Choose the join method
- New Kubernetes deployment: automatic enrollment uses a shared deployment secret and one named initializer. Start one or two replicas without manual invitations.
- Existing enrolled substrate: use an administrator-issued invitation. This works before registration and for additional nodes after claiming.
- Directly licensed Linux node: use the registered-domain subscription below. This established method remains available.
An account handle, substrate ID, node UUID or matching origin URL never grants membership by itself.
Join with an invitation
Prepare the joining node before its first start. Give it a fresh state directory or volume and an individually reachable peer address. Do not start it as an independent anonymous deployment and then copy another node's credentials into it.
On a running administrator of the target substrate, save an invitation privately:
umask 077
sudo qscs enrollment invite > invitation.json
In a container shell use qscs enrollment invite without sudo. Root privileges do not grant administrator membership. Each ordinary invitation expires after ten minutes and admits one node. Complete the join before generating the next invitation, because a new ordinary invitation replaces previous unused ones for that substrate.
Linux service
Install qscs-bootstrap on the new host, then set these keys in its existing [QSCS Daemon] section before starting the service:
AdvertisedPeer = node2.example.com
EnrollmentInviteFile = /etc/qscs/invitation.json
Transfer the invitation privately to that path, owned by the daemon's service user with mode 0600. On the standard package installation:
sudo install -o qscs -g qscs -m 0600 invitation.json /etc/qscs/invitation.json
sudo systemctl start qscs
sudo qscs status
After a successful join, remove the transferred invitation and its temporary copies. Keep the node's enrollment state and configuration for subsequent restarts.
Kubernetes or another container runtime
Mount the returned invitation JSON read-only as a Secret. Use a separate workload definition and state volume for the new member with:
| Variable | Value |
|---|---|
QSCS_BOOTSTRAP_MODE | join |
QSCS_INVITE_SOURCE | Absolute path to the mounted invitation JSON |
QSCS_ADVERTISED_PEER | This node's unique, reachable peer hostname |
Omit the shared deployment secret, initializer variables and environment-based origin provisioning from this new member. The invitation selects the substrate; the enrollment service supplies its configuration. No additional substrate-name parameter or separate claim is required. Keep separate controller selectors if several StatefulSets feed the same application Service. See Deploy on Kubernetes for storage, networking and permissions.
Check that both nodes report the same account handle and substrate ID and different UUIDs. Confirm peer connectivity and replication separately from basic listener readiness. If an invitation expires, replace it and restart only the joining node, preserving its state. An ordinary join does not automatically grant administrator or fallback roles.
Claim an existing deployment
- Create or sign in to a verified Spook Systems account.
- Read the anonymous account handle with
sudo qscs statuson Linux, orqscs statusin the container. On the unclaimed administrator, confirm Registration: unclaimed and Can approve claims: yes. - Select Claim existing deployment in the control panel, enter the handle and choose Discover.
- Check the destination username and account ID. Within ten minutes, run the displayed approval command on the unclaimed deployment's administrator node. In a container shell, remove only a leading
sudoif present; retain the exact claim ID and target account ID. - Choose Check approval, review the discovered nodes, select each one and choose Claim deployment. Refresh discovery if membership changed.
The final confirmation claims the entire substrate and its member nodes together. It preserves the account handle, substrate identity, node UUIDs, configuration and retained telemetry. Operational reports collected before registration have a 30-day retention period and become available in SpookVis after claiming. Allow reporting and account-scope synchronization to finish before judging the first health view.
Claiming closes new-node admission through the old shared deployment secret and invalidates unused pre-claim invitations. Existing nodes keep their credentials and can restart with their original volumes and bootstrap inputs. Use fresh invitations for subsequent additions; increasing an old automatic workload's replica count does not reopen anonymous enrollment.
Licensing and capacity
Node, domain and origin quantities are unlimited, including before registration. Claiming preserves membership and allows portal management. Free includes monitoring, alerts and cluster management with 30 days of telemetry history. Enterprise is the single paid tier at £300 per month, adding unlimited telemetry history while subscribed and early access to new features including API Boost. Adding nodes, domains and origins does not require a quantity upgrade.
An upgrade does not require a new substrate or fresh identities. Stopping a node does not release its license. Keep its original volume to preserve its UUID; stop and revoke a retired node deliberately rather than deleting its state to try to create a replacement slot.
Direct licensing: pre-flight checklist
This section is for the established registered-account workflow. It is not a prerequisite for registration-free enrollment.
- The node has been licensed:
sudo qscs license <username>. - You know the cluster's tag (visible in the control panel, for example
europe-edge). - If you are creating a brand-new cluster, you have created it in the control panel first.
- The cluster has at least one origin defined.
Subscribe a directly licensed node
sudo qscs subscribe domain <cluster-tag>
Expected output (abridged):
[QSCS] Domain '<cluster-tag>' subscribed successfully!
[QSCS] Node <uuid> attached to cluster
[Config] Updated /etc/qscs/qscs.conf — domain='<cluster-tag>', N peer(s)
[QSCS] Peers:
[QSCS] <peer-host>:4443 (<tag>) [Master]
[QSCS] ...
[QSCS] Origins: M written to config
[QSCS] Start the daemon: sudo systemctl restart qscs
Restart the daemon to pick up the new file:
sudo systemctl restart qscs
When to re-subscribe
For directly licensed nodes, routine Control Panel changes are applied automatically. Running nodes poll for a newer configuration snapshot every 20 seconds, write the complete configuration, and restart once to apply it. This includes:
- A node is added or removed from the cluster.
- The master designation changes or a fallback is elected.
- An origin is added, removed, or has its backend address changed.
Enrolled nodes refresh their signed configuration through the enrollment service; they do not need this manual subscription step after a claim. For directly licensed nodes, use qscs subscribe for the initial join, when moving a node to another domain, repairing local configuration, or deliberately requesting a complete snapshot immediately. Restart the daemon after this manual command. The command is idempotent: running it when nothing has changed rewrites the same configuration.
Recommended order for cluster-wide changes
- Make the change in the control panel.
- Allow the running nodes to poll for the new configuration revision and restart automatically.
- Verify the applied revision and role with
journalctl -u qscs -n 50 --no-pageron each node. - If a node cannot converge, check its control-plane connectivity and logs before using a manual subscription and restart to reconcile it.
To enable automatic fallback, open the domain's Manage → Master & Fallback controls in Infrastructure, select Fallback, choose a different member from the master, and save. No per-node manual setup is needed for that election. The fallback must have a usable origin backend after promotion. Failure detection, lease expiry, control-plane approval and configuration convergence still take time; see Choosing the Master.
Leaving a cluster
To detach a registered node, remove its domain assignment in the control panel. The node remains registered to the account and can be assigned elsewhere. Deleting a domain releases its assignments; it is not the same as revoking each node. To retire a node, stop it and revoke its license in Infrastructure. Revocation invalidates its credentials, so restoring an old volume does not undo it.