Recommended Topologies
On this page 5 sections
QSCS clusters scale gracefully from a single node to a globally distributed mesh. The shape you pick depends on three things: where your origin server lives, where your users are, and how much failure tolerance you need. Below are four shapes that cover the common cases.
Linux hosts and Kubernetes containers use the same master/thin model. Start without registration and add nodes as needed; node, domain and origin quantities are unlimited. On Kubernetes, use a persistent volume for each node and scheduling rules for placement. See Kubernetes deployment or Linux installation.
1. Single node
One QSCS process sits in front of one origin web server, on the same host or one network hop away. This is the simplest possible deployment, and a perfectly valid production setup if your site lives on one machine.
Use when: small site, single host, want HEADLESS protection during transient origin failures. Benefit profile: resilience.
2. Master plus thin clients
One QSCS node hosts the origin (master). One or more additional QSCS nodes sit in different locations and proxy through the master.
Use when: users are spread across regions but the origin only exists in one place. Benefit profile: resilience, lower latency for region-local cache hits and centrally managed membership.
3. Hot-standby pair
A two-node cluster where one node is master and the other is the elected Fallback, co-located with, or attached to, a separate replica of your origin. Both nodes retain their eligible cached content. Once you elect the Fallback in the Control Panel, failover is automatic: after sustained master failure and the control plane's safety checks, the Fallback is promoted and the other nodes adopt the new master.
Use when: you have a working origin backend available from both candidate nodes and want automatic failover after electing a Fallback. Benefit profile: resilience (warm cache covers eligible requests during failure detection and recovery) + simpler recovery operations.
The Fallback must be able to use the configured backend addresses after promotion. A loopback address such as 127.0.0.1:80 must reach a working application on that node too. QSCS cache replication does not replicate your application database or files. Failover waits for sustained failure, expiry of the old master's lease, and control-plane approval; an origin-only outage does not by itself promote the Fallback.
4. Geo-distributed edge
One master, three or more thin clients spread across continents. All thin clients have the master's cache replicated; users hit the nearest edge. You can elect one suitable member as Fallback for automatic master failover, provided it can reach a working origin backend after promotion.
Use when: you serve a global audience and the round-trip from the far side of the world to your origin matters. Benefit profile: local cache hits can avoid that round-trip; actual latency depends on placement, routing and the application.
Choosing between them
| Need | Pick |
|---|---|
| Just want outage protection on one host | Single node |
| Origin in one region, users in many | Master + thin clients |
| Want automatic failover with an elected Fallback | Hot-standby pair |
| Truly global audience | Geo-distributed edge |