GitLab Orbit on GitLab Self-Managed
- Tier: Premium, Ultimate
- Offering: GitLab Self-Managed
- Status: Beta
GitLab Orbit on GitLab Self-Managed is in beta. This feature is available for testing, but not ready for production use.
On GitLab.com, GitLab Orbit runs on GitLab infrastructure. On GitLab Self-Managed, you run GitLab Orbit next to your instance.
A GitLab Orbit deployment has two parts:
- A data pipeline that copies the GitLab database into ClickHouse.
- GitLab Orbit, which turns that copy into a queryable graph.
The data pipeline does not depend on GitLab Orbit, so you can verify the pipeline before you install GitLab Orbit.
GitLab Orbit is distributed only as a Helm chart for Kubernetes. The Linux package does not include it. Install the chart on the cluster that runs GitLab, or on a separate cluster next to your instance.
Because GitLab Orbit on GitLab Self-Managed is in beta, contact your account team before you plan a deployment to confirm current limitations.
Architecture
flowchart LR
accTitle: GitLab Orbit on GitLab Self-Managed
accDescr: GitLab writes to PostgreSQL, Siphon reads the PostgreSQL write-ahead log and replicates rows through NATS JetStream into the ClickHouse data lake, the GitLab Orbit dispatcher watches the same NATS stream and creates the graph schema in ClickHouse, the GitLab Orbit indexer takes indexing tasks from NATS and builds the property graph from the data lake and from source code fetched over the GitLab internal API, and GitLab queries the GitLab Orbit webserver over gRPC.
subgraph GitLab["GitLab instance"]
PG[(PostgreSQL)]
Rails[GitLab Rails]
end
subgraph K8s["Kubernetes cluster"]
Siphon[Siphon]
NATS[NATS JetStream]
Dispatch[GitLab Orbit dispatcher]
Indexer[GitLab Orbit indexer]
Web[GitLab Orbit webserver]
end
CH[(ClickHouse)]
PG -- logical replication --> Siphon
Siphon <--> NATS
Siphon -- writes data lake --> CH
NATS -- change events --> Dispatch
Dispatch -- indexing tasks --> NATS
Dispatch -- creates schema --> CH
NATS -- indexing tasks --> Indexer
CH -- reads data lake --> Indexer
Indexer -- internal API --> Rails
Indexer -- writes graph --> CH
CH -- reads graph --> Web
Web -- internal API --> Rails
Rails -- gRPC --> Web
| Component | Function |
|---|---|
| Siphon | Copies rows from PostgreSQL into the ClickHouse data lake, through NATS. |
| Dispatcher | Watches the same NATS stream, owns the graph schema, and publishes indexing tasks back to NATS. |
| Indexer | Takes indexing tasks from NATS, reads the data lake, fetches source code over the GitLab internal API, and writes the property graph. |
| Webserver | Answers queries from the graph, and fetches file content over the internal API when a query needs it. |
GitLab reaches the webserver over gRPC.
In this section
| Page | Description |
|---|---|
| Get started | Prerequisites, installation order, and shared configuration values |
| Set up data replication | PostgreSQL logical replication and Siphon |
| Set up GitLab Orbit | The ClickHouse database and identities, the GitLab connection, the GitLab Orbit chart, and group indexing |
Known limitations
GitLab Orbit does not run on a GitLab Geo secondary site. No FIPS-compliant builds are available.
Redundancy and recovery for GitLab Orbit are not documented. GitLab Orbit holds no data of its own, so if you lose the graph database, you can rebuild it by indexing again.
For the support that applies during beta, see beta and the Statement of Support.