Disaster recovery

Recover Siphon first, then rebuild the graph.

1. Recover Siphon and the datalake

The Siphon team owns Siphon and the datalake ClickHouse. Contact them first: Slack #g_analytics_platform_insights.

GitLab.com Dedicated
Siphon recovery Siphon runbook, section "Failure Modes" Siphon operations
How a fresh snapshot works Replication and snapshot flow Same

A lost replication slot needs a full Siphon snapshot. On GitLab.com, expect at least one week of incomplete data. Continue when the Siphon team confirms that the snapshot is complete. Until then, stop both indexers, so Orbit does not index incomplete data.

2. Check NATS

If the NATS cluster was lost, ArgoCD recreates it. Orbit pods restart and create the Orbit streams again. Siphon does not: the Siphon team restarts Siphon. A Velero backup of NATS exists, but Siphon streams are in it too. Do not restore it yourself: ask the Siphon team. Check: all NATS pods are Running, and the stream list shows GKG_INDEXER_V<release>.

kubectl --context gke_gl-orbit-prd_us-east1_orbit-prd -n nats get pods
kubectl --context gke_gl-orbit-prd_us-east1_orbit-prd -n nats exec deploy/nats-box -- nats stream ls -n

3. Rebuild the graph

Situation Action
The graph ClickHouse was lost, or you move to a new ClickHouse service Full rebuild
The graph has wrong data for some namespaces Reindex those namespaces

On Dedicated, the Dedicated EOC runs the rebuild.

A rebuild does not bring back gkg.namespace_storage_snapshot. To keep its history, a ClickHouse Cloud admin restores the latest backup to a new service (procedure). Copy only this table back (ClickHouse docs), then delete the restored service:

INSERT INTO gkg.namespace_storage_snapshot
SELECT * FROM remoteSecure('<restored host>:9440', 'gkg', 'namespace_storage_snapshot', '<user>', '<password>');

Check: SELECT count() FROM gkg.namespace_storage_snapshot FINAL gives the same number on both services. A second copy adds no duplicates.

4. Check that Orbit recovered

  • The health check passes.
  • The indexer dashboard shows freshness back to normal.
  • GITLAB_HOST=gitlab.com glab orbit status --full-path <group> reports the projects as indexed.