docs(orbit): add slot checks, disk method and lost-slot recovery

Adds three things to the Orbit track: a publication count and a slot status query in Verify, a "Disk for the replication slot" section with the upstream sizing method, and a "Replication slot lost" section with recovery steps.

A cap on max_slot_wal_keep_size protects the GitLab disk but can drop the slot, and the producer does not recover alone.

flowchart TD
  A["Producer stopped or behind"] --> B{"max_slot_wal_keep_size set?"}
  B -->|"no"| C["pg_wal grows until the disk is full"]
  B -->|"yes"| D["Slot goes reserved, unreserved, lost"]
  D --> E["Producer logs: can no longer access replication slot"]
  E --> F["Drop the slot, restart postgres-producer"]
  F --> G["New slot reserved, publication tables back"]

Tested on GitLab 19.6.0 and orbit chart 7.0.3 with Siphon 0.0.161-beta, chart 2.4.2. Your pin is 0.0.135-beta, chart 1.18.0. I read the warning string and the slot creation code at 0.0.135-beta but did not run them.

  • Producer scaled to zero under a synthetic load: lag grew 0 to 808 MB in 29 minutes. The docs give the method, not a figure.
  • With a 256 MB cap: lost in about 7 minutes. The producer, scaled back up, did not recover in 3 minutes.
  • After the drop and restart: slot reserved in 15 s and 86 publication tables. I did not check what Siphon copies again, and the docs say so.

Merge request reports

Loading
Loading