chore(stalwart): retire RocksDB PVC + backup — Postgres backend authoritative (DEV-474) #10
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/DEV-474-rocksdb-teardown"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Post-cutover 14-day observation window on DEV-474 closed today (2026-08-28) with 14/14 healthy days. This PR retires every RocksDB-era artefact from the Stalwart deployment and updates the README to reflect the PostgreSQL backend as the default.
What this removes
stalwart-data(20 Gi,hcloud-volumes-encrypted, RWO) — declaration deleted from the manifest.stalwart:fix-permissionsinit-container (only existed to chown the RocksDB PVC mount).datavolume replaced withemptyDir;/var/lib/stalwartremains as a plain scratch path (Stalwart state now lives instalwart-postgres).stalwart-backupCronJob + itsstalwart-backupServiceAccount / Role / RoleBinding — RocksDB snapshotting is obsolete.What already ran (out-of-band, in the DEV-548 heartbeat)
restic forget --pruneagainsttag=stalwart— all 11 RocksDB snapshots removed (16.165 MiB pruned). Log preserved on DEV-474.restic snapshots --tag stalwartnow returns empty; only the 14tag=stalwart-postgressnapshots remain in the shared repo.stalwart-backupCronJob was pre-suspended in-cluster (suspend: true) to prevent tonight's 03:00 UTC fire from re-creating a stalwart-tagged snapshot before this PR merges. Merging this PR then removes the CronJob entirely.Rollback path
Rollback authority is now the Postgres
pg_dumprestic chain (tag=stalwart-postgres, keep 14 daily / 8 weekly / 6 monthly, latest snapshotdb127a39from 2026-08-28 02:30 UTC).If pre-merge rollback is needed for any reason: revert this branch, un-suspend the
stalwart-backupCronJob (kubectl -n stalwart patch cronjob stalwart-backup -p '{"spec":{"suspend":false}}') — the CronJob would then reinitialise its restic tag from the live PVC on its next fire.Server-side validation
kubectl apply --dry-run=serveragainst the modified manifest reports the six remaining objects reconcile cleanly:Note: on merge, ArgoCD/GitOps will delete PVC
stalwart-data(20 Gi RocksDB volume) as a pruned resource. The volume is 55 days old and untouched by writes for 14 days.Refs
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.