AI-1823 PVC Size Changes & Logging Changes - #236
Conversation
…anch The postgrescluster.yml PVC sizing + retention edits are superseded and wrong-layer, so they are removed here to leave this PR as the numeric-zero recovery feature only: - pgdata 5Gi and retention 14d are already on develop (block-incremental + retention reduction) / covered by #236 (AI-1823). - prod repo1 genuinely needs 22Gi (live: 22Gi PVC, 12G used, spec still 10Gi, PersistentVolumeResizing=Invalid), but that belongs as a prod-resources overlay patch in #236 — not a base edit that would also force fd34fb-test and ephemeral instances up. File is now identical to develop; this PR no longer touches infra. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
While cleaning up an old branch (#169) that also touched Checked live
The repo1 PVC was already expanded in-place to 22Gi (~125d ago), but nothing patches repo1 for prod, so the applied spec is still the base 10Gi. That mismatch is live on the cluster: Same shrink-conflict signature as the pgdata one this PR already documents — desired(10Gi) < actual(22Gi), operator won't shrink. And it's a real requirement, not just leftover: repo1 is using 12G, above the 10Gi base, even after block-incremental + 14-day retention. Suggested fix (mirrors the pgdata patch already in - target:
kind: PostgresCluster
name: temporal-pg
patch: |
- op: replace
path: /spec/backups/pgbackrest/repos/0/volume/volumeClaimSpec/resources/requests/storage
value: 22Gi(#169's original approach edited the base to 22Gi, which would also push Unrelated note from the same look: the recent |
Summary
One thing I noticed during this. When the backup PVC is full, the PVC for database data begins to fill with the write-ahead files. As soon as I expanded the backup PVC, Crunchy relieved the data PVC of all those files. As a result, the data PVC probably didn't need to be increased, but at least this gives room for expected growth.
Changes
Testing
Checklist
By submitting this pull request, I acknowledge that I have attempted to meet the following: