Editions and Enterprise
High availability
Community runs one instance of each service. Enterprise runs several, so that losing a node, a gateway or a control plane does not stop access.
Enterprise Standard and above. Compare editions
What changes with Enterprise#
A Community installation runs one control plane, one SSH gateway and one database gateway. Each holds a lease while it serves, and a second instance waits for it, then fails. The Enterprise images skip the lease and run replicas:
| Edition | Mode |
|---|---|
| Enterprise Standard | active/passive: a standby takes over when the active node is lost |
| Enterprise Ultimate | active/active: several replicas serve at once behind a load balancer, gateways in clusters |
What must be highly available around it#
BastionOS's replicas are only as available as what they share. Run each in its own highly available setup:
- PostgreSQL, with failover (Patroni, a managed service, an operator);
- OpenBao, as a Raft cluster with auto-unseal;
- Valkey or Redis, with Sentinel or a cluster;
- NATS JetStream, three nodes;
- an S3 object store that tolerates the loss of a node.
The Helm chart is the usual way: it points at those services and spreads the replicas with anti-affinity and disruption budgets.
What happens when something fails#
- A gateway is lost: the sessions it held end; users reconnect and land on another gateway. An open connection that no gateway has reported for 16 minutes is recorded as lost.
- A control plane replica is lost: the others answer; the console and new connections continue.
- The control plane cannot be reached at all: open sessions continue; new ones are refused. After 15 minutes without an answer (a setting, which can be turned off), gateways end their sessions, since a termination asked for meanwhile could not reach them.
- PostgreSQL is lost: new connections are refused, fail closed.
Live views across replicas#
With several SSH gateways, a live view or a shared session reaches the gateway that holds the connection through a link between replicas, so a watcher can open it from any replica.
When the license ends#
High availability goes on with the primary node alone, without failover. Nothing is cut.
Drills#
Failure drills, scripted, lose each component in turn while sessions are open and measure the recovery. Operations & HA (Ultimate) records them. Talk to us to design an active/active deployment: contact.