DocumentationBuild. Deploy. Operate.
DocsOperation

Running & Monitoring

On this page 8 sections

QSCS reports node health, origin health and operational telemetry from first enrollment, including before registration. Allow outbound HTTPS to spooksystems.org for enrollment and management and monitoring.spooksystems.org for monitoring. Both service addresses are supplied by default.

Use qscs status and local logs while operating without an account. To see your deployment in the dashboard and SpookVis, claim it with a registered account. Unclaimed telemetry is retained for 30 days; claiming preserves retained data and node identities. Allow the next reports and account synchronization to complete before expecting every health card to populate.

In-dashboard alerts

The control panel raises alerts automatically on the events you care about most:

  • Node down. If a node stops heartbeating, the cluster page flags it red and surfaces an alert badge on the account overview within seconds.
  • Origin degraded. When a node enters HEADLESS mode for an origin, the panel shows the origin in the “degraded” state with the headless reason and the age of the cache it is serving.
  • Master moved / role change. Promotions and demotions inside a cluster are recorded and shown on the cluster timeline.
  • Enrollment / licence issues. Expiring licences, invalid or revoked node credentials, and failed control-plane validations all surface as account-level notices.

SpookVis

SpookVis is the origin-scoped analytics tab in the control panel. It pulls from /api/vis/stats, the same aggregate stream every node reports into, and renders six widgets over the data set you select with the filter bar.

Filters

Three filter rows sit above the widgets and every widget reacts to them in real time:

  • Domain, one tab per cluster on your account.
  • Origin, one tab per origin group within the selected domain. www. variants of a hostname are merged into the same group so the numbers stay sane. The row hides itself if the domain has only one group.
  • Period, 1D, 1W, 1M, or ALL.

The six widgets

Geo Heatmap
A world map showing where your traffic is actually coming from, with your own QSCS nodes pinned on top so you can see at a glance how well your footprint matches your audience.
Traffic
Request volume over time for the selected origin, with the top source countries broken out alongside the total so you can spot regional shifts and spikes.
Active Sessions
A live feed of who is on the site right now, where they are, how recently they hit you, and the path they have taken through the origin.
Substrate Traffic
A side-by-side view of substrate (in-browser WASM) traffic versus plain external traffic, so you can see how much of your audience is benefiting from substrate caching and what they are requesting most recently.
QSCS Mesh Stats
The headline efficiency view: what proportion of requests the mesh answered without going to origin, and roughly how much egress that saved you. Single-node origins are recognised and shown as such rather than charted as empty.
Per-Node Traffic
How the work was actually distributed across your nodes over the selected period, split by substrate and origin traffic so you can see where the cluster is pulling its weight.
Monitoring is reported outbound. Keep HTTPS access to both default service hosts. You do not need to expose a metrics endpoint publicly to use SpookVis. If the monitoring host is unavailable, reporting retries in the background without blocking application serving; management and master-lease connectivity have separate requirements.

The rest of this page covers the lower-level on-host commands and metrics endpoint, useful when you want to confirm something on a specific node or wire QSCS into your own monitoring stack.

Service control

These commands apply to the native Linux / APT installation. In addition to service status, sudo qscs status shows the daemon's identity, enrollment and configuration information.

GoalCommand
Startsudo systemctl start qscs
Stopsudo systemctl stop qscs
Restart (after config change)sudo systemctl restart qscs
Enable on bootsudo systemctl enable qscs
Show current statussudo systemctl status qscs

Logs

QSCS logs to systemd's journal. Useful incantations:

# tail the live log
sudo journalctl -u qscs -f

# last 100 lines, no pager
sudo journalctl -u qscs -n 100 --no-pager

# only lines since the last restart
sudo journalctl -u qscs -b -u qscs --no-pager

# only warnings and errors
sudo journalctl -u qscs -p warning

Kubernetes operations

The container runs QSCS in the foreground without systemd. Kubernetes manages its lifecycle and captures standard output. For the example namespace and StatefulSet in the Kubernetes guide:

kubectl -n qscs get pods
kubectl -n qscs logs -f qscs-0
kubectl -n qscs exec qscs-0 -- qscs status

Use the same commands for the other replica. Keep each node's volume mounted at /var/lib/qscs across updates and restarts. A pod being ready proves that its listener is reachable, not that all cached content has finished replicating.

Health from the outside

Send a normal HTTP request through QSCS:

curl -i -H "Host: <your-origin>" http://<node-ip>:8080/

Look for one of these X-QSCS-Mode values: full, incremental, nochange, headless. Any of them means the daemon is running and replying.

Metrics

QSCS exposes a Prometheus-style metrics endpoint at http://127.0.0.1:8080/qscs/metrics. The endpoint is loopback-only by design, see Metrics & Health for details and the metric list.

What to watch in production

  • The journal during deploys. Confirm "DomainRegistry: N peers, role=…" prints the role you expected on each node.
  • qscs_origin_degraded. Should normally be 0. A sustained 1 means an upstream is failing.
  • qscs_origin_headless_requests_total. Should normally tick over slowly. A burst means QSCS is masking an outage.
  • State storage. Monitor /opt/qscs on native installations and the /var/lib/qscs volume in the container. Include saved history and pending deliveries as well as the response cache.
Quiet logs = healthy node A normal QSCS at LogLevel = info prints only on subscribe, restart, role detection, and origin state transitions. If the journal is silent for hours, the node is doing what it should.
Need a hand with your deployment?Contact support ↗Back to top ↑