Skip to content

HA Overview

HA hosted is the durable, always-on hosted availability tier. Its control plane — the Hub — is replicated across multiple instances behind a load balancer, backed by an external managed database (Cloud SQL Postgres) and object storage (GCS), with stateless proxy/hosted brokers. It survives node loss and redeploys without downtime, at the cost of running and paying for that external infrastructure.

Use this page to understand what the tier gives you and whether it is the right target before you follow the admin guides in this section.

  • High availability. Multiple Hub replicas behind a load balancer mean the control plane stays up through restarts, redeploys, and node loss.
  • Durable, external state. State lives in an external Postgres database and object storage, not on a single volume — the store is independently managed and backed up.
  • Horizontal scale. Stateless proxy and hosted brokers can be replicated alongside Hub instances without broker-specific scheduling.
  • Single- or multi-user. Like every hosted tier, tenancy is orthogonal: an HA Hub can serve one user or many, with OAuth, Groups, and access policies for multi-user deployments.

The postgres database driver (SCION_SERVER_DATABASE_DRIVER=postgres) is what enables replication — it provides durable, cross-instance compare-and-set for lifecycle-hook deduplication, versus SQLite’s single-instance in-memory approach.

HA hosted is more to run and pay for than Single-node. You provision and operate:

  • An external managed database (Cloud SQL Postgres).
  • Object storage (GCS) for durable artifacts.
  • Load-balanced Hub replicas (e.g. Cloud Run with min-instances ≥ 2).
  • Stateless proxy/hosted brokers, and typically identity providers, IAP, RBAC, and observability.

Choose HA hosted when: “A durable, always-on platform for a team.”

  • The Hub must stay available through restarts, redeploys, and node loss.
  • State durability must not depend on a single volume.
  • You are running a shared, multi-user platform where downtime is not acceptable.

If occasional restart downtime and single-volume durability are acceptable and you want the lowest cost, use Single-node hosted instead.

HA hostedSingle-node hosted
Control planeHub replicated behind a load balancerOne Hub instance on one node
Database driverExternal postgres (Cloud SQL)Embedded sqlite
State & durabilityExternal DB + object storage; highly availableSingle-volume; non-HA
Downtime on restart/redeployNoYes
Typical realizationCloud Run (min-instances ≥ 2) + Cloud SQLOne VM or one Cloud Run instance + SQLite
Cost & complexityHigherLow
TenancySingle- or multi-userSingle- or multi-user

The two tiers are distinguished purely by the availability tier dimension — see Choosing a Mode for the full picture.

The HA admin surface is the fullest of any mode: