Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Pre-GA Readiness Checklist

Purpose: Formal acceptance gate for declaring v1.0.0 Production GA.
Complete every item and record the result before cutting the GA tag.


1. TLS Configuration

  • Verify sslmode is set appropriately for your PostgreSQL deployment:
    • Development: sslmode=disable (explicit plaintext override only)
    • Staging/Production: sslmode=require or sslmode=verify-full (required)
  • If using sslmode=require, compile with the named core profile, which includes native-tls.
  • Run pg-tide doctor and confirm: [OK] TLS connection: TLSv1.2 or TLSv1.3.
  • Cloud-managed PostgreSQL services (RDS, Cloud SQL, Azure Database) behind a TLS proxy work without the native-tls feature.

2. Outbox retention and storage

  • Run the named operational profile matching payload size, pipeline count, sink, and PostgreSQL settings; attach its raw JSON result.
  • Reserve disk for the measured retained-row size, WAL, vacuum headroom, and the configured sink-outage window.
  • Verify tide.outbox_retention_status has no unexplained blockers and tide.relay_pipeline_lag is exact and converging.
  • Run tide.outbox_sweep(NULL, 1000, TRUE) and review blockers before scheduling bounded cleanup.
  • If using partitions, verify tide.outbox_storage_config reports id_range, the default partition is empty, and the canonical query prunes old children.

3. Consumer Group Setup

  • Register consumer groups for each pipeline using tide.consumer_group_create().
  • Verify committed offsets advance after test message delivery.
  • Confirm tide.poll_outbox() correctly prunes partitions via WHERE id > $last_offset.
  • For multi-tenant deployments: verify tenant_name is set correctly in relay_outbox_config.

4. DLQ Monitoring Thresholds

  • Set --dlq-warn-threshold (default: 100 per hour) appropriate for your data quality SLA.
  • Confirm tide.relay_dlq has an alert in your monitoring stack for entries older than your max retry window.
  • Test DLQ replay procedure: run pg-tide replay dlq-requeue against a staging deployment.
  • Verify pg_tide_relay_dlq_entries_written_total metric is visible in your Prometheus/Grafana stack.

5. pg-tide doctor Output Interpretation

Run pg-tide doctor --postgres-url $PG_TIDE_POSTGRES_URL and verify all lines are [OK]:

pg-tide doctor v0.25.0
  [OK] Connected to PostgreSQL
  [OK] TLS connection: TLSv1.3
  [OK] Schema 'tide' exists
  [OK] Table tide.tide_outbox_config
  [OK] Table tide.relay_outbox_config
  ...
  [OK] DLQ hourly rate: 0 (threshold: 100)
  [OK] relay_consumer_offsets.last_change_id column present
  [OK] Advisory lock acquisition succeeded
  [OK] LISTEN on tide_relay_config permitted

pg-tide doctor: all checks passed.

Expected warnings (non-blocking):

  • [INFO] Connection is plaintext — acceptable in private-network deployments.

Blocking failures (must resolve before GA):

  • [FAIL] Schema 'tide' not found
  • [FAIL] Table tide.relay_dlq missing
  • [FAIL] LISTEN on tide_relay_config denied

6. Helm Security Context Review

  • runAsNonRoot: true and runAsUser: 1000 are set in the Deployment spec.
  • readOnlyRootFilesystem: true is set (requires /tmp to be a writable emptyDir volume).
  • allowPrivilegeEscalation: false is set.
  • PodDisruptionBudget is configured with minAvailable: 1 for HA deployments.
  • ServiceMonitor is configured and Prometheus is scraping /metrics.

7. Benchmark Baseline Validation

  • Run just bench and confirm no regressions vs the committed baseline.
  • outbox_poll_decode at 1kb batch: baseline < 5ms.
  • inbox_unnest_params at 1000 rows: baseline < 1ms.
  • worker_inner_orchestration at 1000 messages: baseline < 10ms.

If benchmarks regress by more than 10%, investigate before declaring GA.

8. Rollback Procedure

If a v1.0.0 deployment needs to be rolled back to v0.25.0:

  1. Stop the relay: kubectl rollout undo deployment/pg-tide-relay
  2. Verify no schema changes are breaking: pg-tide doctor should pass with the v0.25.0 schema.
  3. If the outbox was converted to partitioned: the old backup table is preserved at
    tide.tide_outbox_messages_backup_{outbox_name} — no rollback SQL needed.
  4. All consumer offsets are preserved: polling resumes from the last committed offset.

Acceptance Sign-off

CategoryStatusNotes
TLS configuration☐
Outbox partitioning☐
Consumer group setup☐
DLQ monitoring☐
pg-tide doctor clean☐
Helm security contexts☐
Benchmark baseline☐
Rollback procedure tested☐

Once all items are checked, cut the v1.0.0 tag.


v1.0.0 GA Acceptance Criteria (from assessment cycle 6)

The following items must be resolved before v1.0.0 GA. Track resolution version in the Resolved in column.

Must-do (P0 blockers)

ItemDescriptionResolved in
Stability contract documenteddocs/src/stability-guarantees.md publishedv0.33.0
KMS envelope encryption foundationADR-010 written, SQL schema added, feature-gated Rust trait skeletonv0.33.0
Positional SQL APIs deprecatedrelay_set_outbox / relay_set_inbox 6/8-param forms emit SQL NOTICEv0.30.0
v0.x → v1.0.0 migration guideComprehensive rolling-upgrade guide with rollback procedurev0.33.0
supply-chain hardeningcargo audit suppress list re-evaluated; all 9 entries confirmed optional-dep onlyv0.33.0
Lifecycle compatibility gateRelay pre-flight rejects extensions outside its supported windowv0.51.0

Should-do (P1 polish)

ItemDescriptionResolved in
Inbox fleet dashboard panelGrafana panel for tide.inbox_status(NULL) added to relay-health.jsonv0.33.0
pg-tide status --inbox-summaryFleet inbox summary in status CLI outputv0.33.0
just check-stability recipeAutomated check that metric names and schema annotations are stablev0.33.0
KMS encryption implementationActual encryption logic for AwsKms, GcpKms, VaultKms, LocalKeyFilev1.0.0
Positional SQL APIs removedDrop the deprecated 6/8-param formsv1.0.0