DocumentationBuild. Deploy. Operate.
DocsDeployment

Joining a Cluster

On this page 5 sections

"Joining a cluster" means telling a freshly activated node which domain it belongs to. The control plane responds with the cluster's peer list and origin definitions, and QSCS rewrites /etc/qscs/qscs.conf accordingly.

Pre-flight checklist

  • 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.

Subscribing

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

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.

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.

  1. Make the change in the control panel.
  2. Allow the running nodes to poll for the new configuration revision and restart automatically.
  3. Verify the applied revision and role with journalctl -u qscs -n 50 --no-pager on each node.
  4. 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 node, remove it from the cluster in the control panel. The remaining members receive the revised peer list automatically. The leaving node may then be subscribed elsewhere, or shut down.

Need a hand with your deployment?Contact support ↗Back to top ↑