DocumentationBuild. Deploy. Operate.
DocsDeployment

Choosing the Master

On this page 8 sections

The Control Panel selects the Master and an optional Fallback for each domain. Electing a Fallback enables automatic master failover once the nodes have applied the configuration. You do not need to promote it manually when the master fails.

The default master

The first node subscribed to a new cluster becomes its initial master unless a valid master has already been selected. For production, explicitly choose a node that can reach the configured origin backends. The Fallback must also be able to reach those backends after promotion. See Master & Thin Clients.

Setting the master from the control panel

  1. Open Infrastructure and choose Manage on the domain.
  2. Open Master & Fallback.
  3. Set Role to change to Master, choose an existing member, and select Save changes.
  4. Check the domain's Master entry and the member's role.

Electing a Fallback

  1. In the same Master & Fallback dialog, set Role to change to Fallback.
  2. Choose a different member from the Master, with a working path to the origin backends.
  3. Select Save changes and verify the domain's Fallback entry.

The selected node receives SecondaryMaster=true through its configuration snapshot. It remains a replica until promotion is approved. Choosing None (Fallback only) clears the designation and disables automatic promotion for that domain.

Use a different backend on the Fallback

If the fallback must contact a different application server, configure an optional backend override for each origin. For example, the normal Master may use 127.0.0.1:80 while its Fallback must use https://secondary.example.com:8443.

  1. Select a Fallback under Master & Fallback and save that role first.
  2. In the domain’s Origins list, open Edit settings for the required origin.
  3. Beside the normal backend settings, find Fallback backend, labelled with the selected node’s short UUID. These fields appear only while a Fallback is selected.
  4. Enter Fallback backend address as IP:port, http://hostname or https://hostname, optionally including a port. Do not include a path or query string. HTTPS checks the certificate against this backend hostname.
  5. If that application requires a different HTTP Host header, enter Fallback Upstream Host. With a backend override, leaving this blank sends the public origin hostname.
  6. Choose Save settings. Normal and fallback settings are validated and saved together. Allow the new configuration revision to reach the nodes before testing failover.

Leave both fallback fields blank to inherit the origin’s normal backend and Upstream Host, or clear both and save to remove an existing override. A 127.0.0.1 address means the application must exist locally on whichever node becomes Master.

The override belongs to that node’s membership and origin, not to the Fallback role itself. It remains in effect when that node becomes Master. While the node is still a replica, it continues forwarding through the current Master; the override does not turn it into an independent primary. Selecting another Fallback does not transfer the old node’s backend to it: open the origin settings and configure the new candidate separately. Removing the node from the domain removes its overrides.

This changes the application backend after promotion; it does not change the node’s peer address, GeoDNS destination or load-balancer membership, replicate the backend application/database, or trigger promotion for an origin-only outage. Confirm the destination is reachable from the Fallback and that the application data is ready to serve there.

Applying the change to the cluster

Running members poll for configuration changes approximately every 20 seconds. They apply the new snapshot and restart automatically when required. Routine role changes do not require a manual subscribe or restart on every node. Check the applied role and configuration in the journal:

sudo journalctl -u qscs -n 80 --no-pager

A deliberate qscs subscribe domain <cluster-tag> followed by a restart remains useful for initial provisioning or recovery if a node is not converging. See Joining a Cluster.

Automatic failover

After sustained master failure, the elected Fallback automatically requests promotion. The control plane checks that it is still the designated candidate, that the topology has not changed, that the old master's lease has expired, and that the control plane also cannot reach the old master's QSCS port. Promotion proceeds only after these checks pass.

The platform publishes the new master and configuration revision. Members receive the change automatically and direct upstream requests to the new master. Lease fencing prevents a stale master from continuing as primary. Failover includes failure detection and configuration convergence; it is not an instantaneous switch.

An origin-only outage does not by itself trigger master promotion. HEADLESS can serve eligible cached content while an upstream is unavailable, including during failover. If there is no elected Fallback or the safety checks cannot complete, automatic promotion does not occur.

What happens to the old master?

After automatic failover, the previous master becomes the designated Fallback. When it returns, it must apply the current topology and operate as a replica; it does not automatically reclaim the Master role simply because it is online again. After a planned Master change in the panel, check both role entries and elect the intended Fallback if needed.

Cannot reach the new master

Every member must be able to reach the new master's configured peer endpoint (default TCP 4443). Check the node address, port and firewall rules. Also verify that the new master can reach each origin backend. If the backend uses 127.0.0.1, the corresponding application must be running on that node; replicated cache does not copy the application or its database.

Prepare the Fallback before an outage Elect a node with a working backend, allow the configuration to converge, and verify its health and role. Automatic failover then handles master loss without an operator-driven promotion.
Need a hand with your deployment?Contact support ↗Back to top ↑