DocumentationBuild. Deploy. Operate.
DocsConcepts

Nodes & Domains

On this page 3 sections

A node is one running QSCS process on one host. A domain (also called a cluster) is a named collection of nodes that serve the same set of origins.

This page describes how the two relate and what each one stores.

What a node knows

Each node keeps four small pieces of state on disk:

  • Its identity, a UUID, generated on first start, that uniquely identifies this node across all clusters it ever joins.
  • Its license, proves to the control plane that this node is allowed to participate.
  • Its configuration file, /etc/qscs/qscs.conf. QSCS reads it at startup. Initial subscription writes it; automatic configuration convergence keeps platform-managed fields current.
  • Its cache, recent response bodies, in memory and (optionally) on disk for warm restarts.

A node can belong to one cluster at a time. To move it, simply re-subscribe.

What a domain is

A domain has:

  • A short, human-friendly tag (for example europe-edge).
  • A list of member nodes with their public addresses.
  • A designated master (one of the members).
  • An optional elected fallback, a different member prepared to become master automatically if the current master fails.
  • A list of origins, virtual hostnames mapped to backend addresses.

Membership, roles and origins live in the control plane. Initial subscription pulls this information and writes the local configuration. Running nodes then poll for newer snapshots every 20 seconds. A changed snapshot is applied automatically with a controlled restart; routine Control Panel changes do not require you to re-subscribe every member.

Elect the fallback in Infrastructure → Manage → Master & Fallback: select the Fallback role, choose a member other than the master, and save. After that configuration is applied, the elected node can request automatic promotion after sustained master failure. Promotion requires an expired master lease and control-plane confirmation that the master is unreachable. The fallback must be able to reach the configured origin backend when promoted; an origin outage alone does not trigger master promotion.

Lifecycle

EventWhat changes
Node startsReads qscs.conf, opens cache, binds listening port.
License activatesNode UUID is bound to an account in the control plane.
Domain subscribedConfig is rewritten with new peers and origins; daemon must restart.
Origins added/removedA new configuration revision is published; running nodes apply it automatically.
Master changedNodes receive the new topology automatically; the new master uses the backend addresses and thin clients follow the elected master.
Fallback electedThe selected member receives the fallback role automatically and monitors the master for an eligible failure.
Node removedRemaining members automatically receive the revised peer list.
Why a complete configuration snapshot? Applying a complete revision with a controlled restart keeps membership, roles and origin routes consistent. Initial subscription and deliberate recovery remain available through qscs subscribe; routine changes converge automatically. Allow time for polling and restart before checking the applied role.
Need a hand with your deployment?Contact support ↗Back to top ↑