Bytebase supports high availability (HA) for self-hosted deployments. In HA mode, you run multiple Bytebase replicas behind the same external endpoint. The replicas coordinate through the shared metadata PostgreSQL database, so scheduled work such as rollout tasks, plan checks, schema sync, and cancellation handling remains safe across replicas.Documentation Index
Fetch the complete documentation index at: https://docs.bytebase.com/llms.txt
Use this file to discover all available pages before exploring further.
Requirements
- Use an external PostgreSQL database for Bytebase metadata
- Start every replica with the
--haflag - Put all replicas behind the same load balancer / ingress / service
- Configure the same External URL for the deployment
- Use a license with HA enabled
How It Works
- Each replica sends heartbeats to the metadata PostgreSQL database
- Distributed coordination uses PostgreSQL advisory locks and row-level claiming
- Long-running tasks are owned by a replica; stale work is detected if that replica stops heartbeating
- Cancel signals are propagated across replicas through PostgreSQL
NOTIFY/LISTEN
Kubernetes Example
The example below shows the minimum HA-specific changes compared with a single-replica deployment:Operational Notes
- HA is mainly for Kubernetes or other orchestrated environments. A single
docker rundeployment is still a single-node setup. - Replicas do not require embedded PostgreSQL or shared local metadata storage.
- If multiple replicas are running without HA enabled in the license, Bytebase disables backend runners to avoid unsafe execution.

